Web程序调用Webservcie函数,报超时错误。
临时对策:
Dim service As New XXXWebService
service.Timeout = 1200000 ‘代码调用的地方,设置20分钟超时
附:
winform程序调用webservice,可以在app.config中设置如下:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="XXXServiceClsSoap" closeTimeout="00:20:00"
openTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00"