标签:
可以把sendTimeout调长一点试试
.net webService 中:
设置这些参数,延长连接时间,
closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
|
||
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="XZDataWebChatServiceSoap" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://10.101.5.20:8010/Portal/Tenant/Webservice/XZDataWebChatService.asmx"
binding="basicHttpBinding" bindingConfiguration="XZDataWebChatServiceSoap"
contract="ServiceReference1.XZDataWebChatServiceSoap" name="XZDataWebChatServiceSoap" />
</client>
</system.serviceModel>
</configuration>
标签:
原文地址:http://www.cnblogs.com/wangfuyou/p/5070628.html