WebServices Object


WebServices Object

Location

My.WebServices

Description

Use the WebServices object to access an instance of each XML Web service currently available to your application. The instances are created as needed, when you first reference an XML Web service through My.WebServices. This object lists those XML Web services that have been added as references to the application or those that are added at runtime. It is not available in ASP.NET applications.

XML Web services made available through a DLL associated with your running application are not added to My.WebServices. Access those services directly through the features provided by the DLL.

If you have a reference to an XML Web service named transferFunds, access to that service is done by referencing that service as a property of My.WebServices:

 My.WebServices.TransferFunds 

When you are finished with an XML Web service and wish to dispose of it, set it to Nothing.

 My.WebServices.TransferFunds = Nothing 

You can test whether an instance of an XML Web service has already been created using the Is or IsNot operator:

 If (My.WebServices.TransferFunds Is Nothing) Then... 

Public Members

The only public members of My.WebServices are the web services that have been referenced in your application.

Usage at a Glance

This object and its members are not valid in ASP.NET applications.

Related Framework Entries

  • System.Web.Services Namespace

See Also

Forms Object, My Namespace, Resources Object, Settings Object




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net