webservice timeout 详解

Which timeout are you looking for?
There are 2 actually.

One on a server which makes sure that your WebService method is not running 
forever and will be aborted if exceeds some time.
I do not see Timeout property in WebService class.
http://msdn.microsoft.com/en-us/libr...e_members.aspx
You can set/change this time out in web.config See: <httpRuntime 
executionTimeout="..."/>


Another one is on a client which makes sure that your client is not waiting 
forever for WebService to reply...
The class is actually called SoapHttpClientProtocol and it has a Timeout 
property.

George.

转自 http://www.velocityreviews.com/forums/t643044-how-to-set-timeout-for-webservice.html

猜你喜欢

转载自k1280000.iteye.com/blog/1878680