Tutorial :what is the difference between wcf service and web service? [duplicate]



Question:

Possible Duplicate:
Web Service vs WCF Service

Duplicate:

Web Service vs WCF Service


What is the difference between WCF service and Webservice ?


Solution:1

WCF is a programming model and API. "WCF Service" implies an app that is built using that programming model and API.

"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).


Solution:2

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


Solution:3

I think these two links will give you all the information you need :

Comparing ASP.NET Web Services to WCF Based on Development

Comparing ASP.NET Web Services to WCF Based on Purpose and Standards Used

Also, check this question : What is difference with WCF and other web services?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »