How to create a RESTful web service in asp.net?
Posted
by jonhobbs
on Stack Overflow
See other posts from Stack Overflow
or by jonhobbs
Published on 2010-04-26T16:00:02Z
Indexed on
2010/04/26
16:23 UTC
Read the original article
Hit count: 279
Hi Guys,
I simply want to create a fairly basic REST service, so that I can expose some of the data in my asp.net/SQL server application to the outside works, like this.....
http://domain.com/api/offices - would return an xml set of office locations. http://domain.com/api/offices/15 - would return all the details of office 15.
It's all fairly standard stuff (including basic authentication) but there seem to be several ways to achieve this using Microsoft technologies and I don't really know where to start. These seem to be the options...
1) WCF
2) ASP.NET MVC
3) ADO.NET Data Services
4) Rest Starter Kit project templates?
Which of these is the easiest and most "up-to-date" solution to creating a web service?
© Stack Overflow or respective owner