The difference between WCF and WebService

Source: Internet
Author: User
Tags hosting managed hosting msmq

WCF supports multiple communication protocols Http/https, TCP/UDP, MSMQ, Named Pipes, Peers,

Messaging accessibility, transaction flow, and so on.

WCF can integrate with ASP, share a context (HttpContext).

WCF supports a variety of message transmission formats: Text,binary,mtom,json, and so on.

WCF security is stronger: supports symmetric security, asymmetric security, message security, transport security,

SSL streaming security, Windows streaming security, and so on.

WCF supports multiple session modes: one-way, two-way, request/response.

WCF supports rest.

WCF supports a variety of formatting methods. DataContractSerializer, XmlSerializer,

DataContractJsonSerializer and so on.

WCF supports was hosting, Windows service hosting, Self-hosting, IIS hosting, and so on.

WCF supports multiple concurrency modes: singleton, monotonic, session

1.WebService: Strictly industry standard, not technology, uses XML Extensible Markup language to represent the data (this is the key to the Kua language and the platform). Micro

A soft Web service implementation is called an 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 a

Products, up to WSE3.0. Later it was the era of WCF.

2.WCF: To some extent, ASP. NET Web service, because it supports the industry standard and core protocols of Web service, so the ASP.

And what WSE can do, it's almost up to it, 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 Microsoft

Features of many early technologies.
According to Microsoft's official explanation, WCF (previously known as "Indigo") is the use of managed code to establish and run service-oriented (oriented) applications

The unified framework for sequencing. 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 and all the 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 cross-process, cross-machine

, cross-subnets, corporate networks and the Internet; in the host program, you can use Asp.net,exe,wpf,windows forms,nt service,com+ as a homestay

Primary (host). The protocols that WCF can support include tcp,http, cross-process and custom, and security mode includes SAML, kerberos,x509, user/password,

Custom and many other standards and patterns. In other words, under the WCF framework, developing SOA-based distributed systems has become easier, and Microsoft has all the technology associated with it

Elements are included, mastering WCF is equivalent to mastering the

The difference between WCF and WebService

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.