I want to write my first REST web service using the .Net framework. I’ve seen fairly passionate comments from various people about which is best and have even found some differing comments from Microsoft.
My web service should be fairly simple: I want to expose bus timetable information. I figure the resources I will be concerned about are
- Fares
- Timetables (routes, stops)
What would be the most appropriate (i.e. not necessarily the easiest, most fun or your personal preference) technology to use out of WCF, ADO.NET Data Services or ASP.Net MVC?
WCF is the Microsoft messaging bus. It aims to help with development of distributed message driven services.
WCF Data Services is an implementation of the OData protocol on top of WCF that helps with exposing your data through an automatically generated RESTful interface.
ASP.NET MVC is a framework that helps with development of web applications based on the model-view-controller pattern.
You can implement your RESTful service using any of the three technologies, however:
I would personally suggest you use the WCF Data Services to implement your service, since it seems to be mostly data-driven.