WCF and WebService

WCF and WebService

Source: Internet
Author: User
Tags managed hosting msmq

"0" Question:

    1. What is the difference between WCF and Web service?
    2. What is the relationship to ASP.
    3. What is the difference between WCF and ASP. NET Web service?

That's a lot. NET developers are prone to the wrong questions. Often encountered during the interview. Many novices will also be confused by the first contact with WCF or Web service, and many of the data are inaccurate. I even discussed these issues with many developers who have been developing experience for many years and they can't tell the difference. It is believed that many people are also misled. The following are the most common erroneous views:

    1. The Web service is too old;
    2. Web service is ASP. NET Web service;
    3. WCF performs better than Web service;
    4. WCF is faster than ASP. NET Web service;
    5. WCF is faster than Web service;
    6. WCF is more powerful than Web service;
    7. WCF is safer than WEB service;
    8. WEB service will be replaced by WCF;
    9. WCF is actually a web Service;
    10. WCF is very simple, actually nothing;

And so on conclusion. I believe that many people have heard or contacted these views. We will analyze in detail the causes of the mistakes in each point. In the future, we have a reference in the study and interview.

——————————————————————————————————————–

Here is a similar question from the WCF Chinese Forum, citing YMQ:
Not bad
Before using the Web service with more, basic familiar with the recent contact with WCF, perhaps the reason for the first contact, how to feel more complex than the Web service, the advantages seem not very obvious .....
Thank you, I have discussed a problem with them in the WCF Chinese Technology Forum.

——————————————————————————————————————–

Let's discuss the differences in detail below. What is the difference between Web service and WCF.

"1" Web service: Strictly speaking, the industry standard, the WEB service specification, also known as the WS-* specification, is neither a framework nor a technology.

It has a complete set of standard system standards, but also in the continuous improvement of the update.

It uses XML extension markup language to represent data (this is the key to language and platform). Microsoft's Web service implementations are called ASP. It uses the SOAP simple Object Access protocol to implement data interactions between applications in a distributed environment. WSDL to implement a service interface-related description. In addition, Web services can be registered with the UDDI Center for use by its customers.
Later, Microsoft made ASP. NET Web service security, performance, data encryption, decryption, managed hosting, and many other extensions, called the WSE series, this is over-product, up to WSE3.0. And then it was the WCF era. (WCF Distributed Development Prerequisite Knowledge (4): Web Service)

"2" asp: Microsoft provides a development framework for Web services that is part of the ASP. But supports the early-riser WS specification. Like SOAP1.1.
The "3" WCF:WCF is a development framework for distributed applications that belongs to a specific technology, or platform. Neither the standard nor the norm.

WCF is, in part, an ASP. NET Web service, because it supports the industry standard and core protocols of Web service, so what ASP. NET Web service and WSE can do, it is almost capable, Cross-platform and language is not a problem (the data also supports XML formatting and provides its own formatter).
But WCF, as Microsoft's main push for a communications component or platform, aims not only to support and integrate Web Service, because it is also compatible and has the features of many of Microsoft's early technologies.
According to Microsoft's official explanation, WCF (previously known as "Indigo") is a unified framework for building and running service-oriented services (oriented) 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 Enterprise Sevices (COM +). NET Remoting, Web Service (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,windows forms,nt service,com+ (Host). WCF can support protocols including tcp,http, cross-process and custom, and security mode includes 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. (MSDN) (WCF distributed development step for Win (1): WCF Distributed Framework Foundation concept)
If you want to systematize WCF learning, you must make a pair such as Enterprise Sevices (COM +). Net Remoting, Web Service (ASMX), WSE3.0 and MSMQ Message Queuing also have a detailed understanding of the words, you can look at my blog, before my knowledge of WCF learning has been systematically organized. This is the article directory: Lao Xu's blog: Article directory.
Also, a lot of people are interested in WCF learning, at the outset, I also, directly to WCF, in fact, in the later learning to feel the difficulty, because the WCF claims many features and advantages, we can not understand, more can not realize. The article mentions that many of Microsoft's early technologies, if not touched, will not have a deep understanding of these comparisons.

It is recommended that you start with the basics and then focus on some of the higher-level applications or concepts in WCF. Online also have a lot of WCF learning data, and so on a certain basis can see Chingkai elder brother's lectures, this needs a certain foundation.
Advantage, only you learn to use later only experience, and so you start to learn WCF you will slowly like it ~ very good communication framework, this is the Microsoft SOA important technical framework. It is common to publish and invoke WCF services in BizTalk, which provides a rich adapter. You are interested to know.

"4" Conclusion:

Then we look at these analyses and we can see why the above conclusions are wrong.

It is not possible to compare a technical framework with an industry standard, and any comparison between the two is wrong, since the roots are not in the same category. It's like you can't compare a car with a traffic law. This is a mistake.

    1. Web service is too old: The framework versions of the differences, functional features are new and old, but for a particular system, the best for their own.
    2. Web service is ASP. NET Web service: Also not a category. The former norm, the latter is the framework
    3. WCF performs better than Web service: not a category,
    4. WCF is faster than ASP. NET Web service: Not necessarily, a specific restriction is required, and WCF uses the same basichttpbinding as the ASP.
    5. WCF is faster than Web service: The same concept is not strict.
    6. WCF is more powerful than WEB service: WCF is a distributed technology that integrates a variety of Microsoft, but it should be strictly said: ASP. NET Web Service
    7. WCF is more secure than WEB service: not strict. Second, WCF can also develop completely bare-ben applications.
    8. Web service will be replaced by WCF, and Web service will not be replaced by WCF! The former is a set of widely used norms. If WCF can replace ASP. NET Web Service, because both are. The technology on the net platform.
    9. WCF is actually the Web SERVICE:WCF in some cases do not adhere to the Web services specifications, that is, can develop non-service nature of the application. and cannot be simply equated.
    10. WCF is very simple, but there is nothing: WCF is a service development framework, but if you delve deeper, you will 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. Many people easily come to the conclusion that they must have read only a few articles or books, not necessarily written code. A master is not so judgmental as to conclude.

After reading this article, I hope you have a thorough understanding of WCF and webservice.

And no longer have such doubts.

Whether it's an interview, a candidate, or an interviewer, it's quite necessary to get a clear idea of these basic issues. Don't be fooled by others, don't be fooled by others.

Technical staff should adhere to rigorous learning attitude. ~

Oh, I hope that everyone's study is helpful ~

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.