views:

176

answers:

1

What's the easiest/best way to consume a RESTful service from a .NET client application using the .NET 4 Client Profile? Everything I have found ends up pushing me towards the full framework:

  • WCF REST Starter Kit. HttpClient class requires full framework.
  • WebChannelFactory<> is in System.ServiceModel.Web, now removed from the Client Profile.
  • WCF Data Services Client Library is in System.Data.Services.Client (not in the Client profile either)

Is WebClient in System.Net my only option?

+1  A: 

You can use Hammock for REST (http://hammock.codeplex.com), it supports the Client Profile.

Daniel Crenna