(Trying) To implement RESTful web services in .net 3.5

I’m sure this should be easier than it is….

So far I’ve used WCF REST Starter Kit and been following REST in WCF guidelines.

In particular A Guide to Designing and Building RESTful Web Services with WCF 3.5 is useful as is the video “Building resource singleton services with WCF starter kit“.

Also these screencasts are worth a watch.

2 Responses to “(Trying) To implement RESTful web services in .net 3.5”


  1. 1 Robert Stevenson-Leggett May 10, 2011 at 11:46 pm

    I’ve had the same issue. REST in WCF is not easy.

    Thinking of using OpenRasta or OData services next time!

    • 2 Alex Hardman May 11, 2011 at 8:41 am

      In MVC it’s a doddle. You can just return a JSON result in a controller method.

      As for ‘traditional’ web forms I suppse you could use an ashx file if you didn’t get WCF working but it doesn’t have the JSON infrastructure baked in. All in all it’s a faff for something that is trivial in other dev stacks.

      On top of testable code, the ability to quickly choose return type (html => return View(model), Json => return Json(model) ) is a major plus for MVC ;)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Topics/ Categories

My (Live) Twitter stream

Archives

My Recent Bookmarks

 

May 2010
M T W T F S S
« Apr   Jul »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow

Get every new post delivered to your Inbox.