Learn WCF (1)--Basic articles

Source: Internet
Author: User

Windows Communication Foundation (WCF) is a comprehensive layered architecture for service-oriented programming. The top-level of the architecture, called the Service Modeling Layer, allows users to build their own software products and external communications models with minimal time and experience. It enables developers to build a cross-platform, secure, trustworthy, transactional solution that can collaborate with existing systems. I will be through a few articles with you to learn WCF, hoping to learn from the novice WCF some help.

From a functional standpoint, WCF can be viewed as a collection of technologies such as Asmx,.net remoting,enterprise SERVICE,WSE,MSMQ:

WCF Service

An important principle of software design: Software components must be designed and optimized specifically for specific tasks. If we want to do a management software, imagine that if a software is very dependent on communication with the outside, we can not take the logic of management software and external communication within the management system. Therefore, communication tasks must be delegated to different components. In WCF terms, this component is called a WCF service. More popular will, WFC service is responsible for communication with the outside software.

A WCF Service is comprised of the following three parts:

Service class: A class marked with the [ServiceContract] attribute, in which it may contain multiple methods. In addition to marking some of the WCF-specific attributes, this class does not differ from the general class.

Host (host): Can be an application, a process such as a Windows Service, which is the WCF Service runtime environment.

Endpoints: Can be one, or can be a group, it is a WCF implementation of communication core elements.

In the example application that follows, I'll also mention these three concepts.

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.