What is the default WCF Binding?

后端 未结 2 1917
遇见更好的自我
遇见更好的自我 2021-02-19 11:57

I\'ve been struggling for a few days with this problem, learning a lot of things on bindings in the process. One thing puzzles me, though: various links (see this or that for ex

相关标签:
2条回答
  • 2021-02-19 12:10

    The default is basichttpbinding using SOAP 1.1.

    That is why you get an error sending it as SOAP 1.2.

    0 讨论(0)
  • 2021-02-19 12:24

    When hosting WCF service in IIS (using WCF Service application project template) with default .svc file (without changing its service host factory) the default binding is basicHttpBinding. If you want to change default binding to wsHttpBinding you must use:

    <protocolMapping>
        <add scheme="http" binding="wsHttpBinding"/>
    </protocolMapping>
    

    In your service's configuration file but it will not solve your problem because you don't need wsHttpBinding and as I remember Altova XmlSpy is not able to send valid request for wsHttpBinding because it supports only basic SOAP stack without WS-* protocols.

    0 讨论(0)
提交回复
热议问题