EndpointDispatcher 处的 AddressFilter 不匹配 - 带有 To 的 msg [英] AddressFilter mismatch at the EndpointDispatcher - the msg with To

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

问题描述

任何想法我如何纠正这个..通过js调用服务

Any ideas how I correct this.. calling a service via js

由于 EndpointDispatcher 处的 AddressFilter 不匹配,接收方无法处理带有 To 'http://MySite.svc/GetStateXML' 的消息.检查发送方和接收方的 EndpointAddresses 是否一致

The message with To 'http://MySite.svc/GetStateXML' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree

谢谢

推荐答案

<services>
      <service name="SimpleService.SimpleService" behaviorConfiguration="serviceBehaviour">
        <endpoint address="" binding="webHttpBinding" contract="SimpleService.ISimpleService" behaviorConfiguration="web">
        </endpoint>
        <endpoint address="mex"
              binding="mexHttpBinding"
              contract="IMetadataExchange">
        </endpoint>
      </service>
    </services>

....
....

<endpointBehaviors>
        <behavior name="web">
          <webHttp />
        </behavior>
</endpointBehaviors>

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

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