O'Reilly logo

Microsoft® Visual C#® 2008 Step by Step by John Sharp

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

Building a Web Service

In this section, you will create the ProductsService Web service. This Web service exposes two Web methods. The first method enables the user to calculate the cost of buying a specified quantity of a particular product in the Northwind database, and the second method takes the name of a product and returns all the details for that product.

Creating the ProductsService Web Service

In the first exercise, you will create the ProductsService Web service and examine the example code generated by Visual Studio 2008 whenever you create a new WCF service project. In subsequent exercises, you will define and implement the HowMuchWillItCost Web method and then test the Web method to ensure that it works as expected.

Create the Web service, ...

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