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

Get Special Edition Using® Microsoft® ASP.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.