Accessing Application Web Services (Visual Basic)


Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The My.WebServices object provides an instance of each Web service referenced by the current project. Each instance is instantiated on demand. You can access these Web services through the properties of the My.WebServices object. The name of the property is the same as the name of the Web service that the property accesses. Any class that inherits from SoapHttpClientProtocol is a Web service.

The following table lists possible ways to access Web services referenced by an application.

Call a Web serviceMy.WebServices Object
Call a Web service asynchronously and handle an event when it completesHow to: Call a Web Service Asynchronously

My.WebServices Object