Click here to Skip to main content
15,790,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In visual studio 2010,I added a website and then when i add new item I found three items
of web services.Web Service , WCF Service and the last one is WCF Data Service.
What's the difference between them and which to be used where?

1.The Web Services are the simple way of creating web services in .NET and were available for using even from the .NET version 1.0. They are used mainly to provide access to the application logic over the web, and must be installed into IIS.

2.The WCF Services are the new way of communication between .NET applications that unify into one single technologies the next old technologies: Web Services, Windows Messaging, Windows Remounting, etc. They are very configurable, provide strong security and can be hosted into IIS or into a simple windows service (installed on the servers). I strongly recommend you to use this!

3.WCF Data Services (formerly known as "ADO.NET Data Services") use the Open Data Protocol (OData) to expose and consume data over the Web by using the REST commands. Visual Studio makes it easier for you to create an OData-based service by using an ADO.NET Entity Framework data model.
Share this answer
I reference you to take a look >>[^] for more detail.

Hope it can help you.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900