In Visual Studio 2012, when I want to add a web service to an existing website project , I have at least the following options in the Add New Item dialog box:
- Web API Controller Class
- AJAX-enabled WCF service
- Silverlight-enabled WCF Service
- WCF Data Service
- WCF Service
- Web Service / ASMX (this is what I used until today)
(Perhaps there are even more options, for example, available as add-ons, extensions, NuGet packages, etc.).
As far as I know, the "Web API" is the latest technology for web services. Should it be used for all new developments?
Or are there still situations in which one of the other technologies should be considered? Is there any comparison of these technologies or some recommendations when to use them?
source share