Configuring Windows Communication Foundation Services
Once you have designed and implemented your service contract, you are ready to configure your service. This is where you define and customize how your service is exposed to clients, including specifying the address where it can be found, the transport and message encoding it uses to send and receive messages, and the type of security it requires.
Configuration as used here includes all the ways, imperatively in code or by using a configuration file, in which you can define and customize the various aspects of a service, such as specifying its endpoint addresses, the transports used, and its security schemes. In practice, writing configuration is a major part of programming WCF applications.
In This Section
- Configuring Services Using Configuration Files
A Windows Communication Foundation (WCF) service is configurable using the .NET Framework configuration technology. Most commonly, XML elements are added to the Web.config file for an Internet Information Services (IIS) site that hosts a WCF service. The elements allow you to change details, such as the endpoint addresses (the actual addresses used to communicate with the service) on a machine-by-machine basis.
- Windows Communication Foundation Bindings
In addition, WCF includes several system-provided common configurations in the form of bindings that allow you to quickly select the most basic features for how a client and service communicate, such as the transports, security, and message encodings used.
- Windows Communication Foundation Endpoints
All communication with a WCF service occurs through the endpoints of the service. Endpoints contain the contract, the configuration information that is specified in the bindings, and the addresses that indicate where to find the service or where to obtain information about the service.
- Securing Services
Using WCF and existing security mechanisms, you can implement confidentiality, integrity, authentication, and authorization into any service. You can also audit for security successes and failures.
- Creating WS-I Basic Profile 1.1 Interoperable Services
The requirements for deploying a service that is interoperable with services and clients on any other platform or operating system are outlined in the WS-I Basic Profile 1.1 specification.
- WCF Administration and Diagnostics
Monitoring the different stages of an application’s life: event and message logging, tracing, and performance monitoring enabled by a set of management tools.
Reference
System.ServiceModel.Description
Related Sections
Designing and Implementing Services
Hosting Windows Communication Foundation Services
Building Windows Communication Foundation Clients
See Also
Other Resources
Basic WCF Programming
Conceptual Overview
WCF Feature Details
© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-03-21