Skip to main content

Posts

Showing posts with the label rest

OpenRasta vs WCF for RESTful Services

  Not long ago I discovered OpenRasta . If you’re not familiar with it it’s described as a “resource-oriented framework for .NET enabling easy ReST-ful development of websites and services”. After reading Rails 3 in a Nutshell I started looking at .NET a bit differently and have started being envious of the simplicity of Rails. When it comes to REST the ROR guys have definitely approached it the right way and it is baked right into the Rails framework. When it comes to .NET there are a few different approaches you can take to create RESTful services. ASP.NET MVC WCF OpenRasta Other MVC Frameworks Standard HTTP Handlers In this post I’m going to cover how you can implement such a service using WCF and OpenRasta. The goal is to expose a Product as JSON and XML using a RESTful uri. product/1 WCF Approach First let’s have a look at how to do this in WCF Project Structure Just create a standard WCF Service Application Project DataCont...