6.2. Invoking Web Services with Visual Studio .NET

The next logical step after creating and testing a Web service is to create a client for that service. You can call a Web service from practically any kind of application. The rule is: If you can send an HTTP POST request to the Web server, you can invoke the Web service. To create a Windows Forms client, start Visual Studio .NET and create a new project using the Windows Application template. This creates the project file and adds a form called Form1. As you learned in Chapter 1, you can use wsdl.exe to create a proxy class that makes it easy to invoke the Web service. VS .NET can generate this proxy class for you by choosing Add Web Reference from the project menu, which will bring up the dialog ...

Get Real World XML Web Services: For VB and VB .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.