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 ...