Why use ASP.NET MVC 2 for REST services? Why not WCF?

后端 未结 4 1236
温柔的废话
温柔的废话 2020-12-23 10:52

So I see that MVC 2 now supports [HttpPut] and [HttpDelete] as well as [HttpGet] and [HttpPost], making it possible to do

4条回答
  •  没有蜡笔的小新
    2020-12-23 11:10

    I can't talk for the MVC toolkit, but personally I find WCF a pain to work with. It does have uses, but it's quite a heavy framework and can be quite awkward to use at times.

    If you want to go down the REST route, OpenRasta is the best .Net solution currently around. Especially in terms of compliance.

    You can also forge the ASP MVC framework to be RESTful, but that requires a fair bit of work (compared to OpenRasta which works out of the box).

提交回复
热议问题