开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜