如何解决这个问题?
> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
> xmlns:a="http://www.w3.org/2005/08/addressing"> <s:Header>
> <a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/fault</a:Action>
> </s:Header> <s:Body>
> <s:Fault>
> <s:Code>
> <s:Value>s:Sender</s:Value>
> <s:Subcode>
> <s:Value>a:ActionMismatch</s:Value>
> </s:Subcode>
> </s:Code>
> <s:Reason>
> <s:Text xml:lang="en-US">The SOAP action specified on the message, '', does not match the HTTP SOAP Action,
> 'XX.XXX.WebServices.XXXXService/XXXXService/AuthenticateUser'.</s:Text>
> </s:Reason>
> <s:Detail>
> <a:ProblemHeaderQName>a:Action</a:ProblemHeaderQName>
> </s:Detail>
> </s:Fault> </s:Body> </s:Envelope>
最佳答案
配置 SOAPUI 发送此 http header :
SOAPAction=XX.XXX.WebServices.XXXXService/XXXXService/AuthenticateUser
关于c# - WCF - 使用 SoapUI 测试时出现 SOAP 操作不匹配错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17595847/