如何使用C#3.5在Asp.Net中使用REST服务? [英] How to consume a REST service in Asp.Net with C# 3.5?

查看:95
本文介绍了如何使用C#3.5在Asp.Net中使用REST服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#3.5在Asp.Net中使用REST服务?它与Web服务类似吗?我正在使用VS 2008和C#3.5。

解决方案

没有消费的SOAP Web服务和REST服务不相似,因为REST服务基于HTTP GET,POST工作等,没有代理。 REST服务只是将HTTP作为协议,因此它与http请求/响应和XML / JSON作为数据传输进行通信。

http://www.codeproject.com/Articles/255684/Create-and-消耗的RESTful - 服务 - 在-NET-Framewor

How to consume a REST service in Asp.Net with C# 3.5? Is it similar to web service. I am using VS 2008 and C#3.5.

解决方案

No consuming SOAP web service and REST service is not similar because REST services work on the basis of HTTP GET,POST etc and have no proxy. REST services just embrace HTTP as the protocol so it communicates with http request/response and XML/JSON as data transport.
http://www.codeproject.com/Articles/255684/Create-and-Consume-RESTFul-Service-in-NET-Framewor


这篇关于如何使用C#3.5在Asp.Net中使用REST服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆