Link to home
Start Free TrialLog in
Avatar of glebn
glebn

asked on

Best Method to Consume REST Service in .NET 4

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:

HttpWebRequest
WCF REST Starter Kit Preview 2
WebChannelFactory
WebClient

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.
Avatar of glebn
glebn

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of binaryevo
binaryevo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glebn

ASKER

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.