在 SOAPUI 请求中的 EndpointDispatcher 处获取 AddressFilter 不匹配
如果我通过客户端应用程序使用它,我的服务运行良好。我使用相同的 wsdl 来加载 SOAPUI。它已成功为每种方法创建了样本测试。我想发送一个请求,它应该相应地生成响应。我可以在请求属性中看到正确的端点地址。它自动生成了 SOAP XML。如果我尝试运行它以获得响应。它给了我以下错误。
<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。
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>
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
问题是因为请求消息缺少 To 标头。在消息编辑器的请求消息窗口下方,单击按钮
WS-A
。然后选中复选框添加默认 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 checkboxAdd default wsa:To
Now run your request and the service will run just fine.
您还需要将 WS-ReliableMessaging 设置为 true。
You will also need to set WS-ReliableMessaging to true.
我在 biztalk server 2013 r2 中也出现了同样的问题。 此 为我工作。我认为我们需要通知 biztalk 有关端点位置的信息以发回结果。在soapui中运行的测试脚本应如下所示:
Same problem occured to me in biztalk server 2013 r2. this worked for me. I think we need to inform biztalk about the endpoint location to send back the result. A test script run in soapui should be like below:
您的 WCF 服务似乎利用 WS-Addressing 标准来标识消息需要提交到的接收位置。如果省略,则会导致错误消息中报告的目标地址为空。尝试在请求属性中将 WS-Addressing 属性设置为
true
。It seems that your WCF service utilizes the WS-Addressing standard to identify the receive location to which the message needs to be submitted. When omitted it leads to empty destination address reported in the error message. Try to set WS-Addressing property to
true
in the request properties.