wcf - Web 服务响应 XML 检索 'DestinationUnreachable' 消息

标签 wcf

在 SoapUI 工具中处理请求 XML 时,我在响应 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-US">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>
   </s:Body>
</s:Envelope>

任何人都知道我们应该怎么做才能解决这个问题?
提前致谢。

最佳答案

问题是因为 Request 消息缺少 To header 。
在消息编辑器上,就在请求消息窗口下方,单击按钮 WS-A。
然后选中复选框“ 添加默认 wsa:To

现在运行您的请求,该服务将运行得很好。

希望有帮助

关于wcf - Web 服务响应 XML 检索 'DestinationUnreachable' 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14000798/

相关文章:

wcf - InnerException 消息是“在传递给 W 服务时使用数据协定名称键入

wcf - 用于开发 WCF 应用程序的模型

WCF 错误仅使用 wsHttpBinding 发送到 SOAP 1.1 时 SOAP 1.2 消息无效

ASP.NET MVC 与 WCF,缓存通知问题

.net - WCF 消息记录

.net - 从 WCF/ADO.NET 数据服务中的请求正文接收参数

c# - gRPC 相当于 WCF 服务发现

c# - 将大型 xml 上传到 WCF REST 服务 -> 400 错误请求

c# - 对 protobuf-net WCF 的使用感到困惑

c# - 在 Visual Studio 中更新 Web 引用