2012-12-17 56 views
0

我有一個WCF客戶端調用Java SOAP服務(順便提一提的是TLS和MA)。WCF SOAP操作不正確

的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

也許你在談論一個WCF客戶端.. – csg

+0

嗯,它們都是 - 但爲了這個問題的目的,它是客戶端。 – Fenton

+0

不應該包含服務名稱空間嗎? (例如urn:例如:ns:201005) – csg

回答