views:

5637

answers:

4

Duplicate:

http://stackoverflow.com/questions/351334/web-service-vs-wcf-service


What is the difference between WCF service and Webservice ?

+1  A: 

WCF is an extension - it's a web service, but you can expose it over TCP/IP, or named pipes, in addition to just using HTTP.

Also, WCF has lots more options for security and so on.

You can also host a WCF service inside your own app - you don't have to use IIS for hosting the web service (ASMX).

In conclusion: WCF IS web services - just much more flexible and much more useful than straight ASMX web services.

Marc

marc_s
A: 

WCF is a .NET 3.5 technology introduced by Microsoft. It unifies all communication options available in earlier versions of .NET framework.

You can make a WCF application that would act exactly the same as a WebService, but it will be easier to implement and manage.

See Getting Started with Windows Communication Foundation (WCF) for more details.

Adam
Correction: WCF came in with .NET 3.0.
John Saunders
+2  A: 

WCF is a programming model and API. "WCF Service" implies an app that uses such programming model.

"Web Service" is an app that exposes an HTTP (REST (XML or JSON), SOAP or otherwise) interface.

You can build a Web service using WCF, but you can also build a Web service using other APIs or "stacks". Like PHP or Java, for example.

With WCF you can build web services but you can also build services that are not, "Webbish". For example you can build a service that accepts incoming binary requests over only a local pipe interface. It is still a service, but it is not a "web service" because it is not using web protocols (generally HTTP and XML).

Cheeso