期刊文献+

表述性状态转移网络服务平台的研究及实施

Research and Implementation of RESTful Web Services
下载PDF
导出
摘要 电子商务的蓬勃发展使得越来越多的采购商们倾向于利用互联网络进行采购。然而,尽管大部分商业网站都提供了详细周全的产品查询功能,但是当采购商们需要查询大量产品,譬如电子产品元器件,来进行采购时,往往费时费力。而网页这种适宜人类用户进行查询浏览的界面形式并不适合程序来自动处理,一个原因就是网页结构的变化会影响网页数据的抽取过程。本文利用网络服务的思想,使数据抽取通过网站提供的独立于网页的服务来完成,从而避免网页结构变化的影响。在剖析了表述性状态转移面向资源以及对资源进行操作的统一接口特性后,本文指出表述性状态转移用于网络服务的优势。基于这种思想,利用CXF框架和Spring技术构建一个表述性状态转移风格的服务平台,该平台向客户提供查询电子产品信息的网络服务。在此服务支持下,客户端程序可以利用XML解析工具方便地抽取所需要的数据信息。 The development of E-commerce encourages more and more buyers to purchase products via the Internet. Although most of business websites provide comprehensive query functions to help buyers find out what they want, unfortunately, when it comes to huge quantities of queries of different products, this kind of human query in front of a screen becomes time-consuming and tedious. And it is not easy for programs to extract Web data from Web pages. One reason is that the structure of Web pages may change. This paper uses the thinking of Web service to solve this problem. Web data extraction is done through a kind of Web service, independent of Web pages, provided by the website. This paper analyzes the way of thinking behind REST ( Representa- tional State Transfer) and illuminates the central abstraction concept of resource and the feature of emphasizing the uniform interface, which distinguishes REST architecture style from other network-based architecture styles. It points that RESTful Web serv- ice is a better solution to build Web services, compared with SOAP-style Web service. Constructing a RESTful Web service which provides electronic product query service based on Apache CXF framework in the context of Spring technology, and based on this service, a data extraction client can obtain Web data conveniently using XML parser tools.
作者 江南
出处 《计算机与现代化》 2012年第1期122-125,共4页 Computer and Modernization
关键词 数据抽取 网络服务 表述性状态转移 面向资源 统一接口 data extraction Web service REST resource-oriented uniform interface
  • 相关文献

参考文献13

  • 1Martin Kalin.Java Web服务:构建与运行[M].任增刚译.北京:电子工业出版社,2009:24.
  • 2Martin Kalin. Java Web Services: Up and Running [ M ]. Cambridge, USA : O' Reilly Media, Inc.,2009 : 121-135.
  • 3Richardson L, Ruby S. RESTful Web Services[ M]. Cambridge, USA : O' Reilly Media, Inc.,2007 : 11-18.
  • 4Roy T Fielding. Architectural Styles and the Design of Net-work-based Software Architectures [ D ]. Irvine, USA : University of California,2000.
  • 5Roy T Fielding.架构风格与基于网络的软件架构设计[EB/OL].李锟,廖志刚,等译.http://tilt.1ib.tsinghua.edu.cn/docs/tech/REST_cn.pdf,2007-07-02.
  • 6Stefan Tilkov. A Br/ef Introduction to REST[ EB/OL]. http://www, infoq, corn/articles/rest-introduction, 2007- 12-10.
  • 7Rajeev Hathi,Naveen Balani. Design and Implement POJO Web Services Using Spring and Apache CXF[ EB/OL]. http://www, ibm. com/developerworks/webservices/library/ ws-pojo-springcxf/index, html? ca = drs,2008-07-24.
  • 8Bofis Sun.利用CXF发布RESTfulWebService的注意事项[EB/OL].http://borissun.iteye.com/blog/765869,2010.09.17.
  • 9Apache. JAX-RS: Services Configuration [ EB/OL ]. http :// cxf. apache, org/docs/jaxrs-services-configuration, html, 2008- 12-30.
  • 10帕派佐格罗.Web服务:原理和技术[M].北京:机械工业出版社,2011:25-35.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部