O'Reilly logo

ADO.NET Programming in Visual Basic™ .NET by Bob Howell, Steve Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Web Services with Windows Forms Clients

You can consume Web Services with Windows Forms clients. This is the most robust way of using Web Services. You have the advantage of using HTTP protocol for simplicity, yet you have all the advantages of using Windows Forms to build a robust UI.

The way we do this is almost as simple as referencing a local component. We create a reference to a Web Service. But first let’s create an empty Windows Forms project and add it to the solution. Call the new project ADOBook10-02. Once the project is created we can create our web reference. This is a little different than creating a reference to a local component. To create the web reference, we point to the .asmx document on the server via a URL. Do this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required