开发者

Consuming REST service with .NET 4 Client Profile

开发者 https://www.devze.com 2023-01-06 17:37 出处:网络
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:

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

精彩评论

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