3

我有一个托管在服务器 windows 2008 上的 .Net 服务,以及通过 Internet 连接到该服务器的 .Net 客户端。

我想使用 wsDualHttpBinding 实现发布订阅模型相同的 Microsoft 示例,其中客户端可以订阅服务上的事件并在数据可用时将数据推送给它们。

我已经在服务器上实现了服务并且能够成功浏览。但是当我尝试从客户端进行通信时,它将以超时结束(我增加了文件客户端和服务器上配置文件的时间属性)

客户端配置文件:

<client>
  <endpoint name="" address="http://x.x.x.x/servicemodelsamples/service.svc" binding="wsDualHttpBinding" bindingConfiguration="Binding1" contract="Microsoft.ServiceModel.Samples.ISampleContract"/>
</client>

<bindings>
  <wsDualHttpBinding>
    <!--If running in cross machine then replace localhost with the FQDN of the machine on whihc datasource.exe is run-->
    <binding name="Binding1" clientBaseAddress="http://xxxx:xxxx/myClient/" closeTimeout="00:05:00"
        openTimeout="00:05:00" receiveTimeout="00:10:00" sendTimeout="00:05:00"
        bypassProxyOnLocal="false" maxBufferPoolSize="524288" maxReceivedMessageSize="500000000"
        useDefaultWebProxy="true">
      <security mode="None">
        <message clientCredentialType="None" negotiateServiceCredential="false" />
      </security>

    </binding>
  </wsDualHttpBinding>
</bindings>

4

1 回答 1

1
于 2013-01-07T13:03:32.370 回答