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:
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER