我在使用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