Previous Page
Next Page

Chapter 19 Quick Reference


Do This

Create a Web service

From an ASP.NET project, select Web Site | Add New Item from the main menu

Select the Web Service template

Expose a class method as a Web method

Apply the [WebMethod] attribute immediately preceding the method signature

Consume a Web service

From within Visual Studio, select the project in solution explorer.

Right-click on project

Select Add Web Reference

Surf to the Web service. Visual Studio will automatically ask for the WSDL and build a proxy

Previous Page
Next Page