in the previous articles, we briefly introduced WCF and how to use it, let's talk about it today. WCF and the WebService similarities and differences.
I believe most of the students like me, for WebService have some knowledge, and should say you are first heard WebService, after I heard there is a WCF 's, right? Well, let's take a look at it today, what's the difference between the two.
WebServiceis the standard, is a norm. Strictly speakingWebServiceis an industry standard, not a specific technology. andWCFis aWebServicethe implementation. In theWCFPreviously, the Microsoft series hadASP. NET Web Service, and then Microsoft did theAsp.netweb Servicesecurity, performance, data encryption, decryption, managed hosting, and many other extensions, calledWSESeries,WSE3.0.And then it wasWCFtimes.
WCF is a development framework for a distributed application that belongs to a specific technology, or platform. Neither the standard nor the norm. to some extent , WCF is an ASP. NET Web service because it supports industry standards and core protocols for Web service, so the ASP. WebService and WSE can do things that are almost as competent, cross-platform and language is not a problem , but its goal is not just to support and integrate Web Service.
WCF is a unified framework for building and running service-oriented (serviceoriented) applications using managed code. It enables developers to build a secure, trustworthy, transactional solution across platforms that can be compatible with existing systems. WCF is the integrator of Microsoft's distributed application development, which integrates. NET platform, all technologies related to distributed systems, such as enterprisesevices (COM +). NET Remoting, WebService (ASMX), WSE3.0, and MSMQ Message Queuing. In the context of communication (communiation), it can span processes, across machines, across subnets, corporate networks and the Internet, and in the host program, you can host Asp.net,exe,wpf,windowsforms,nt service,com+ (Host).
The protocols that WCF can support include tcp,http, cross-process and custom, and security mode including saml,kerberos,x509, user/password, custom and many other standards and patterns. That is, under the WCF framework, it is easy to develop a distributed system based on SOA, and Microsoft has included all the technical elements associated with it, mastering WCF as the key to opening the door to SOA .
about the WCF There are some misconceptions about this and some explanations from the Internet:
1 , W EB Service is too old.
Framework versions of the differences, functional features are new and old, but for a particular system, it is best for their own.
2 , W EB Service is ASP. NET Web Service
is also not a category. The former norm, the latter is the framework
3 , W CF ratio Good WEB service performance: not a category .
4 , W CF ratio ASP. NET Web Service Fast
Not necessarily, a specific restriction is required, and WCF uses basichttpbinding the same time as the ASP.
5 , W CF ratio Web Service Fast: The same concept is not strict.
6 , W CF ratio Web Service Powerful
WCF is a distributed technology that integrates a variety of Microsoft, but it should be strictly said: ASP. NET Web Service
7 , W CF ratio Web Service security: not strict. Second, WCF can also develop completely bare-ben applications.
8 , W EB Service will be WCF supersedes
Web service will not be replaced by WCF! The former is a set of widely used norms. If WCF can replace ASP. WebService, because both are. The technology on the net platform.
9 , W CF is actually Web Service
In some cases, WCF does not adhere to the Web service specification, which is the ability to develop non-service-quality applications. and cannot be simply equated.
Ten , W CF is very simple, in fact there is nothing
WCF is a service development framework, but if you delve deeper, you'll find the power of the WCF architecture. WCF security alone is already quite complex. Moreover, the unified programming model is compatible and supports many early distributed technologies.
Well, here is just a start, specific what is different, but also need to do a personal check, do an example experience.