5

Possible Duplicate:
Which to choose: ASP.NET MVC or RESTful WCF?

I'm trying to figure out when I would ever want to use WCF to build restful services instead of something much less complex like ASP.Net MVC? With MVC I can easily control the urls and the output. With WCF there's an increadible amount of know-how and complexity to get things working right.

Maybe this question is argumentative, but I really have a limited understanding of WCF so I'm looking to be educated not start a flame war.

Thanks!

Community
  • 1
  • 1
Micah
  • 111,873
  • 86
  • 233
  • 325
  • I think we are comparing apples to oranges here. – fnCzar Sep 17 '10 at 15:43
  • 1
    @fnCzar I disagree. If we are using WCF to provide data via RESTful services, the exact same thing can be achieved with MVC right? With (IMHO) a lot less complexity. – Micah Sep 17 '10 at 15:46
  • @John-Saunders similar, but not a duplicate. I'm looking for more information of "Why". The other question just says "Might as well use it" no details really about which is better and why. – Micah Sep 17 '10 at 15:48

1 Answers1

3

I've used both, and honestly it's much easier/ quicker setting restful services up as mvc actions. The complexity of the wcf configuration files is absolutely absurd and borderline unnecessary. Imo..

For example.. i deployed the same wcf services project on a few different versions of iis, and they simply would not run on one particular configuration. Had to Google around all over just to find out that some silly element had to be added to the web config in order for it to run. Epic waste of time.