新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> Web服务(Web Services,WS), 语义Web服务(Semantic Web Services, SWS)讨论区: WSDL, SOAP, UDDI, DAML-S, OWL-S, SWSF, SWSL, WSMO, WSML,BPEL, BPEL4WS, WSFL, WS-*,REST, PSL, Pi-calculus(Pi演算), Petri-net,WSRF,
    [返回] 计算机科学论坛W3CHINA.ORG讨论区 - Web新技术讨论『 Web Services & Semantic Web Services 』 → REST的起源——Fielding博士的学位论文的中文版发布了 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 4950 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: REST的起源——Fielding博士的学位论文的中文版发布了 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     zhaonix 帅哥哟,离线,有人找我吗?
      
      
      威望:2
      头衔:博士
      等级:研一(日夜苦读RDF Semantics)
      文章:242
      积分:3185
      门派:W3CHINA.ORG
      注册:2005/4/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给zhaonix发送一个短消息 把zhaonix加入好友 查看zhaonix的个人资料 搜索zhaonix在『 Web Services & Semantic Web Services 』的所有贴子 点击这里发送电邮给zhaonix 引用回复这个贴子 回复这个贴子 查看zhaonix的博客楼主
    发贴心情 REST的起源——Fielding博士的学位论文的中文版发布了

    “关于WEB开发,具有里程碑意义的Fielding关于REST的博士论文的中文版已经正式发布了。” 见 http://blog.csdn.net/bvbook/archive/2007/06/28/1670244.aspx , 有全文。


    背景: Amazon等公司把他们按照HTTP URL进行直接调用的API称作 REST形式的Web Service(V.S. SOAP形式的WS)。使得REST似乎与Web Services也扯上了关系。孟岩的一篇博客文章中谈到了他自己对于web集成的未来的看法:REST胜过SOAP。

    但REST一词最初出现时的含义却不是这样。曾参与HTTP1.1起草工作的Thomas Fielding 2000年在UC Irvine提交的博士论文中,将REST定义成一种web设计风格,强调可缓存、无状态、统一接口等。 w3c近两年中有人做的PPT中指出:两者并不对立,SOAP也可以按照REST风格来使用。

    当然,这些都是产业界的事情,研究界的paper中似乎还很少涉及REST。

    附:自己看Fielding的博士论文英文版时所做的笔记。

    REST: REpresentational State Transfer  

    目标:定义一个model of how the World Wide Web (被看作一种Internet-scale distributed hypermedia system) should work.. 在90s中期提出后,作者把它应用于自己制定HTTP/1.1和URI两个RFC的过程中,以及在libwww-perl, Apache httpd等商业级项目的开发中。

    其目标是使得延时最小,而同时能保持 组件 的独立性和可扩展性。描述方式是:应用一组体系结构上的约束(来自于对5种Network-based Architectural Styles的分析)。REST的内容有:

    l       强调connector,而不是component,的语义;    即It does constrain the interface between components, and hence the scope of interaction and implementation assumptions that might otherwise be made between components.

    l       重视caching, intermediary的作用;   --> layering of transformation,即在C/S结构中使用cache,proxy等

    l       使用合适的资源表示方式;    <-- REST components perform actions on a resource by using a representation to capture the current or intended state of that resource and transferring that representation between components. A representation is a sequence of bytes, plus representation metadata to describe those bytes. 其它一些不大准确的名称有:document, file, and HTTP message entity, instance, or variant.

    l       server不维护会话状态,(处理消息时只需要考虑当前请求的URI及消息内容)。

    l       REST constrains messages between components to be self-descriptive in order to support intermediate processing of interactions.

    所分析的5种Style是:

    l         Data-flow Style
    l         Replication Style
    l         Hierarchical Style
    l         Mobile code Style
    l         Peer-to-Peer Style


    the characteristics of REST(by Roger L. Costello, http://www.xfront.com/REST-Web-Services.html):
    *    Client-Server: a pull-based interaction style: consuming components pull representations.
    *    Stateless: each request from client to server must contain all the information necessary to understand the request, and cannot take advantage of any stored context on the server.
    *    Cache: to improve network efficiency responses must be capable of being labeled as cacheable or non-cacheable.
    *    Uniform interface: all resources are accessed with a generic interface (e.g., HTTP GET, POST, PUT, DELETE).
    *    Named resources - the system is comprised of resources which are named using a URL.
    *    Interconnected resource representations - the representations of the resources are interconnected using URLs, thereby enabling a client to progress from one state to another.
    *    Layered components - intermediaries, such as proxy servers, cache servers, gateways, etc, can be inserted between clients and resources to support performance, security, etc.


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/6/29 23:07:00
     
     admin 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      头衔:W3China站长
      等级:计算机硕士学位(管理员)
      文章:5255
      积分:18407
      门派:W3CHINA.ORG
      注册:2003/10/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给admin发送一个短消息 把admin加入好友 查看admin的个人资料 搜索admin在『 Web Services & Semantic Web Services 』的所有贴子 点击这里发送电邮给admin  访问admin的主页 引用回复这个贴子 回复这个贴子 查看admin的博客2
    发贴心情 
    赞!不错!

    ----------------------------------------------

    -----------------------------------------------

    第十二章第一节《用ROR创建面向资源的服务》
    第十二章第二节《用Restlet创建面向资源的服务》
    第三章《REST式服务有什么不同》
    InfoQ SOA首席编辑胡键评《RESTful Web Services中文版》
    [InfoQ文章]解答有关REST的十点疑惑

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/7/1 0:23:00
     
     MerryZhang 美女呀,离线,快来找我吧!
      
      
      威望:4
      头衔:CTO
      等级:计算机学士学位
      文章:442
      积分:2808
      门派:W3CHINA.ORG
      注册:2006/1/4

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给MerryZhang发送一个短消息 把MerryZhang加入好友 查看MerryZhang的个人资料 搜索MerryZhang在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看MerryZhang的博客3
    发贴心情 
    不错,看后基本上知道REST是个什么了,概括得很好。谢谢LZ

    ----------------------------------------------
    那一段我们曾心贴着心,我想我更有权力关心你,可能你已走进别人风景,多希望也有星光的投影.努力为你改变,却变不了预留的伏笔.以为在你身边那也算永远
    仿佛还是昨天,可是昨天已非常遥远,但闭上双眼我还看得见.

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/7/2 10:19:00
     
     dreaminworld 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:10
      积分:104
      门派:XML.ORG.CN
      注册:2006/9/17

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给dreaminworld发送一个短消息 把dreaminworld加入好友 查看dreaminworld的个人资料 搜索dreaminworld在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看dreaminworld的博客4
    发贴心情 
    不错~
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/9/11 9:57:00
     
     kelvincheng 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:12
      积分:122
      门派:XML.ORG.CN
      注册:2007/10/17

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给kelvincheng发送一个短消息 把kelvincheng加入好友 查看kelvincheng的个人资料 搜索kelvincheng在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看kelvincheng的博客5
    发贴心情 
    REST绝对是轻量级的Web service的方向。
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/10/17 3:59:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Web Services & Semantic Web Services 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/6/22 5:40:11

    本主题贴数5,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    74.219ms