Support > Knowledge Base
Knowledge Base

Search the Knowledge Base: |
Search the Knowledge Base: |
Changing the Timeout Value in C# .NET for Web Service Requests
Details
When VirtualCenter is performing tasks from certain Web service calls, for example WaitForUpdates or CreateVM, sometimes I receive a timeout message from my Web services client even though VirtualCenter has completed the task. How can I change the timeout value used for Web services requests?
Solution
Timeout is a property of the SoapHttpClientProtocol class. The timeout option specifies the time an XML Web service client waits for a synchronous XML Web service request to complete. This value is measured in milliseconds.
- VisualStudio provides information in their online help on the class, SoapHttpClientProtocol, and its member, TimeoutProperty .
- From VisualStudio, referencing the online help as needed, use the VimService properties to set the service.Timeout=<NewTimeoutValue>.
-
When set, this new timeout value is used for all future Web service requests.
Sample process for changing timeout property in SvcConnection:
- Open SvcConnection.
- Select Connect method type.
- Select _service.
- Type a period (.) to view the public properties and methods. Timeout is one of the properties.
- Scroll to the Timeout property.
- Select it and press Enter.
- Enter the timeout value you need.
Keywords
Feedback
Actions
- KB Article: 1002576
- Updated: Aug 14, 2009
- Products:
VMware Infrastructure SDK - Product Versions:
VMware Infrastructure SDK 1.x
VMware Infrastructure SDK 2.0.x

