Basic Programming Lifecycle

Windows Communication Foundation (WCF) enables applications to communicate whether they are on the same computer, across the Internet, or on different application platforms. This topic outlines the tasks that are required to build a WCF application. For a working sample application, see Getting Started Tutorial.

The Basic Tasks

The basic tasks to perform are, in order:

  1. Define the service contract. A service contract specifies the signature of a service, the data it exchanges, and other contractually required data. For information, see Designing Service Contracts.

  2. Implement the contract. To implement a service contract, create the class that implements the contract and specify custom behaviors that the runtime should have. For information, see Implementing Service Contracts.

  3. Configure the service by specifying endpoint information and other behavior information. For information, see Configuring Windows Communication Foundation Services.

  4. Host the service in an application. For more information, see Hosting Windows Communication Foundation Services.

  5. Build a client application. For information, see Building Windows Communication Foundation Clients.

Although the topics in this section follow this order, some scenarios do not start at the beginning. For example, if you want to build a client for a pre-existing service, you start at step 5. Or if you are building a service that others will use, you may skip step 5.

Once you are familiar with developing service contracts, you can also read Introduction to Extensibility. If you have problems with your service, check WCF Troubleshooting Quickstart to see whether others have the same or similar problems.

See Also

Concepts

Implementing Service Contracts