Font Size: a A A

The Research And Design Of Web Services Based On The REST Architecture Style

Posted on:2011-07-24Degree:MasterType:Thesis
Country:ChinaCandidate:B YangFull Text:PDF
GTID:2178360302493981Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Computer network technology has been an important aspect in the field of computer development. Web services technology is a hot point of computer network technology in the last decade. Due to the rapid emergence of electronic commerce,Web application developed from local to global gradually. Web services are mainly used to define achieving interoperability of application in Internet, expanding the application's function, implementing the software to provide dynamic function. Web services technology makes the focus of network research migrate from the network layer systems' interconnection to application layer services' integration. Web services technology is not only a network technology, but also a new software engineering technology. The software design alterd from object-oriented to service-oriented, forming the service-oriented architecture(SOA).The traditional Web services' development is based on a series of protocols and standards; these protocols and standards obtained continuous improvement and perfection during the process of Web services development. Three basic standards are SOAP, WSDL, UDDI and based on them forming BPEL, WS-CDL, WSCI and other high-level agreement.Currently,study on the Sematic Web are more integrated with Web services,forming the Semantic Web Services and proposing RDF, OWL, etc. Traditional Web services' development are inseparable with SOAP protocol, using which we achieved the HTTP remote procedure calls (RPC).This design brings unnecessary complexity, making HTTP become a protocol used to transmit huge XML load. Description informations are put into the XML and the services become complex and difficult to debug. The traditional Web services are contrary to the simplicity of the Web concept, make Web-specific capabilities isolated under a lot of abstraction. So we adopt the Representational State Transfer(REST)architecture style,completely changed the design of Web services and let Web Services return to Web. REST style architecture provide a new ideas to realize Web Services,it is one of the world's most successful Internet distributed systems architecture, which allows people to really understand the HTTP protocol's true features. As the REST style architecture becoming a mainstream technology,a new development thinking way of Internet web application is in fashion. Taditional Web services use SOAP and RPC. So we use the resource-oriented architecture (ROA) to alternative RPC architecture. Resource-oriented architecture use a unified interface, improve RPC interface's shortcomings of the complex and irregular; exposing internal data to replace the internal method exposure by RPC ;designing resources to implement the Web services become REST-based.We achieved a true Web services of REST style architecture and detailed design is given.This service is based on the studies of del.icio.us network bookmark service,designed a REST style network bookmarks Web services,which exposed resources and designed a unified interface.Based on Ruby on Rails framework, This paper presents a new design ideas fully consistent with REST way. The realize of service focused on the design of the framework, the main function design of controller and the design of a centralized data model.Based on above,author design the representation of data,the HTTP response and implement a simple client.The service is a full-REST style service.By comparing with the del.icio.us Web services,author obtained the benefits with ROA instead of RPC,based on which have a compare between REST style Web services and traditional Web services.
Keywords/Search Tags:REST, Web Services, SOA, ROA, HTTP
PDF Full Text Request
Related items