我有一个 WCF 客户端调用 Java SOAP 服务(附带 TLS 和 MA)。
SOAP 操作的结果如下:
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action>
但我试图将其设置为
<a:Action s:mustUnderstand="1">urn:example:services:201005:SendMessage</a:Action>
我想我可以使用以下 OperationContract 属性来做到这一点......
[ServiceContract(Namespace = "urn:example:ns:201005", ConfigurationName = "IExampleService")]
public interface IExampleService : IDisposable
{
[OperationContract(Action = "urn:example:services:201005:SendMessage")]
[FaultContract(typeof(ExampleErrorInfo), Action = "urn:example:services:201005:SendMessage", Name = "ExampleErrorInfo")]
[XmlSerializerFormat(SupportFaults = true)]
ExampleResponse SendMessage(ExampleRequest request);
}
为什么我的 SOAP 操作仍然错误?