Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the foundations of WCF?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about the basics of WCF, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

There are a lot of people want to know more about WCF. I've been studying WCF for a long time. Here's a brief introduction to WCF, which is for those who are curious about WCF technology. WCF is the abbreviation of Windows Communication Foundation, originally code-named Indigo. It is a complete technical framework designed by MS for SOA (Service Oriented Architecture Service-oriented Architecture). It can be used to develop distributed (Distributed) applications, and the difficulty of development is greatly reduced compared with the previous. NET Remoting and ASP.NET XML Web Service. It can be said that WCF is the current SOA framework under the Microsoft platform, and it is also Microsoft's main product in this field for some time to come. It has many advantages. To sum up, its characteristics are as follows:

1. Fully integrate the original. NET Remoting,ASP.NET Xml Web Service (ASMX, Web service), MSMQ (Message Queuing message queue), WSE (Web Services Enhancements), Enterprise Service (COM+) and other distributed technologies, take its essence and discard its dross.

Although 2.WCF integrates several technologies, it is easy to learn instead of increasing the difficulty of development. I believe that in the next few years, WCF will certainly cut through the difficulties and develop its skills in the spring tide of SOA.

WCF is a distributed communication programming framework provided by Microsoft for building service-oriented applications, and it is an important part of .NET Framework 3.5. Using this framework, developers can build enterprise-level interconnected application solutions that are cross-platform, secure, reliable and supporting transaction processing.

WCF provides all the features of existing ASP.NET Web Service, .NET Remoting, Message Queuing, and Enterprise Services technologies. The existing solutions all have their own advantages and disadvantages. WCF integrates the advantages of the above technologies and forms a new technology.

WCF provides the following features:

1. Resident components and services: as with custom hosts,. NET Remoting and WSE, WCF services can be placed in ASP.NET libraries, on Windows services, during COM+ processes, or on Windows Form programs for peer-to-peer computing.

two。 Declarative operations: instead of having to derive from the base class (the remote object in .NET Remoting derives from MarshalByRefObject and the Enterprise Services service component class from the base class ServicedComponent), you can define services using attributes, similar to ASP.NET 's Web services (the method is described by the [WebMethod] property and marked as accessible through the Web service).

3. Communication channel:. NET Remoting is very flexible in changing communication channels, while WCF is a good alternative, providing the same flexibility. WCF can communicate using HTTP, TCP, IPC (Internet Process Connection Interprocess Communication) channels. And support the use of UDP channels.

4. Security architecture: to implement platform-independent Web services, you must use a standard security environment. The standards currently provided are implemented in WSE2.0 and continue to be used in WCF.

5. Extensibility:. NET Remoting has rich extension capabilities to create custom channels, formatters, and agents, and to insert functionality into client and server message flows. WCF provides similar extensibility, but these extensions are implemented using SOAP headers.

6. Compatibility: with WCF, there is no need to rewrite distributed solutions, and WCF can integrate well with existing technologies. WCF provides a channel to use DCOM to communicate with the components being served. It is also easy to integrate with WCF by creating platform-independent services based on ASP.NET Web services.

WCF function:

Comprehensive description of the reliable transmission performance of WCF

A case study of orderly transfer of WCF by programming

Teach you two ways to call WCF services

Novice must see the introduction to WCF service metadata

Mining the similarities and differences between WCF and Web Service

In win32, applications run in the Thread of a process (Process). After the emergence of the .net platform, AppDomain (application domain) appeared, which is tantamount to a layer of packaging between processes and threads, similar to the concept of child processes. Objects in a process (or application domain) can be directly accessed and controlled, but beyond this scope, direct access and control cannot be carried out. Therefore, processes (or application domains) have a certain isolation effect, if they are distributed in different networks, different processes on different operating systems, it is more difficult for them to communicate. Distributed applications require that the originally isolated scope is linked through a certain contract, so as to achieve the communication and cooperation of multiple systems. Of course, WCF is not the only way to achieve this goal. For example, in the era of win32, mapped memory files are often used to achieve interoperability between processes, and in windows programs, windows message wm can also be used to achieve communication between different processes, but these have limitations, because they can not solve cross-platform and cross-network problems, while WCF can.

After reading the above, do you have any further understanding of the basics of WCF? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report