我在使用SOAP在ASP.net中創建的Web服務中發佈了一個xml,它不返回Web服務返回的響應。它返回以下響應:無法在可可應用程序中使用ASP.Net Web服務
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
<faultstring xml:lang="en-US">The message with Action 'http://192.168.10.231/EBServiceHost/Service.svc' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>
任何想法發生了什麼問題?
您能提供有關該服務的更多信息嗎?它是你試圖打電話的WCF服務嗎? – Buzzer 2012-03-01 06:16:17
@ Buzzer爲時已晚,無法回覆。我已經解決了這個問題。這是因爲我發送錯誤的方法。現在它工作正常。 – 2012-03-01 09:26:18