What is WCF

Source: Internet
Author: User

A few blogs are all about the knowledge of WCF fragmentation. To understand the following macro, what is WCF?
Wcf:windows Communication Foundation (WCF) framework.

1.WCF System Framework

2. Framework Analysis

2.1. What is a contract? --What?
Defines the method that the service exposes, the transport protocol used, the accessible address, the transmitted message format, and so on.


2.2. Service execution Library--How to do
Defines the detailed behavior of the service at execution time. Assuming that the contract is an interface, then this step is equivalent to the method of implementing the service
2.3. Message
Defines the way the message is transmitted, the encoding of the message, which is transmitted by default with the SOAP protocol. Through this part of the message. Very good control Transfer Protocol
2.4. Host
No matter what, a service must depend on an executable program. Frequently Used window services,. exe programs, etc.

3. Basic Concept Interpretation

1. Address
In WCF, each service is matched by a unique address. Therefore, an address should include the protocol used by the communication. such as HTTP net.tcp, etc.

2. Binding
Defines the way in which external communication is served
such as the way of communication HTTP TCP peer
Message encoded binary, plain text
Message Security
3. Contract
1. Service Contract
Associates multiple related cells to a piece. A single functional unit consisting of
2. Data Contract
The data type used by the service must be described in metadata, and the description of the data type is called a data contract
3. Wrong contract
4. Message Contracts
The format used to describe the message, or the message should be included in the message header or in the body of the message

4. End point
A service can have multiple endpoints, but a service has only one address. So multiple endpoints share an address.
5. Meta-data
6. Host
The service must be hosted in a process.

Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

What is WCF

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.