我有一个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操作仍然错误?
答案 0 :(得分:1)
这似乎是WS-Trust握手消息,而不是您的实际消息。请参阅http://schemas.xmlsoap.org/ws/2005/02/trust/tls/WSTrustForTLS.pdf,第1.8节。