Friday, June 8, 2012

Differences between WCF and web service?

Web services can be hosted on IIS.
WCF can be hosted in IIS, Windows Activation services, self hosting and windows service.
[Web service] attribute has to be added to class in web services.
[Service contract] attribute has to be added to class in wcf.
[web method] attribute represents the method exposed to client in web service.
[Operation contract] attribute represents the method exposed to client in wcf.
One-way,Request-Response are different operations supported by web service.
One-way, Request-response, Duplex operations supported by wcf services.
System.Xml.Serialization namespace is used for serialization in web service.
System.Runtime.Serialization namespace is used for serialization in wcf.
web service uses security protocol.
Security, reliable, messaging, Transaction protocols are used in wcf.

No comments:

Post a Comment