如何防止wsHttpBinding检查客户端和服务器时间

时间:2018-06-30 13:17:07

标签: web-services wcf web-config wshttpbinding custom-binding

我只是想修改我的wsHttpBinding配置代码以防止检查客户端和服务器时间(时差),我不想使用自定义绑定,我该怎么办? 这是我的wsHttpBinding:

<wsHttpBinding>
    <binding name="wsHttpBindingConfiguration" closeTimeout="00:10:00"
        openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
        bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
        maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
        messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
        allowCookies="false">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="2147483646"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <reliableSession ordered="true" inactivityTimeout="00:10:00"
          enabled="false" />

      <security mode="Message" >

        <message  clientCredentialType="UserName" negotiateServiceCredential="true" establishSecurityContext="false"
            algorithmSuite="Default" />
      </security>
    </binding>
  </wsHttpBinding>

0 个答案:

没有答案