WCF service using basicHttpBinding is still sending content type “text/xml”

前端 未结 1 864
独厮守ぢ
独厮守ぢ 2021-01-18 03:26

I am writing a WCF service, running on IIS, and I have a customer whose client can only talk SOAP 1.1.

Among other things, they need the content type to be \"applica

相关标签:
1条回答
  • 2021-01-18 03:36

    So do they need SOAP 1.1 or application/soap+xml; charset=utf-8? Because SOAP 1.1 specification says that the request must have text/xml as the media type. application/soap+xml is media type for SOAP 1.2. Forcing WCF to use SOAP 1.1 with application/soap+xml (= invalid SOAP) would require bigger changes than changing the binding. You will need some custom message encoder or perhaps transport channel.

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