REST风格的Web服务在移动终端的应用
Application of RESTful Web Service in Mobile Device
DOI: 10.12677/CSA.2014.48021, PDF, HTML, 下载: 2,905  浏览: 8,010 
作者: 于守健, 魏 聪, 黄 鹏:东华大学计算机科学与技术学院,上海
关键词: REST Web服务JSON格式iOS系统Android系统文档管理系统REST Web Service JSON Format iOS System Android System Document Management System
摘要: 针对传统的基于等PC端的系统在开发其对应的移动版本的时候遇到的系统架构不兼容以及速度、性能、效率和易用性的问题,本文提出了基于REST风格的Web服务来解决异构平台互操作和信息共享的问题,该框架比传统的SOAP和RPC框架更加简洁易用。由于移动终端资源有限,故本文采用JSON作为数据交换的格式。最后,本文结合某公司的一个文档管理系统的需求在iOS终端和Android终端实现了一个采用REST风格的Web服务框架的移动终端的应用。
Abstract: In order to solve the problem that the traditional PC-based system architecture is not compatible with the mobile system when we implement a mobile application of the corresponding PC version and the problem of speed, performance, efficiency and usability of it, we proposed a RESTful web service to deal with the issue of heterogeneous platform interoperability and information sharing, which is more compact and more usable compared with the traditional SOAP and RPC frames. Be-cause of the limited resources of the mobile device, we use JSON as data exchange format. In the end, we implement a mobile terminal application of a document management system in both iOS and Android terminal in combination of a company’s actual demand, which uses the RESTful web service framework.
文章引用:于守健, 魏聪, 黄鹏. REST风格的Web服务在移动终端的应用[J]. 计算机科学与应用, 2014, 4(8): 144-151. http://dx.doi.org/10.12677/CSA.2014.48021

参考文献

[1] 冯新扬, 沈建京 (2010) REST和RPC: 两种Web服务架构风格比较分析. 小型微型计算机系统, 7, 1393-1395.
[2] Fielding, R.T. (2000) Architectural styles and the design of network-based software architectures. University of California, Irvine.
[3] Webber, J., Parastatidis, S. and Robinson, I. (2011) REST实战. 李锟, 俞黎敏, 马钧, 等, 译. 东南大学出版社, 江苏.
[4] Richardson, L. and Ruby, S. (2007) RESTful web services. O’Reilly Media.
[5] 许卓明, 栗明, 董逸生 (2003) 基于RPC和基于REST的Web服务交互模型比较分析. 计算机工程, 20, 6-8.
[6] Introducing JSON. http://www.json.org
[7] Mark, D., Nutting, J. and LaMarche, J. (2012) iOS5基础教程. 毛姝雯, 漆振, 杨越, 等, 译. 人民邮电出版社, 北京.
[8] RestKit. http://restkit.org/
[9] 林城 (2011) Android2.3应用开发实战. 机械工业出版社, 北京.