Microsoft > WCF >> Intro To WCF Views : 5108
Rate This Article :

Difference between WCF and Webservice

Main difference between WCF & Web services:

Features

Web service

WCF

Hosting

It can be hosted in IIS.

It can be hosted in IIS, WAS (Windows Activation Service), Windows Service, Self Hosting.

Programming

[Webservice] attribute has to be added to the class.

[ServiceContract] attribute has to be added to the class.

Model

[WebMethod] attribute represents the method exposed to the client.

[OperationContract] attribute represents the method exposed to the client.

XML

System.XML.Serialization namespace is used for serialization.

System.Runtime.Serialization namespace is used for serialization.

Encoding

XML 1.0, MTOM (Message Transmission Optimization Mechanism), DIME, Custom.

XML 1.0, MTOM, Binary, Custom

Transports

Can be accessed through Http, TCP, and Custom.

Can be accessed through Http, TCP, Named Pipes, MSMQ, P2P, and Custom.

Protocols

Security

Security, Reliable Messaging & Transactions.

About Author
Manoj
Total Posts 7
For Artile
Comment this article
Name*
Email Address* (Will not be shown on this website.)
Comments*
Enter Image Text*
   
View All Comments
Comments not posted yet!! Please post your comments on this article.
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.