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 ...

Get ADO.NET Programming in Visual Basic™ .NET 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.