Learn WCF3 from scratch--Configure services

Source: Internet
Author: User

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
    1. The address of the service.
    2. The service is used to send and receive messages for transmission. (HTTP or TCP)
    3. Message encoding (full-text format or optimized format)
    4. The type of security the service requires.

    • Configure the type of service
    1. Using configuration file Configuration
    2. 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.
    1. Use IIS to host services-using the Web. config file.
    2. Use any other hosting environment--Use the app. Config file to specify settings.

Learn WCF3 from scratch--Configure services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.