如何通过相应的WCF绑定使用MSMQ over http?

时间:2010-12-21 12:12:14

标签: wcf http msmq

我们通过MSMQ在代理和服务器之间建立单向连接。我试图通过http。

将其移至MSMQ

现在,MSMQ在服务器端与IIS集成 - 我确保在安装MSMQ时检查相应的选项。但我很困惑下一步该做什么。我的意思是,端点地址没有迹象表明MSMQ应该超过http。

相关代理(充当客户端)配置为:

<client>
  <endpoint name="WcfOneWayDataPortal"
            address="net.msmq://server/private/nc_queue"
            contract="Shunra.Common.Contract.IWcfOneWayPortal"
            binding="netMsmqBinding"
            bindingConfiguration="Msmq" />
</client>
<bindings>
  <netMsmqBinding>
    <binding name="Msmq" durable="true" useActiveDirectory="false" exactlyOnce="false"
             receiveErrorHandling="Fault" maxReceivedMessageSize="2147483647">
      <security mode="None">
        <transport msmqAuthenticationMode="None" msmqProtectionLevel="None" />
      </security>
    </binding>
  </netMsmqBinding>
</bindings>

服务器的一个是:

<services>
  <service name="Shunra.Common.Csla.WcfOneWayPortal" >
    <endpoint contract="Shunra.Common.Contract.IWcfOneWayPortal"
              binding="netMsmqBinding"
              bindingConfiguration="Msmq"
              address="net.msmq://server/private/nc_queue"/>
  </service>
</services>
<bindings>
  <netMsmqBinding>
    <binding name="Msmq" durable="true" useActiveDirectory="false" exactlyOnce="false"
             maxReceivedMessageSize="2147483647">
      <security>
        <transport msmqAuthenticationMode="None" msmqProtectionLevel="None"/>
      </security>
    </binding>
  </netMsmqBinding>
</bindings>

0 个答案:

没有答案