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 path Add | Service Reference..., which will open the Add Service Reference dialog on the screen:
- In the Add Service Reference dialog, enter the service URL (http://localhost:59795/Services/EmployeeService.svc) inside the Address field and click on the Go button:
- This will resolve the service address and show the details about it.
- As shown in the following screenshot, enter EmployeeServiceReference as the Namespace for the service proxy and click OK:
- This will create the service proxy as Connected Services under the project:
- Build the project to make sure that there are no compilation issues.
- Once the build gets succeeded, navigate to the MainWindow.xaml.cs file.
- Create a dependency property of type ObservableCollection<Employee>, and name it as Employees. The property...