将GUID与Web服务一起使用 [英] Using GUID with Web Services
本文介绍了将GUID与Web服务一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的.Net开发人员,
目前我正在开发一个包含
解决方案
的项目.Guid只是一个128位的数字。您可以使用guid作为在服务调用中传递的某种用户ID或身份验证令牌。可能最好不要实现你自己的东西。
用于验证WS-Security和WSE
WS-Security
http://msdn.microsoft.com/ zh-cn / library / ms951273.aspx
Web服务增强功能2.0中的WS-Security深入分析
br>还考虑使用证书。有关说明,请查看此kb文章。
如何在ASP.NET Web应用程序中使用客户端证书进行身份验证来调用Web服务
http://support.microsoft.com/kb/ 901183搜索结果
Dear .Net Developers,
Currently I'm working on a project that contains
解决方案
A Guid is just a 128 bit number. You could use a guid I guess as some sort of user id or authenication token that gets passed in the service calls. Probably best not to implement you own stuff though.
For authenication look at WS-Security and WSE
WS-Security
http://msdn.microsoft.com/en-us/library/ms951273.aspx
WS-Security Drilldown in Web Services Enhancements 2.0
http://msdn.microsoft.com/en-us/library/ms996952.aspx
Also consider using certificates. Please check out this kb article for instructions.
How to call a Web service by using a client certificate for authentication in an ASP.NET Web application
http://support.microsoft.com/kb/901183
这篇关于将GUID与Web服务一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文