Best Method to Consume REST Service in .NET 4

Posted on 2011-10-25
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
    LVL 4

    Author Comment

    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

    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:
    LVL 4

    Author Closing Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now