在SOAPUI请求的EndpointDispatcher处获取AddressFilter不匹配 [英] Getting AddressFilter mismatch at the EndpointDispatcher in SOAPUI request

查看:300
本文介绍了在SOAPUI请求的EndpointDispatcher处获取AddressFilter不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我通过客户端应用程序使用它,我的服务运行良好.我正在使用相同的wsdl来加载SOAPUI.它已成功为每种方法创建了样本测试.我想发送一个请求,它应该相应地生成响应.我可以在请求属性中看到正确的端点地址.它会自动生成一个SOAP XML.如果我尝试运行它以获得响应.它给了我以下错误.

My service is running fine If I use it via my client application. I am using same wsdl to load in SOAPUI. It has successfully created sample tests for each method. I want to send a request and it should generate response accordingly. I can see the correct Endpoint address in request properites. It automatically has generated a SOAP XML. If I try to run it to get response. It is giving me following error.

<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/soap/fault</a:Action>
</s:Header>
<s:Body>
  <s:Fault>
     <s:Code>
        <s:Value>s:Sender</s:Value>
        <s:Subcode>
           <s:Value>a:DestinationUnreachable</s:Value>
        </s:Subcode>
     </s:Code>
     <s:Reason>
        <s:Text xml:lang="en-GB">The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher.  Check that the sender and receiver's EndpointAddresses agree.</s:Text>
     </s:Reason>
  </s:Fault>

我不知道还有什么地方可以检查这里出了什么问题.请有人可以在这方面帮助我.我正在使用SOAPUI4.0.1.

I dont know where else to check whats going wrong here. Please can some one help me in this regard. I am using the SOAPUI4.0.1.

推荐答案

问题是因为请求"消息缺少收件人"标头.在消息编辑器上,在请求消息窗口下方,单击按钮WS-A.然后选中复选框Add default wsa:To

Issue is because the Request message is missing a To header. On the Message Editor, just below the request message window click on button WS-A. Then select the checkbox Add default wsa:To

现在运行您的请求,该服务将正常运行.

Now run your request and the service will run just fine.

希望有帮助.

如果确实解决了您的问题,请标记为答案.

Please mark it as the answer if it did resolve your issue.

这篇关于在SOAPUI请求的EndpointDispatcher处获取AddressFilter不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆