O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

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

Consuming a Web Service

Consuming a Web Service is easy. Visual Studio automates the process of querying a Web Service to discover the public methods, the arguments that they take, and the data that they return. Visual Studio queries Web Services, and then creates a class, which you can easily use in your applications.

To create a reference to a Web Service in a Web application, go to the Solution Explorer window and right-click on the name of the application. A pop-up menu appears. Select Add Web Reference from the pop-up menu. A dialog box entitled Add Web Reference appears. In the address field, type the address of the Web Service. For instance, if you have a Web Service that is located on a server somewhere, you type in the name of the domain, ...

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