Add a WCF Service Reference to the Client

In this step, you add a Web reference of the WCF service to your Client application. This How To article uses a Web reference to show the usage of a WCF service as a legacy Web service; otherwise, you can add it as a service reference.

  1. Right-click your Client project and then click Add Service References.
  2. Click Advanced and then click Add Web Reference under the Compatibility section.
  3. In the Add Web References dialog box, set the URL to your WCF service: http://localhost/WCFServiceBasicHttp/Service.svc
  4. Click Go.
  5. In the Web reference name: field, change localhost to WCFTestService.
  6. Click Add Reference.
A Web reference to WCFTestService should now appear in your Client project as below


Screenshot :

0 Responses to “Add a WCF Service Reference to the Client”

Post a Comment

Labels

Topics