Integrating a WCF service in a WPF application
Once you create a WCF service, you probably would like to integrate it into a client application. But before that, you will have to create a WCF client proxy, so that you can communicate with the service through the WCF client proxy.
In this recipe, we will learn how to create the proxy client and give a call to the service to pass messages between the service and the client.
Getting ready
Before going into the steps to integrate the service, we need to create a client application. Open your Visual Studio IDE, and create a new WPF project. Name it CH09.ClientDemo
.
How to do it...
Follow these steps to create the service proxy and integrate the service call in the client application:
- Right-click on the project node (
CH09.ClientDemo
), and follow the context menu pathAdd
|Service Reference...
, which will open theAdd Service Reference
dialog on the screen:

- In the
Add Service Reference
dialog, enter the service URL (http://localhost:59795/Services/EmployeeService...