Best Method to Consume REST Service in .NET 4

Posted on 2011-10-25
Medium Priority
Last Modified: 2012-05-12
I'm creating a .NET 4 ASP standard web app that needs to query a REST web service. I've queried SOAP services, but never a REST service. I'm also new with .NET4.

While I understand how REST services work, I'm not sure what is the best approach for working with them in .NET4. Searching the web I've seen pages recommending using:

WCF REST Starter Kit Preview 2

There doesn't seem to be any consensus regarding which to use.

Which approach do you suggest using? Also, one or two sentence pro's and con's for the approaches you are familiar with (doesn't have to be listed above) would be greatly appreciated.
Question by:glebn
  • 2

Author Comment

ID: 37025419
I should mention that I've been working with .NET 2 - .NET 3.5 for about 5 years so I understand the programming side, I just am not yet familiar with all of the improvements in .NET 4.
LVL 14

Accepted Solution

binaryevo earned 2000 total points
ID: 37025546
This all depends on how the rest service is coded and what your trying to achieve in your application.  The only one ive personally ussed is the WCF REST starter kit and based on my experience of when i was doing the research, its the easiest to implement and has some pretty decent code examples online...  Im sure you already have this link but, if not here it is:


Author Closing Comment

ID: 37039928
Thanks binaryevo, but after some testing I think I'm going to stick with HttpWebRequest since all I need to do is consume REST services and it seems to get the job done adequately.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question