Wcf q & A (1) differences between WCF and Web Service

Source: Internet
Author: User
Tags msmq

[0] problem:

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

This is a problem that many. NET developers may make mistakes. I often encounter this problem during interviews. Many new users will also be confused by their first contact with WCF or Web Services, and many materials are not accurate. I have even discussed these issues with many developers who have years of development experience. They cannot tell the difference between them. I believe many people are misled. The following are the most common incorrect ideas:

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

And so on. I believe many people have heard or come into contact with these ideas. We will analyze in detail the causes of errors in each opinion later. In the future, you will have a reference in your study and interview.

---------------------------------------

The following is a similar question from the WCF Chinese forum, which references ymq: Yes, I used many web services in the past, and I am familiar with it. Recently I came into contact with WCF, maybe it is the reason why we are new to contact. It seems that the Web Service is much more complicated than the web service, and its advantages are not very obvious ..... Thank you. I used to discuss a problem with them at the WCF Chinese technical forum.

---------------------------------------

Next we will discuss in detail the differences between the two. What is the difference between Web Service and WCF.

[1] Web Service: strictly speaking, it is an industry standard, that is, a Web Service Specification, also known as a WS-* specification. It is neither a framework nor a technology.

It has a set of standardized system standards, and is continuously updated and improved.

It uses XML extension markup language to represent data (this is the key to the exaggerated language and platform ). Microsoft's Web service implementation is called ASP. NET web service. It uses the Simple Object Access Protocol soap to implement data interaction between applications in a distributed environment. Description of the service interface. In addition, Web services can be registered to the UDDI Center for customers to find and use. Later, Microsoft implemented ASP. NET Web Service Security, performance, data encryption, decryption, hosting host and other aspects of the extension, called the WSE series, this is an over-product, up to wse3.0. later is the WCF era. (Required knowledge for distributed development of WCF (4): Web Service)

[2] ASP. NET web service: Microsoft provides a Web service development framework, which is part of the ASP. NET Framework, but supports the early ws specification. For example, soap1.1. [3] WCF: a distributed application development framework, which belongs to a specific technology or platform. It is neither a standard nor a standard.

To some extent, WCF is ASP. net web service, because it supports the industry standard and Core Protocol of Web Service, Asp. net web service and WSe can do almost all the things they can do. cross-platform and language are not a problem (data also supports XML formatting and provides their own formatter ). However, as a communication component or platform promoted by Microsoft, WCF aims not only to support and integrate Web Services, because it is also compatible with and has many features of Microsoft's early technology. According to Microsoft's official explanation, WCF (formerly called "Indigo") is a unified framework for building and running service-oriented applications using managed code. It enables developers to build a secure, trusted, and transactional solution across platforms, and to be compatible with existing systems. WCF is a set of developers for Microsoft Distributed Application Development. It integrates. NET platform, such as enterprise Sevices (COM + ). net remoting, Web Service (asmx), wse3.0, and MSMQ message queues. In terms of the scope of communication (communiation), it can be cross-process, cross-machine, cross-subnet, enterprise network, or Internet; in terms of host programs, it can be ASP. net, EXE, WPF, Windows Forms, NT Service, COM + as the host (host ). The protocols supported by WCF include TCP, HTTP, cross-process, and custom. Security modes include SAML, Kerberos, X509, user/password, and custom. That is to say, it is easy to develop a SOA-based Distributed System under the WCF framework. Microsoft includes all the technical elements related to this, and has mastered the concept, it is equivalent to mastering the key to open the SOA door. (Msdn) (WCF distributed development step to win (1): basic concept of the WCF distributed framework) If you want to learn more systematically about WCF, you must go to enterprise Sevices (COM + ). net remoting, Web Service (asmx), wse3.0, and MSMQ message queues also have a detailed understanding, you can read my blog, before that, I systematically sorted out the knowledge related to WCF learning. This is the document directory: Lao Xu's blog: The document directory. Another point is that many people are interested in learning WCF. I started from the past and ran directly to WCF. In fact, it was difficult to learn it later, because of the many features and advantages claimed by WCF, we cannot understand it, but we cannot understand it. As mentioned in this Article, if many early Microsoft technologies have never been used, we cannot have a profound understanding of these comparisons.

It is recommended that you start from the basics, and then focus on some more advanced applications or concepts of WCF, step by step. There are also a lot of WCF learning materials on the Internet. If you have a certain foundation, you can take a look at Fu Zhongkai's lecture. This requires a certain foundation. Original post address: http://social.microsoft.com/Forums/zh-CN/wcfzhchs/thread/c06420d1-69ba-4aa6-abe5-242e3213b68f advantages, only you learn to use the experience, wait for you to start learning the WCF you will slowly like it ~ A good communication framework, which is an important technical framework of Microsoft SOA. It is common to publish and call the WCF Service in BizTalk. It provides a wide range of adapters. For more information, see .~

 

[4] Conclusion:

After reading these analyses, we can see why the above conclusions are wrong.

No technical framework can be compared with industry standards. any comparison between the two is wrong, because they are not in the same category. Just like comparing a car with a traffic regulation. This is a misunderstanding.

  1. The Web service is too old: different frameworks have different versions, but there are new and old features. However, it is best for a specific system to suit itself.
  2. Web Service is ASP. NET web service: it is also not a category. The former specification, and the latter is the framework
  3. WCF performs better than Web Services: not a category,
  4. WCF is faster than ASP. NET web service: it is not necessarily necessary and requires specific restrictions. When using basichttpbinding, WCF uses the same protocol as ASP. NET web service.
  5. Faster than Web Services: The concept is also not strict.
  6. WCF is more powerful than Web Service: it integrates a variety of Microsoft Distributed technologies, but here it should be strictly said: ASP. NET Web Service
  7. WCF is more secure than Web Service: not strict. Secondly, WCF can also develop completely streaking applications.
  8. Web service will surely be replaced by WCF; web service will not be replaced by WCF! The former is a set of widely used specifications. If WCF can replace ASP. NET web service, both of them are technologies on the. NET platform.
  9. WCF is actually a Web Service: in some cases, WCF does not comply with the Web Service Specification, that is, it can develop non-service applications. It cannot be simple or equivalent.
  10. WCF is very simple, but there is nothing: although it is a service development framework, if you study it in depth, you will find the strength of the WCF architecture. It is already quite complicated to use WCF security alone. Furthermore, a unified programming model is required to be compatible with and support many early distributed technologies. Many people come to the conclusion that they only read some articles or books and do not necessarily write code. The experts won't come to an arbitrary conclusion.

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

Without such doubts.

Whether you are attending an interview, as a candidate, or as an interviewer, figuring out these basic questions is quite necessary. Do not fool others or be fooled by others.

Technical staff should adhere to a rigorous learning attitude .~

Haha, I hope it will be helpful for everyone's learning ~

 

From: http://social.microsoft.com/Forums/zh-CN/wcfzhchs/thread/c06420d1-69ba-4aa6-abe5-242e3213b68f

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.