Home > WCF > Web Services vs WCF services

Web Services vs WCF services


Many times I saw asking differences between web services and WCF services so this made me write this.

There are numbers of differences between both , so lets understand step by step.

–WCF offers much more flexibility and portability to develop a service when comparing to web service. Still we are having more advantages over Web service.
more more details you can visit at http://msdn.microsoft.com/en-us/magazine/cc163674.aspx[^]

Features Web Service WCF
Hosting It can be hosted in IIS It can be hosted in IIS, windows activation service, Self-hosting, Windows service
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 client [OperationContract] attribute represents the method exposed to client
Operation One-way, Request- Response are the different operations supported in web service One-Way, Request-Response, Duplex are different type of operations supported in WCF
XML System.Xml.serialization name space 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, Custom Can be accessed through HTTP, TCP, Named pipes, MSMQ,P2P, Custom
Protocols Security Security, Reliable messaging, Transactions

hope this will help you to understand.

If this help you in understanding the concept then like and share it to your friends.

Advertisements
Categories: WCF Tags:
  1. May 30, 2012 at 6:51 AM

    [ServiceContraact] e ek “a” jada hai… rectify kor lo…

    • May 30, 2012 at 6:56 AM

      thank you. its really encourage to write more if someone take interest.

  2. May 30, 2012 at 8:29 AM

    welcome.. good work… add more article like this. WCF,,,WPF… MVC etc…….. keep adding..

    • May 31, 2012 at 5:28 AM

      Yes, it will be my best effort to add new topic on latest technology, do visit for new update.

  1. May 31, 2012 at 12:35 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: