Dynamic configuration type WebService interface service implementation method and device

A technology of interface service and dynamic configuration, applied in the direction of using information identifier to retrieve web data, multi-program device, inter-program communication, etc., can solve the problems of lack of authority control and log audit function, dynamic creation of new services, etc.

Active Publication Date: 2021-09-14
ZHONGBO INFORMATION TECH RES INST CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the corresponding service class needs to be written separately for each service, compiled and released into an independent WSDL, the following defects inevitably exist: (1) New services cannot be dynamically created without continuous service, and must be created for each service. A service writes code and publishes WSDL; (2) lacks a unified and complete authority control and log audit function, and requires service developers to write and implement by themselves

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic configuration type WebService interface service implementation method and device
  • Dynamic configuration type WebService interface service implementation method and device
  • Dynamic configuration type WebService interface service implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] figure 1 It is a flow chart of a method for implementing a dynamically configured WebService interface service according to an embodiment of the present invention.

[0023] Such as figure 1 As shown, the dynamic configuration type WebService interface service implementation method of the embodiment of the present invention may include the following steps:

[0024] S1, when receiving an external request, parse out the interface identifier.

[0025] It...

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 provides a dynamic configuration type WebService interface service implementation method and device, and the method comprises the steps: receiving an external request, and analyzing an interface identifier; verifying an interface service state according to the interface identifier; if the interface service state is a release state, judging a request Method; if the method for requesting the Method is a GET request, obtaining an example request message generated when the interface service is published and displaying the example request message; if the request method is a POST request, performing request authentication according to an authentication mode of the interface; if the authentication is passed, calling an XmlUtil.xml2Bean method to automatically convert the message body into a parameter object of a method of a corresponding target processing class, and obtaining, calling and executing the parameter object through a Java reflection mechanism; performing exception capture on the execution method by using the try/catch code block, and returning a corresponding exception capture result. According to the method, the service can be published or stopped in real time, a flexibly configured authentication function is set, the security of the interface service is improved, and the completeness of log auditing is effectively realized.

Description

technical field [0001] The invention relates to the technical field of remote service invocation, in particular to a method for implementing a dynamic configuration type WebService interface service and a device for implementing a dynamic configuration type WebService interface service. Background technique [0002] With the rapid development of information technology, more and more enterprises and institutions have transferred their business to the Internet field. In order to package many businesses into independent and highly scalable services, people have proposed the concept of WebService. WebService provides a platform for building distributed applications, so that software running on different operating systems and different devices, or software developed with different programming languages ​​and tools, and all possible developed and deployed software can take advantage of this The platform realizes the purpose of distributed computing, so that the application program...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F16/955
CPCG06F9/547G06F16/955G06F2209/544
Inventor 丁振华
Owner ZHONGBO INFORMATION TECH RES INST 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