Use the Web Services Toolkit
The Web Services Toolkit provides a way to find and reference web services from Visual Basic. Once you create a reference to a web service, the Toolkit generates classes that give you a familiar interface to the XML expected by the web service. The Toolkit-generated classes also handle responses from the web service, converting those into objects, properties, and methods, rather than raw XML.
Note
Office 2003 doesn’t come with the Web Services Toolkit installed. You need to download and install that tool from Microsoft before proceeding.
Depending on the web service you are using, the Web Services Toolkit may generate many or just a few new classes (Figure 4-9).

Figure 4-9. Office Web Services Toolkit creates proxy classes for the referenced web service
How to do it
In order to use web services from Visual Basic, you must first follow these steps:
Note
The Web Services Toolkit makes using web services easier by generating classes from the web service description. Those classes can then be used with a standard objectoriented approach to create an instance of the web service and invoke the web services properties and methods.
Find the Microsoft Office Web Services Toolkit from Microsoft by searching for “Web Services Toolkit” at http:// www.microsoft.com/downloads .
Download the Web Services Toolkit installation program (setup.exe).
Run the downloaded ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access