如何使用 Postman 调用使用 BasicHttpBinding 的 WCF SOAP 服务?

问题描述 投票:0回答:1

我正在尝试使用 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 关于绑定的信息?

soap postman wcf-binding
1个回答
0
投票

据我所知,正文内容需要包含这样的 HTTP 标头:

SOAPAction: http://domain/EndPoint

此外,我们将内容类型设置为

"text/xml; charset=utf-8"
,一些服务器对POST上的内容类型很挑剔。

© www.soinside.com 2019 - 2024. All rights reserved.