webService设置超时时间

在客户端配置文件中设置:

 <bindings>
      <basicHttpBinding>
        <binding name="UrlCrawlerWebServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="02:10:00" sendTimeout="02:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536000" maxBufferPoolSize="524288" maxReceivedMessageSize="65536000" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"/>
      </basicHttpBinding>
    </bindings>

原文地址:https://www.cnblogs.com/mingjian/p/3803592.html