What is the difference between WCF and Web Services?

Let me tell you the definition of two and then explain the main difference.


Windows Communication Foundation(WCF):
       
         WCF stands for Windows Communication Foundation. WCF is a unified programming model for building service oriented application. WCF is the next generation of distributed applications and Web Services. It consist of a runtime and classes in System.ServiceModel namespace.

Web Services:
       
         Web Services are business logic compnents, which provide functionality via the internet using standard protocols such as HTTP. Web Services uses Simple Object Access Protocol (SOAP) in order to expose the business functionality. SOAP defines a standardized format in XML.

Differences:


WCF

Web Services
While WCF Service or a WCF component can be invoked by any protocol (like http, tcp etc.) and any transport type.

Web services can only be invoked by HTTP (traditional webservice with .asmx).

WCF are flexible.

Web Services not are flexible.
WCF service can also maintain state and session.
WCF service can not maintain state and session.

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.