开发者

consume SOAP web service with WS-Security

I'm trying to consume a web service which uses WS Security 开发者_JS百科(usernametoken, signature and encryption). I don't have any information on the web service except the wsdl.

With wsdl.exe, I have created my proxy class and I'm also able to call a web service method. It shows errors

"No signature in message! (from client)"

How can I add the signature and encryption to the SOAP web service call?


You should use WCF. Why? ASMX web services are old technology and doesn't support WS-Security. To add WS-Security to ASMX you must either do it manually (a lot of very complex specifications to implement) or use WSE. Both ASMX and WSE are replaced by WCF since .NET 3.0 so unless you have to use .NET 2.0 your choice should be WCF.

First of all try to use svcutil.exe or Add service reference in Visual Studio and if it doesn't create proxy for you post security part of WSDL to your question. We can try to help you with configuration.


If you want to use WS-Security, you need WCF.

WSE was the interim "add-on" package from Microsoft that supported WS-Security on the first version web services stack - the one that used WSDL.exe. It's my understanding that WSE is no longer supported.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜