使用 SoapUI 测试 WCF 服务时出现 SOAP 操作不匹配错误 [英] SOAP Action mismatch error while testing a WCF service with SoapUI
本文介绍了使用 SoapUI 测试 WCF 服务时出现 SOAP 操作不匹配错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 SOAPUI 中的示例输入测试 WCF 服务.当我开始跑步时,我收到如下 SOAP 异常:
Am testing a WCF service with a sample input in SOAPUI. when i hit the run,I get an SOAP Exception like below:
<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, 'http://XXX.XX.XXXX/IXXXXXX/AddOrderInfromation'.</s:Text>
</s:Reason>
<s:Detail>
<a:ProblemHeaderQName>a:Action</a:ProblemHeaderQName>
</s:Detail>
</s:Fault>
</s:Body>
</s:Envelope>
在博客中,他们要求添加 Soap Action .如何在我的以下请求中添加 Soap 操作:
In blogs, they are asking to add Soap Action . How to Add Soap Action in my request below:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wkus="http://XXX.XX.XXXX/IXXXXXX">
<soap:Header />
<soap:Body>
<ns1:AddOrderInfromation>
<!--Optional:-->
<ns1:inputsting>
<ns1:AddOrderInfromation>
<ns1:OrderNo>4500146</ns1:OrderNo>
<ns1:OrderDate>08/22/2014</ns1:OrderDate>
<ns1:TotalItems>1</ns1:TotalItems>
</ns1:AddOrderInfromation>
</ns1:inputsting>
</ns1:AddOrderInfromation>
请推荐.提前致谢
推荐答案
这可能是一个 WS-A 寻址问题.
This is probably a WS-A addressing issue.
在请求的 WS-A 选项卡中,选中启用 WS-A 寻址".您可能还需要选中添加默认值为:至".
In the WS-A tab of your Request, check "Enable WS-A addressing". You may also have to check "Add default was:To".
这篇关于使用 SoapUI 测试 WCF 服务时出现 SOAP 操作不匹配错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文