ASP.NET Web Services Technology Comparison

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?

+4
source share
1 answer

I have no comparison, but if you do not have outdated code or other special requirements, I would go with a new web interface. They mainly replace ASMX and WCF services. They are easy to use and work similarly to the MVC App.

We just switched to it and it’s still so good.

0
source

Source: https://habr.com/ru/post/1442313/


All Articles