我们需要使用 WCF 使用第三方 Web 服务(用 Delphi 编写)。我们遇到的问题是 Delphi 服务是 RPC/Encoded,并且它使用自定义 SOAP Headers。如果我们将以下内容添加到我们的 ServiceContract(处理 RPC 编码):
[XmlSerializerFormat(Style = OperationFormatStyle.Rpc,
Use = OperationFormatUse.Encoded)]
我们得到一个错误,说这不能与带有标头的 MessageContracts 一起完成。
Message *** must not have headers to be used in RPC encoded style
有谁知道解决这个问题的方法?
谢谢