如何在 .net 2.0 中使用 webapi 客户端库

本文关键字:webapi 客户端 net | 更新日期: 2023-09-27 18:37:08

我创建了一个 Window 应用程序,它使用使用 WebAPI 创建的 Rest Web 服务。我的窗口应用程序位于 .net 2.0 中。所以我不能使用 WebApi 客户端库来消费 Rest Webservice。是否可以在 .net 2.0 中使用 WebApi 客户端库?如果不是,我怎么能在.net 2.0中调用RestWebservice?

如何在 .net 2.0 中使用 webapi 客户端库

您可能必须使用 Newtonsoft

http://blogs.msdn.com/b/henrikn/archive/2012/02/18/using-json-net-with-asp-net-web-api.aspx

并检查这个

http://james.newtonking.com/archive/2009/08/02/net-2-0-support-added-to-json-net