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

Consuming a WCF Service

You consume a WCF service in the same basic manner as described previously when consuming an ASP.NET web service. You start by adding a service reference to your project. Visual Studio then generates a proxy class for calling your service. You use this proxy class to call your service from your client application.

The following walks you through configuring the CustomerManager application created previously in this chapter to work with the WCF Service Library version of the WCF service:

1. Copy the CustomerManager application from the previous example into your project directory. In Solution Explorer, right-click the solution file and choose Add, Existing Project. Select the CustomerManager.csproj file.

2. Make sure that ...

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