开发者

Equivalent custom WCF binding for basicHttpBinding with TransportWithMessageCredential security mode

开发者 https://www.devze.com 2023-04-11 00:20 出处:网络
I need to integrate my server with non-WCF client and suggested to change SOAP version in the headers. This can be done with <textMessageEncoding messageVersion=\"Soap11\" /> element on a custom

I need to integrate my server with non-WCF client and suggested to change SOAP version in the headers. This can be done with <textMessageEncoding messageVersion="Soap11" /> element on a custom binding so i need to convert my current basicHttpBinding. How can i do that?

<basicHttpBinding>
    <binding>
        <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="Windows"/>
            <message clientCredentialType="UserName" />
     开发者_开发技巧   </security>
    </binding>
</basicHttpBinding>


The custom binding definition is:

<customBinding>
  <binding name="basicHttpEquivalent">
    <security authenticationMode="UserNameOverTransport" />
    <textMessageEncoding messageVersion="Soap11" />
    <httpsTransport />
  </binding>
</customBinding>

But this binding is exactly same as the basicHttpBinding you mentioned.

0

精彩评论

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

关注公众号