Monday, 30 April 2012

What is webservice? What is WCF? Difference between webservice and WCF.

Webservices:
  • Webservice is an application.
  • It is used to interact with the other applications over the internet.
  • Webservice is language independent, platform independent and protocol independent.
  • I earlier wrote the article How to create webserices in .net
  • Webservices are communicate by using the standard protocols like
 
SOAP :  Service Oriented access Protocol
HTTP: Hypertext Transfer Protocol
XML  :  Extensible Markup Language
 
WCF:
  • WCF is abbreviated  as Windows Communication Foundation.
  • Webservice is a part in WCF.
  • WCF is more flexible than webservice.
  • It is more portable than webservice .
  • It is a combination of  webservice ,MSMQ (Message Queuing),Remoting and COM(Component Object Model).
Differences between webservice and WCF are as shown in below table.
Webservice
WCF
It can be hosted in IIS(Internet Information Services)
It can be hosted in IIS,windows service,self hosting,windows activation services
It can write webservice in any .NET Framework
It can write from .NET Framework 3.5

Webservice and web method are used in webservices
Service contracts, Operation contacts, Message contacts, Data contacts and Fault contacts are used in the WCF.

[webservice] attribute has to be addes to the class
[ServiceContract] attribute has to be addes to the class

[WebMethod] attribute represents the method exposed to client

[OperationContract] attribute represents the method exposed to client

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

System.Xml.serialization name space is used for serialization
System.Runtime.Serialization namespace is used for serialization

It can be accessed through HTTP,TCP,custom
It can be accessed through HTTP,TCP,Named pipes,MSMQ,P2p,Custom


"If you like my blog or articles, you can appreciate by leaving your comments or Liking my Facebook pageAspdotnet-kishore, following on Google+ Aspdotnet-Kishore, Twitter  on AspdotnetKishore, Linked in Aspdotnet-Kishore, stumbling my posts on stumble upon and subscribing on  RSSfeed Aspdotnet-Kishore for free updates directly to your Email inbox . Watch my blog  for more articles." 

No comments:

Post a Comment

© 2012-2018 Aspdotnet-Kishore.blogspot.com. All Rights Reserved.
The content is copyrighted to Kishore and may not be reproduced on other websites without permission from the owner.