我正在实现一个wcfweb服务,它与我不控制其代码的客户机交互。WSDL是由客户端提供的。
here
我没有问题。
在这一点上,我得到了以下错误:
The message with Action '' 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).
然后,我尝试使用客户机提供的WSDL使用SOAPUI。此操作失败,出现上述相同的空操作错误。
然后我连接了Wireshark(启用SSL解密)并验证了从客户端发送的消息确实缺少SOAPAction,因此看起来这肯定是问题所在。