Computer and Modernization ›› 2012, Vol. 1 ›› Issue (1): 122-125.doi: 10.3969/j.issn.1006-2475.2012.01.032

• 网络与通信 • Previous Articles     Next Articles

Research and Implementation of RESTful Web Services

JIANG Nan   

  1. School of Computer Science, Hubei University of Technology, Wuhan 430068, China
  • Received:2011-08-15 Revised:1900-01-01 Online:2012-01-10 Published:2012-01-10

Abstract: 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 (Representational 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 service 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.

Key words: data extraction, Web service, REST, resource-oriented, uniform interface

CLC Number: