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 ...
Get Microsoft® Visual Studio® 2010 Unleashed 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.