我正在尝试使用 Postman 调用使用 BasicHttpBinding 的 WCF 服务。我目前收到错误:
The message with Action 'https://server/namespace/IResults/SetRecordState cannot be processed at the
receiver due to a ContractFilter mismatch...because of either contract...or binding/security mismatch.
在标题中,我将内容类型设置为“文本/xml”并添加:
SOAPAction : https://server/namespace/IResults/SetRecordState
是否需要任何其他设置来告诉 Postman 关于绑定的信息?
据我所知,正文内容需要包含这样的 HTTP 标头:
SOAPAction: http://domain/EndPoint
此外,我们将内容类型设置为
"text/xml; charset=utf-8"
,一些服务器对POST上的内容类型很挑剔。