C# Post 提示ActionNotSupported due to a ContractFilter mismatch at the EndpointDi

yuanpan818 2018-02-11 11:32:18
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
<faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>

Post tls1.2调用时提示以上问题,不知道post调用代码action该如果设置?还望大家提供一个调用示例,谢谢!!
...全文
953 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
正怒月神 2018-02-11
  • 打赏
  • 举报
回复
http://blog.csdn.net/hanjun0612/article/details/60126445
yuanpan818 2018-02-11
  • 打赏
  • 举报
回复
引用 3 楼 xdashewan 的回复:
貌似是由于契约不匹配,你们中的一方可能改变了契约,所以先尝试检查两边契约是否一致
可能吧 ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072 | (SecurityProtocolType)48; //System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Ssl3; 两种都试了 都不行。。。
yuanpan818 2018-02-11
  • 打赏
  • 举报
回复
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072 | (SecurityProtocolType)48; //System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12 | System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls | System.Net.SecurityProtocolType.Ssl3;
正怒月神 2018-02-11
  • 打赏
  • 举报
回复
引用 2 楼 yuanpan818 的回复:
这个问题就不知道怎么解决了。
服务器端,是怎么接口方式呢
xdashewan 2018-02-11
  • 打赏
  • 举报
回复
貌似是由于契约不匹配,你们中的一方可能改变了契约,所以先尝试检查两边契约是否一致
yuanpan818 2018-02-11
  • 打赏
  • 举报
回复
引用 1 楼 hanjun0612 的回复:
http://blog.csdn.net/hanjun0612/article/details/60126445
谢谢你提供的地址,现在不是post调用的问题,现在的post调用的通的,但是到这个遇到 “The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding” 这个问题就不知道怎么解决了。

13,347

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET技术前瞻
社区管理员
  • .NET技术前瞻社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧