Export (0) Print
Expand All

Consuming a WCF Service

Visual Studio 2008

Windows Communication Foundation (WCF) services enable you to expose an application's functionality as a service that other applications can access (consume). Although you cannot create a WCF service by using Visual C# Express Edition, applications that you create with Visual C# Express Edition can consume existing WCF services. In the following example, you will learn how to set a reference to an existing WCF service.

To reference a WCF service

  1. On the File menu, click New Project.

  2. In the New Project dialog box, click Windows Forms Application, and then click OK.

  3. In Solution Explorer, right-click the project and then click Add Service Reference.

    The Add Service Reference dialog box appears.

  4. In the Add Service Reference dialog box, add the URL of the WCF service.

  5. Click OK to add the service reference.

After you have referenced the WCF service, your application can access its methods.

Community Additions

ADD
Show:
© 2014 Microsoft