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

发布于 2024-10-08 18:42:15 字数 1661 浏览 0 评论 0原文

我们通过 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>

We have a one way connection between an agent and the server via MSMQ. I am trying to move it to MSMQ over http.

Now, MSMQ is integrated with IIS on the server side - I made sure to check the respective option when installed MSMQ. But I am puzzled what to do next. I mean, the endpoint address has no indication that MSMQ should be over http.

The relevant agent (which acts as a client) configuration is:

<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>

And the server's one is:

<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>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文