After making a function call, Web Services waits for a certain period of time for the response. If Web Services does not receive a response by the end of this period, the operation times-out. For clients using the .NET framework, the default value of this time-out period is 100000 milliseconds; the default value might vary for other development environments.
For lengthy operations, such as provisioning sites, which might take longer than the default value, you can specify a time-out value after instantiating the Web Service reference.
To specify an indefinite time-out value, set the Timeout
property to -1.
The following is an example of the C# code used to set the Timeout property.
HostingWS w = new HostingWS();
w.Timeout = -1;