解决SOAPUI 调用WCF的服务返回由于 AddressFilter 在 EndpointDispatcher 不匹配,To 为“”的消息无法在接收方处理。请检查发送方和接收方的 Endpoin
来源:互联网 发布:foxtable同类软件 编辑:程序博客网 时间:2024/05/22 03:28
废话不多说 直接贴代码先,具体的WCF代码和配置就不贴了,因为在C#中的调用时杠杠的。
SOAPUI中的内容
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:DoWork>
<!--Optional:-->
<tem:a>这是一个测试!</tem:a>
</tem:DoWork>
</soap:Body>
</soap:Envelope>
调用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/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="zh-CN">由于 AddressFilter 在 EndpointDispatcher 不匹配,To 为“”的消息无法在接收方处理。请检查发送方和接收方的 EndpointAddresses 是否一致。</s:Text>
</s:Reason>
</s:Fault>
</s:Body>
</s:Envelope>
注意红字地方的错误
具体解决方案如下:添加(蓝色字体)如下内容
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header>
<a:To s:mustUnderstand="1" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">http://localhost:8025/CompetenceOperation</a:To>
</soap:Header
>
<soap:Body>
<tem:DoWork>
<!--Optional:-->
<tem:a>这是一个测试!</tem:a>
</tem:DoWork>
</soap:Body>
</soap:Envelope>
相关解决方案文章如下:
https://msdn.microsoft.com/en-us/library/bb246105.aspx
http://blogs.msdn.com/b/nabeelp/archive/2008/03/07/obscure-error-addressfilter-mismatch-at-the-endpointdispatcher.aspx
http://blog.csdn.net/jan_s/article/details/37656437
- 解决SOAPUI 调用WCF的服务返回由于 AddressFilter 在 EndpointDispatcher 不匹配,To 为“”的消息无法在接收方处理。请检查发送方和接收方的 Endpoin
- 由于AddressFilter在EndpointDispatcher不匹配,To 为“http://*/*”的消息无法在接收方处理。请检查发送方和接收方的 EndpointAddresses 是否一致
- 由于AddressFilter在EndpointDispatcher不匹配,To 为“http://*/*”的消息无法在接收方处理。请检查发送方和接收方的 EndpointAddresses 是否一致
- 笔记:基于winform的应用程序,发生方通过sendmessage发送消息接收方无法成功接收消息
- C#事件的发送方和接收方
- C#事件的发送方和接收方(订阅方)
- C#事件的发送方和接收方(订阅方)
- springMVC无法接收date类型数据的全局处理方
- java se 面向网络的编程(socket发送方和接收方)
- C++第三方库HPSocket数据的发送与接收
- HttpConnection的post请求发送数据,接收方出现乱码
- 在WCF中用TcpTrace工具查看发送和接收的SOAP消息
- 第三方平台接收公众号粉丝的消息
- http中get发送json格式数据以及接收方的处理
- iOS处理分享时,在三方应用中无法返回自己应用的问题
- rdt3.0发送方和接收方程序(C实现)
- API两个程序间信息的传送与接收,一方发送另一方自动接收.
- TCP的接收缓冲区满了,收到数据后会向发送方发送ACK吗?该怎么解决
- 【PA2015】【BZOJ4294】Fibonacci
- ubuntu 终端修改ls文件的字体颜色
- FMDB与CoreData
- bootstrap轮播 2016.02.25回顾
- 使用Apache的HttpClient访问网络资源-----安卓网络请求(1)
- 解决SOAPUI 调用WCF的服务返回由于 AddressFilter 在 EndpointDispatcher 不匹配,To 为“”的消息无法在接收方处理。请检查发送方和接收方的 Endpoin
- 后台权限数据表和linux后台执行脚本命令例子
- Android Essentials: Submitting Your Application to the Android Market
- Leetcode 2 Add Two Numbers
- java定时任务
- Android ListView嵌套Button,Button事件覆盖item事件解决办法
- Poj1274二分图最大匹配(匈牙利算法)
- php 数组按数组中的某个字段值排序
- Linux 内核list_head container_of