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>

posted @ 2014-06-23 10:46  明济安  阅读(2210)  评论(0编辑  收藏  举报