Consuming REST service with .NET 4 Client Profile
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 fram开发者_如何学Cework.
- 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?
You can use Hammock for REST (http://hammock.codeplex.com), it supports the Client Profile.
精彩评论