WCF - SOAP动作不匹配的错误,同时用了SoapUI测试 [英] WCF - SOAP Action mismatch error while testing with SoapUI
本文介绍了WCF - SOAP动作不匹配的错误,同时用了SoapUI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何解决此问题?
> <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标头:
Configure SOAPUI to send this http header:
SOAPAction=XX.XXX.WebServices.XXXXService/XXXXService/AuthenticateUser
这篇关于WCF - SOAP动作不匹配的错误,同时用了SoapUI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文