开发者

Who is responsible to set the To WS(Ws-Addressing) namespace in SOAP header in an outgoing message?

开发者 https://www.devze.com 2023-04-11 23:25 出处:网络
I have a created a .Net client to access a Webservice. The SOAP request xml generated in client side constructs with W开发者_如何学JAVAS-Addressing namespace as “xmlns:wsa=http://schemas.xmlsoap.org/

I have a created a .Net client to access a Webservice. The SOAP request xml generated in client side constructs with W开发者_如何学JAVAS-Addressing namespace as “xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing.”, but in the Service side it expects WS-Addressing namespace as “xmlns:wsa=http://www.w3.org/2005/08/addressing”. How we can configure correct WS-Addressing namespace in request. Help me to resolve this issue?


According to MSDN, there are two versions for WS addressing: the Aug 10 2004 version, and the 'official' version. I think you'll have to create a custom binding to specify the soap addressing version:

<bindings>
    <customBinding name="CorrectSoapBinding">
        <textMessageEncoding messageVersion="Soap12WSAddressing10"/>
  </customBinding>
</bindings>
0

精彩评论

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

关注公众号