Should it be a WebAPI or asmx

Viewed 17413

Should I leverage an ASMX service or the ASP.NET Web API for my two simple API's?

I want to create two simple APIs in my ASP.NET MVC project. One takes in 3 parameters (currentUserID, DataType, ActionName). It returns them and an XML string of the data they have requested. The API is consumed by client-side JavaScript code. The other API receives an XML string and uses that on the server side to perform actions on the database.

3 Answers
Related