Microsoft Communication Framework practice-main concepts and communication framework practice

Source: Internet
Author: User

Microsoft Communication Framework practice-main concepts and communication framework practice

Windows Communication Foundation (WCF) is a series of application frameworks developed by Microsoft to support data Communication. It is a cross-platform security, reliable, and transactional solution. It is a web service ,. net Remoting, Enterprise Service, WSE, MSMQ integration, and integration of HTTP and FTP-related technologies, is. best practices for developing distributed applications on the. NET platform. WCF provides a runtime environment for the service, allowing developers to publish the CLR type as a service and use the service in the CLR type.

A classic comparison is shown below:

      

ABC in WCF

Let's take a look at the example in our daily life. One day, the company's leaders asked you to submit a contract document, during file delivery, you can select taxi, bus, and subway transportation methods. Of course, the expenses are reimbursed based on the invoice, after arriving at the opposite Company, you need to find a manager and a receipt of the contract documents and related documents.

To complete this task, perform the following steps:

(1) first, we need to know the address of the other company and lead to "A" in WCF ".

A (Address): It is an English "Address". In A computer, it is identified by A unique URI Address. Through this Address, we can find the WCF Service we want to call.

A solved: Where to locate the WCF Service?

(2) We also need to choose our transportation mode. The results of each transportation mode are different. For example, the taxi fare is expensive, but the process is more comfortable. The time depends on the road. Bus is the cheapest and multiple lines are available. The subway is the most convenient, but sometimes it is very crowded, generally there is no seat, etc., lead to the "B" in WCF ".

B (Binding): In English, it is understood as "Binding, Binding". Binding implements all the underlying details of communication between the Client and the Service. For example, what encoding is used when the client and the server transmit data? XML? Text? Binary ?... Which transmission protocol is used for transmission, TCP? Http? And what mechanisms are used to solve security problems, SSL? Encryption ?...

B solved: How to communicate with service?

(3) What can we do after arriving at the target company? I. Send the contract, II. get the receipt. We cannot ask the other company to give us other things, and lead to "C" in WCF ".

C (Contract): What is a Contract in English? Tell us what can be done, such as what cannot be done. The main function of Contract is to expose all valid methods provided by a WCF Service. Contract converts each method into a corresponding message.

C solved: What functionalities do the Service provide?

 

Related Article

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.