Disclosure of Invention
The technical task of the invention is to provide a material sharing implementation method applied to the online declaration of government affair service affair, which can realize sharing of all accessed materials, avoid the situation that newly added material services are butted again, reduce the development and test workload to the maximum extent, improve the working efficiency and realize rapid delivery.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a material sharing implementation method applied to government affair service affair online declaration, which self-defines interface configuration and calling mode, packages service into uniform interface service and sets uniform data service calling mode;
abstract packaging is carried out on the interface service, and mapping configuration is carried out on the interface service and the item material; the request parameters correspond to the elements of the real-name authentication system user, and the service interface returns the parameters to be associated with the materials; when the service runs, acquiring data service through parameter analysis;
and calling the parameters defined by the mode to acquire the shared material file data based on the user core element of the real-name authentication system.
The services are packaged into uniform interface services and uniform service calling modes, developers only need to configure the mapping relation of the accessed application services and the fields, and then the online operation of new services can be realized, so that the workload of development and test can be reduced to the greatest extent, the working efficiency is improved, and the rapid delivery is realized.
Preferably, the mapping of the transaction material and the interface service is configured based on the common standard element of the real-name authenticated user system.
Preferably, the special processing of the interface parameters adopts a hot loading mode extension tool, and the method is used without interrupting service.
Preferably, the parameter analysis obtains the data service by a path analysis method of jsonnpath or xpath.
Further, providing the service, automatically acquiring the interface mapping relation between the material of the item and the service after receiving the parameters, and acquiring the parameters required by the interface through the mapping relation;
calling back service data taken by a service system;
selecting a proper general tool class through a service mode of the interface, calling the interface, taking the material file, and storing the material file;
and finally, informing the service system to acquire the material file.
Preferably, the unified data service invocation mode adopts a mode of triggering notification to interact with the service system, and guarantees the invocation success rate of the service by defining and simplifying the transmitted parameters and the three-way handshake mode through a unified interface.
Further, the implementation flow of the unified data service call mode is as follows:
1) service calling incoming service number and item id;
2) service inquires the mapping relation between the item material and the interface to obtain the needed interface parameter;
3) acquiring user information and other data required by an interface from the service information;
4) acquiring interface configuration information;
5) calling a third-party service to obtain materials and storing the material files;
6) and informing the service system of the service callback to acquire the material file.
Preferably, the material obtained by the third party is stored to a network disk or oss cloud storage, and only a storage path is reserved.
The application configured in the method needs to be shared based on the materials of the affair handling guide, and in addition, the information of the user needs to contain the essential element information of the user required by the national government affair service platform.
The invention also claims a material sharing implementation system applied to the government affairs service affair online declaration, which comprises an interface packaging and material mapping module, a unified business mode setting module,
the interface packaging and material mapping module is used for packaging and abstracting an interface and mapping materials, and comprises an interface analysis and parameter configuration, a matter material mapping configuration and a service operation analysis engine;
the unified service mode setting module adopts a mode of triggering notification to interact with a service system, and ensures the calling success rate of the service by defining and simplifying the transmitted parameters and the three-way handshake mode through a unified interface;
the system realizes the material sharing realization method applied to the government affair service affair online declaration.
Further, the configuration process of the system for realizing the sharing of the declaration material on the government affair service affair network is as follows:
1) configuring interface service, configuring the address of the interface and the interface entry parameter return parameters;
2) after the configuration is completed, verifying the service input parameters, and directly testing whether the verification file is successfully acquired;
3) newly added item mapping configuration, item selection application material and corresponding interface service selection;
4) the request parameter corresponding relation of the configuration items, and the selection of the interface request parameter and the user information element;
5) the business reporting a matter on the internet, the shared material and the background business approval system check the application effect.
Compared with the prior art, the material sharing implementation method applied to the online declaration of government affair service affairs has the following beneficial effects:
the method and the system can realize that the business system for government affair service approval is in one-time butt joint and shares all accessed materials, thereby avoiding the condition that newly added material service is in butt joint again; meanwhile, the method supports the extensible interface docking standard by packaging a universal calling mode of various complex interfaces and a common parameter configuration analysis method, and can realize the effect of newly adding configuration completion service, namely applying on-line application.
Detailed Description
Along with the release of the national standard of electronic certificates and the release and application of various electronic certificate engineering standards, the requirement of the government affairs service field on data sharing is higher and higher, the application of electronic certificates or electronic materials on a government affairs service platform is promoted, the sharing and reusing of related information such as certificates or materials are realized, the business and the masses are facilitated, the improvement of the efficiency of government affairs service becomes the inevitable requirement of various application of business affairs service, but because the data providing developers are different, the adopted technical routes and the implementation modes are also different, the parameters and the returned results are different, the access repeatability work of the data sharing service is more, however, comparing various data sharing services, the overall data sharing service modes are found to be different, and are basically the service modes of Rest API, Webservice and the like, and most of the returned parameters are in JSON format or XML format.
Meanwhile, user systems in the field of government affair services are uniformly built according to the standard of a national real-name authentication user system, and the core elements of natural people and legal people are consistent. A unified data sharing method can be abstracted by utilizing the data characteristics in the field of government affair services and the service mode characteristics of the interfaces, the condition that a service system solidifies personalized codes in code logic is avoided through a new data sharing mode and method, extra maintenance cost and butt joint cost are reduced, but the service interfaces with special formats are accessed or data with a returned format which is not in an xml or json format need customized upgrading expansion besides the current common interface mode, for example, the returned data needs decryption before the interface service is called and does not support the mode of calling a complex combined interface.
The embodiment of the invention provides a material sharing implementation method applied to government affair service affair online declaration, which self-defines interface configuration and a calling mode, packages the service into a uniform interface service and sets a uniform data service calling mode; the mapping of the event material and the interface service is configured based on common standard elements of a real-name authentication user system, and the interface parameter special processing adopts a hot loading mode extension tool without interrupting the service.
1. Abstract packaging is carried out on the interface service, and mapping configuration is carried out on the interface service and the item material; the value resolution of the interface is based on the configuration implementation of xpath or jsonnpath. The encapsulation and abstraction of the interface and the mapping of the material include the following three steps:
1) interface analysis and parameter configuration.
Common interface services include RESTful API, Web Service, RPC interface and the like, specific URL requests include GET, POST, PUT, PATCH, COPY and the like, and network protocols of the services are http and https. Taking a common POST interface as an example, the request modes of the interface include application/json and application/x-www-form-url, and the request parameter types of the interface include Headers parameter and Body parameter, etc. The common structure can be combed out by each type of interface request mode. The unified and common interface configuration is combed out, for example, the parameters returned by the interface or the transmitted parameters are specially processed, such as encryption, decryption, token interface acquisition and the like, and the expansion is defined by self.
2) And item material mapping configuration.
The application material of the matters is defined in the matters elements in the field of government affairs service, the request parameters are corresponding to the elements of the real-name authentication system user by selecting the matters, the materials of the matters correspond to the configured interface service, the service interface returns the parameters to be associated with the materials, and when the service runs, the data service is obtained by analyzing the parameters through a path analysis method of xpath or jsonnpath.
3) And the service operation analysis engine.
The method comprises the steps of providing outgoing services, automatically acquiring interface mapping relations of materials and services of matters after receiving parameters, acquiring parameters required by an interface through the mapping relations, calling back service data taken by a service system, selecting a proper general tool class through a service mode of the interface, calling the interface, taking a material file, storing a network disk or cloud storage, and finally informing the service system of acquiring the material file.
2. And the unified data service calling mode acquires the shared material file data based on the user core element of the real-name authentication system by using the parameters defined by the calling mode.
The method adopts a mode of triggering notification to interact with a service system, and ensures the calling success rate of the service by defining and simplifying the transmitted parameters and the three-way handshake mode through a uniform interface.
Referring to fig. 2, the implementation flow of the unified data service invocation mode is as follows:
1) the service calls an incoming service number and a transaction id from the service system;
2) service inquires the mapping relation between the item material and the interface to obtain the needed interface parameter;
3) acquiring user information and other data required by an interface from the service information;
4) acquiring interface configuration information;
5) calling a third-party service to obtain materials, storing the material files to a network disk or oss cloud storage, and only reserving storage paths;
6) and informing the service system of the service callback to acquire the material file.
The overall composition and relationship of the method are shown in figure 1, the method packages the services into uniform interface services and uniform service calling modes, developers only need to configure the mapping relationship of the accessed application services and fields, and the online operation of new services can be realized, so that the workload of development and test can be reduced to the maximum extent, the working efficiency is improved, and the rapid delivery is realized.
Taking a certain provincial government affair service business system as an example, the method comprises the following configuration and implementation steps:
1) configuring interface service, configuring the address of the interface and the interface entry parameter return parameters;
2) after the configuration is completed, verifying the service input parameters, and directly testing whether the verification file is successfully acquired;
3) newly added item mapping configuration, item selection application material and corresponding interface service selection;
4) the request parameter corresponding relation of the configuration items, and the selection of the interface request parameter and the user information element;
5) the business reporting a matter on the internet, the shared material and the background business approval system check the application effect.
The application configured in the method needs to be shared based on the materials of the affair handling guide, and in addition, the information of the user needs to contain the essential element information of the user required by the national government affair service platform.
The method is used as a data sharing application mode of a real-name authentication user system based on the government affair service field, and can be integrated into an online declaration system or APP and self-service terminal service on any real-name authentication user system based on the government affair service field.
The invention also claims a material sharing implementation system applied to the government affair service affair online declaration, which comprises an interface packaging and material mapping module and a unified business mode setting module.
The interface packaging and material mapping module is used for packaging and abstracting an interface and mapping materials, and comprises an interface analysis and parameter configuration, a matter material mapping configuration and a service operation analysis engine;
the unified service mode setting module adopts a mode of triggering notification to interact with a service system, and ensures the calling success rate of the service through unified interface definition, simplified transmission parameters and a three-way handshake mode.
The system realizes the material sharing realization method applied to the online declaration of the government affair service affairs in the embodiment.
Taking a certain provincial government affair service business system as an example, the configuration process of the system for realizing the sharing of the declaration material on the government affair service affair network is as follows:
1) configuring interface service, configuring the address of the interface and the interface entry parameter return parameters;
2) after the configuration is completed, verifying the service input parameters, and directly testing whether the verification file is successfully acquired;
3) newly added item mapping configuration, item selection application material and corresponding interface service selection;
4) the request parameter corresponding relation of the configuration items, and the selection of the interface request parameter and the user information element;
5) the business reporting a matter on the internet, the shared material and the background business approval system check the application effect.
The present invention can be easily implemented by those skilled in the art from the above detailed description. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the basis of the disclosed embodiments, a person skilled in the art can combine different technical features at will, thereby implementing different technical solutions.
In addition to the technical features described in the specification, the technology is known to those skilled in the art.