Alex Rivera | Logout

Would it be better to use Asp.net mvc or web services?

Asked 2011-08-25T08:39:25.673
9

I have asp.net mvc app written a couple of years ago and the more I add to it, I tend to make REST/AJAX calls to the controller to get data from it.

My question is do I carry on working in this way or should I expose the data as a separate REST services (WCF way of doing things)?

It feels that the boundary on what a mvc app is designed to do and the design of web service is getting blurred. The Mvc app (apart from separation) initially produced web pages, now it is being used to provide service based data.

JD

Edit
Report

1 Answer

2

I think WCF has several advantages over MVC if you are strictly sending data, specifically in terms of data formats being unambiguous (SOAP vs. using home-brewed encodings), industry-wide tool support, excellent support for different types of bindings (i.e. not just HTTP), various transport level services, nice logging and tracing capabilities, etc.

In the end though, it boils down to: is there a significant enough advantage to going with WCF for your case. That is something that you'd have to figure out yourself.

answered 2011-08-25T08:50:24.173

Your Answer