First, review the history of development:
The design of software architecture has experienced: from Object-oriented program, to component-oriented programming, to service-oriented program design. These three ways are dedicated to the same goal: encapsulation and reuse.
Object-Oriented Programming: class encapsulation capabilities and provides code reuse.
Component-oriented programming: To share binary documents that encapsulate reusable classes. Initially, this was only for native, with the advent of com,dcom and. NET Remoting to the distributed environment. Although these distributed methods are different, they can be implemented across processes and across machines. Component-oriented programming has many limitations, and the most obvious limitation is that it is too deep coupled with some specific technologies. For example: How a Java client calls a COM component. NET how to invoke EJB, the production of these limitations is the problem of protocol and communication format.
Service-oriented (SOA): addresses the communication between different customers, that is, there is no need to worry about using different technologies with each other.
Ii. What is a WCF service
WCF: The abbreviation for Windows Communication Foundation (Windows Communication Foundation), a synthesizer of Microsoft's distributed application development, is the integration of all distributed communications technologies under the existing Windows platform, such as. NET Remoting, MSSQ. In the context of communication, it can span processes, across machines, across subnets, corporate networks, and the Internet. WCF can run on Asp.net,exe,wpf,windows forms,nt service,com+. The protocols that WCF supports include tcp,http.
Benefits of WCF:
1 Unity: WCF is the integration of technologies such as. NET remoting,enterprise service,msmq.
2 Interoperability: Because the most basic communication mechanism of WCF is the SOAP protocol, this guarantees interoperability between systems, even in a different context. You can communicate across processes, across machines, and even across platforms, as long as the standard Web Service is supported. Applications can run under the Windows operating system, or they can run on other operating systems.
3 Compatibility: WCF fully takes into account compatibility with legacy systems. Installing a WCF service does not affect the original technology.
4 Efficient development: maintainability, operability, productivity improvement, seamless integration of the development environment.
WCF Service One: Introduction to WCF Services