O'Reilly logo

Microsoft® Visual Studio® 2010 Unleashed by Lars Powers, Mike Snell

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

Coding an ASP.NET Web Service

Now let’s explore developing an actual web service with Visual Studio 2010. For this example, you develop the CustomerProfile example as an ASP.NET web service. This web service provides methods for retrieving customer information from a data store and saving changes to that information. Along the way, you look at the finer points of developing an ASP.NET web service. The following steps outline this process:

1. Create an empty ASP.NET website (name it Contoso.Web). Add a Web Service file (.aspx). Name this file CustomerProfile.asmx.

2. Next, remove the HelloWorld sample method and in its place create methods called GetCustomer, GetActiveCustomers, CreateCustomer, UpdateCustomer, and DeleteCustomer. Each method should ...

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