我正在从.NET控制台应用程序到.NET Web服务的职位。我知道,在服务器端的超时时间为20分钟,但如果我的客户需要100多秒,我发布数据,该服务,然后我得到一个超时异常。我怎么会告诉我的客户要等现有的20分钟超时?
I am making a post from a .NET console app to a .NET web service. I know that the timeout on the server side is 20 min, but if my client takes more than 100 seconds to post my data to that service then I get a timeout exception. How would I tell my client to wait the available 20 min to timeout?
在客户端,你的web服务的对象有一个超时值。它应该是pretty的容易被要设置:
on the client side, your webservice object has a timeout value. It should be pretty easy to set by going:
myServiceInstance.Timeout = 1200000
20分钟