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.