Equivalent custom WCF binding for basicHttpBinding with TransportWithMessageCredential security mode

一世执手 提交于 2019-11-30 15:37:17

问题


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>

回答1:


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.



来源:https://stackoverflow.com/questions/7676783/equivalent-custom-wcf-binding-for-basichttpbinding-with-transportwithmessagecred

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!