RESTful (representational state transfer) service design method based on Spring MVC

A design method and server technology, applied to electrical components, transmission systems, etc., can solve problems such as service invocation and message parsing troubles, and achieve the effect of convenient service invocation, clear service interface, and reduced difficulty

Active Publication Date: 2015-05-20
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditional Web Service, SOAP (Simple Object Access Protocol) request model basically uses the HTTP transport protocol for interaction, usi

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] 1. Assume that the service requester's interface entry URL is http: / / www.changhong.com / api, and the user wants to call the list of currently available channels. The service definition of this interface is channel

[0037] The required system parameters are:

[0038] appkeyId: ID of the caller

[0039] method: the name of the method to call

[0040] format: result return format: xml / json

[0041] Service parameters:

[0042] channelId: the corresponding channel ID, 0 means all channels

[0043] The system will obtain the parameter sequence according to the system parameters and user parameters:

[0044] System parameters: appkeyId=123&method=getAvailableChannel&format=json

[0045] Service parameter: channelId=0

[0046] 2. According to the transmission parameters of the above services, the service processing center invokes the security control module, performs SHA1 signature calculation on the request string, and converts the signature value into a hexadecimal cod...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the field of network service design and particularly relates to an RESTful (representational state transfer) service design method based on Spring MVC with an aim to solve the problems of the prior art. By the RESTful (representational state transfer) service design method based on Spring MVC, each kind of services can be defined and called by only URL via a RESTful request model, so that researchers can freely access the services without depending on complicated peripheral programs at any time anywhere, service ports are clear, service calling is convenient, and difficulty in understanding the services of the researches is reduced. Via preprocessing of port Fa ade, various services can be defined by service defined configuration files, and register initialization of the services is completed by a service processing center; after detection of a safety control module, a port agent module launches calling, and a response processing module feeds results back to clients, etc.

Description

technical field [0001] The invention belongs to the field of network service design, in particular to a Spring MVC-based RESTful service design method. Background technique [0002] With the discovery of the Internet, various development platforms provide developers with capabilities such as data analysis, social channels and relationship chains, advertising alliances, cloud hosting, payment and settlement, etc., to improve and enhance developers' operation and management capabilities. Some development platforms provide developers with several support systems, such as new product incubation and application growth support. [0003] Traditional Web Service, SOAP (Simple Object Access Protocol) request model basically uses the HTTP transport protocol for interaction, using SOAP request, any service corresponds to a set of SOAP request / response messages, service invocation and message analysis are more troublesome. Regardless of whether the interface and parameters of the call...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08H04L29/06
Inventor 王素娟
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products