Reputation: 18485
I'm building a Web API to access my database. I would like to create a Single Page Application Website first then a iPhone, Android and Windows application. Classic.
My data and business layer are already finished.
First I decided to build a Json WCF Webservice. In Visual Studio I created a WCF Service Application. I modified the Web.config file to accept Json requests and implemented my interface and svc file.
After that I discovered ASP.NET Web Application with the Web API template. So I decided to change and to create a real web API with this full website structure.
Now I'm lost. What are the differences between these two possibilities to create a Web API?
Upvotes: 0
Views: 1066
Reputation: 1252
A comparative from microsoft : http://msdn.microsoft.com/en-us/library/jj823172(v=vs.110).aspx
Personnaly, I prefer WCF because the datacontracts are generated in the case of SOAP Web Services with WSDL files.
Upvotes: 2