differences between WCF and Webservices

Posted by Rajeshk under WCF on 11/17/2012 | Points: 10 | Views : 1415 | Status : [Member] | Replies : 5
HI All,
I Heard that Wcf is a replacement Of Webservices can anyone differentiate these two .....

Thanks&Regards
rajeshkommireddy@gmail.com



Responses

Posted by: Sandhyab on: 11/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Web service is part of WCF. WCF offers much more flexibility and portability to develope a service when compare to web service. Web service can be hosted in IIS. WCF can be hosted in
1.IIS
2.WAS(Windows Activation Service)
3.WS(Windows Service)
4.Self Hosting.
To know more about wcf, Please go through following link
http://wcftutorial.net/

Thanks & Regards


Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/18/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi rajeshk ,
Web service is a part of WCF. 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.
kindly go through this link
http://wcftutorial.net/Difference-between-WCF-and-Webservice.aspx

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 11/22/2012 [Member] Bronze | Points: 25

Up
0
Down
WCF

1)WCF Service is Microsoft's implementation of SOAP.
2)We get a much higher degree of flexibility and portability.
3) WCF can be hosted on IIS, Self hosting, Windows service and Windows activation service
4) WCF Uses DataContractSerializer which is better in Performance as Compared to XmlSerializer.
5) DataContractSerializer can translate the members of objects into XML regardless of the access modifiers of those members.
6) DataContractSerializer being able to access the non-public members of a type is that it requires full trust.
7) [ServiceContraact] attribute has to be added to the class.
8)One-Way, Request-Response, Duplex are different type of operations supported in WCF.
9) System.Runtime.Serialization namespace is used for serialization.
10)WCF supports more of WS-* standards than web services.
11)WCF can maintain transactions like COM+.
12)It has JSON integration.

Webservices

1)Web Service is an abstract term encompassing a large variety of data providers for distributed systems.
2)Web Services Use XmlSerializer .
3)Web service can be hosted on IIS only where as
4)The XmlSerializer can only translate the public members of a .NET object into XML
5)XmlSerializer does not able to access the non-public members of a type
6)In Webservice unhandled exceptions are returned to clients.
6)[WebService] attribute has to be added to the class.
7) One-way, Request- Response are the different operations supported in web service.
8)System.Xml.serialization name space is used for serialization.
9)Can be accessed through HTTP, TCP, Custom.
10)Security.

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 11/22/2012 [Member] Bronze | Points: 25

Up
0
Down
Please mark as answer if it helpful to you. That helps others who search the same..

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 11/22/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
By using web services we can use only select command.
but if we use wcf it can execute all the commands like insert ,update,delete....
compared to web services wcf has more efficient features using
hosting in various waya
and bindings so on.....


thanks& regards

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Rajeshk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response