Configuration Services Overview
- After you design and implement a service contract, you can configure the service. Where you can define and customize how services are exposed to clients, including specifying that you can find
- The address of the service.
- The service is used to send and receive messages for transmission. (HTTP or TCP)
- Message encoding (full-text format or optimized format)
- The type of security the service requires.
- Configure the type of service
- Using configuration file Configuration
- To force configuration in code
- In fact, writing a configuration is a major part of WCF application programming.
- To configure a WCF service by using a configuration file
- Configuring a WCF service by using a configuration file provides the flexibility to provide endpoint and service behavior data at deployment time rather than during design.
- WCF services can be configured using the. NET Framework configuration technology. Typically, you add XML elements to the Web. config file of the Internet Information Services (IIS) Web site that hosts the WCF service, through which you can change the details, such as the endpoint address (the actual address used to communicate with the service), on a per-machine basis. In addition, WCF includes several system-provided elements that can be used to quickly select the most basic functionality of a service.
- WCF uses the System.Configuration configuration system of the. NET Framework.
- Use IIS to host services-using the Web. config file.
- Use any other hosting environment--Use the app. Config file to specify settings.
Learn WCF3 from scratch--Configure services