CN111353880A - Transaction service encapsulation method, device and system - Google Patents

Transaction service encapsulation method, device and system Download PDF

Info

Publication number
CN111353880A
CN111353880A CN202010247236.0A CN202010247236A CN111353880A CN 111353880 A CN111353880 A CN 111353880A CN 202010247236 A CN202010247236 A CN 202010247236A CN 111353880 A CN111353880 A CN 111353880A
Authority
CN
China
Prior art keywords
service
transaction
distributed
file
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010247236.0A
Other languages
Chinese (zh)
Other versions
CN111353880B (en
Inventor
何春芳
朱小珍
梁锦华
张榕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010247236.0A priority Critical patent/CN111353880B/en
Publication of CN111353880A publication Critical patent/CN111353880A/en
Application granted granted Critical
Publication of CN111353880B publication Critical patent/CN111353880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Technology Law (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a transaction service encapsulation method, a device and a system, comprising the following steps: generating a service related file according to a transaction interface document of a centralized application of a host system and sending the service related file to a service proxy server of an open platform, wherein the service related file comprises: a distributed service file, a protocol conversion file and a service description file; converting a service calling request message initiated by distributed application in the open platform according to the related file; and sending the converted service calling request message to the centralized application to call application transaction and perform service processing. The method and the system rapidly and automatically encapsulate the transaction of the centralized application into the service for the distributed application to call the service, thereby solving the problem that the service call cannot be rapidly realized between heterogeneous systems.

Description

Transaction service encapsulation method, device and system
Technical Field
The application belongs to the field of financial science and technology, and particularly relates to a transaction service packaging method, device and system.
Background
The continuous change of the demand of financial business puts higher requirements on the service management level of the IT industry of banks. The limitations of the centralized system architecture commonly employed by traditional banking systems in new forms are increasingly highlighted. With the rise of the mobile internet, the business behaviors of bank customers are changed from the world-wide, the business presents high concurrency and hot spot problems, with the development of the distributed technology, the stability of the distributed architecture is gradually improved, and the advantage of the distributed horizontal expansion is gradually reflected, so that the idea of disputes of various banks is changed, the optimization of the system architecture is promoted, and the centralized architecture is changed into the distributed architecture.
At present, most of the traditional domestic core business systems of the banks adopt the IBM host as a system infrastructure, which is a common centralized architecture, and in the process of transforming to the distributed service, the service call problem of the distributed application and the traditional centralized application taking the IBM host as the infrastructure is urgently needed to be solved. The main difficulties are that firstly, distributed applications are often deployed on a Linux server, while traditional applications are deployed on IBM ZOS hosts, two heterogeneous systems can only adopt common socket communication or http communication (as shown in fig. 5), but cannot support the service invocation of the heterogeneous systems, and the distributed applications cannot invoke the functions of centralized applications in a service invocation manner, which brings huge research and development costs to the distributed service transformation process; secondly, most of service components commonly used by businesses cannot support multi-language functions, distributed service usually adopts a single development language, for example, a distributed service framework based on a JAVA language, and cannot call centralized application using a C language or a COBOL language as a development language in a service call mode, so that in enterprise architecture transformation, the application architecture is distributed, the effect of function call service is greatly reduced, the whole enterprise architecture is complex, and the maintenance cost is high.
Disclosure of Invention
The application provides a transaction service encapsulation method, a transaction service encapsulation device and a transaction service encapsulation system, which are used for at least solving the problem that a distributed application in a distributed architecture system in the prior art cannot perform service call on a centralized application in the centralized architecture system.
According to one aspect of the application, a transaction servitization packaging method is provided, which comprises the following steps:
generating a service related file according to a transaction interface document of a centralized application of a host system and sending the service related file to a service proxy server of an open platform, wherein the service related file comprises: a distributed service file, a protocol conversion file and a service description file;
converting a service calling request message initiated by distributed application in the open platform according to the related file;
and sending the converted service calling request message to the centralized application to perform application transaction.
In one embodiment, the transaction-based packaging method further comprises:
registering the service corresponding to the related file in a service proxy server;
and disclosing the registered service to all distributed applications in the open platform.
In an embodiment, converting a service invocation request message initiated by a distributed application in an open platform according to a related file includes:
carrying out protocol conversion on the service calling request message passing the verification according to the protocol conversion file;
and carrying out code system conversion on the service calling request message after the protocol conversion to obtain a calling request message consistent with the code system of the centralized application.
In one embodiment, the transaction service packaging method further comprises:
and a distributed service unit is created in the service proxy server so as to realize flow processing when the online service is normal and flow rollback when the online service fails.
According to another aspect of the present application, there is also provided a transaction servitization packaging apparatus, including:
the packaging unit is used for generating relevant files of the service according to the transaction interface document of the centralized application of the host system and sending the relevant files to the service proxy server of the open platform, wherein the relevant files comprise: a distributed service file, a protocol conversion file and a service description file;
the conversion unit is used for converting a service calling request message initiated by distributed application in the open platform according to the related file; reverse conversion is also carried out on the return message of the centralized application to generate the return message of the distributed service;
and the communication unit is used for sending the converted service calling request message to the centralized application so as to carry out application transaction.
In one embodiment, the transaction servization packaging apparatus further comprises:
the registration module is used for registering the service corresponding to the related file in the service proxy server;
and the publishing module is used for publishing the registered service to all distributed applications in the open platform.
In one embodiment, the conversion unit includes:
the protocol conversion module is used for carrying out protocol conversion on the service calling request message passing the verification according to the protocol conversion file to obtain a request message consistent with the centralized application transaction interface; meanwhile, reverse conversion is carried out on the return message of the centralized application to generate the return message of the distributed service;
the code system conversion module is used for carrying out code system conversion on the service calling request message after the protocol conversion to obtain a request message consistent with the code system of the centralized application; and simultaneously, reverse transcoding is carried out on the return message of the centralized application to generate a code system of the distributed service message.
In one embodiment, the transaction servization packaging apparatus further comprises:
and the distributed service unit creating module is used for creating a distributed service unit in the service proxy server so as to realize flow processing when the online service is normal and flow rollback when the online service fails.
According to another aspect of the present application, there is also provided a transaction servitization packaging system, including: the service proxy server is arranged in the open platform and is independent of the open platform and a service encapsulation server outside the host system, and the service proxy server is in communication connection with the service encapsulation server; the service proxy server is in communication connection with all distributed applications in the open platform and the centralized application in the host system;
the service proxy server is used for converting a service call request message initiated by the distributed application;
the service encapsulation server is used for performing service encapsulation on the transaction of the centralized application.
In one embodiment, the service encapsulation server comprises:
the service generation unit is used for calling a relevant file of a transaction interface document generation service of the centralized application, and the relevant file comprises: a distributed service file, a protocol conversion file and a service description file;
and the self-service issuing unit is used for realizing the information transmission between the service packaging server and the service proxy server.
In one embodiment, the service proxy server comprises:
the distributed service unit is created by the service generation unit and is used for realizing flow processing when the online service is normal and flow rollback when the online service fails;
the message checking unit is used for checking a service calling request message initiated by the distributed application;
the protocol conversion unit is used for carrying out protocol conversion on the service calling request message according to the protocol conversion file of the service; meanwhile, reverse conversion is carried out on the return message of the centralized application to generate the return message of the distributed service;
a code system conversion unit, which is used for carrying out code system conversion on the service calling request message after the protocol conversion; and simultaneously, reverse transcoding is carried out on the return message of the centralized application to generate a code system of the distributed service message.
The communication unit is connected with the communication component in the centralized application and used for realizing information transmission.
The transaction service encapsulation method, the transaction service encapsulation device and the transaction service encapsulation system can rapidly and automatically encapsulate the centralized application into the service, so that the traditional centralized application is incorporated into a distributed architecture system to be used for the distributed application to carry out service calling, and the existing assets of an enterprise can be reused to the maximum extent in the process of transforming the enterprise from the centralized architecture to the distributed architecture.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A and 1B are schematic structural diagrams of a transaction-based packaging system provided in the present application.
Fig. 2 is a flowchart of a transaction-based packaging method provided by the present application.
Fig. 3 is a flowchart of sending a relevant file to a service proxy server in the embodiment of the present application.
Fig. 4 is a flowchart illustrating conversion of a service invocation request packet in the embodiment of the present application.
Fig. 5 is a schematic diagram illustrating communication between a distributed architecture system and a centralized architecture system in the prior art.
Fig. 6 is a block diagram of a transaction-based packaging device according to the present application.
Fig. 7 is a block diagram of a package unit according to an embodiment of the present application.
Fig. 8 is a block diagram of a conversion unit in the embodiment of the present application.
Fig. 9 is a specific implementation of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Based on the description in the background art, a transaction service encapsulation method is needed to rapidly and automatically encapsulate the transaction of the centralized application into a service for the distributed application to perform service invocation.
Before describing the method of transaction-based packaging, a system for transaction-based packaging is first described, as shown in fig. 1A, including: an open platform system 211, a host system 221, a service proxy server 241 provided in the open platform, and a service encapsulation server 231 independent of the open platform (distributed platform) and the host system.
The open platform system 211 is a distributed architecture, and the host system 221 is a centralized architecture. The service proxy server 241 is communicatively connected with the service encapsulation server 231; the service proxy server 241 is communicatively connected to all distributed applications in the open platform and to centralized applications in the host system;
the service proxy server 241 is configured to perform call protocol conversion on a service call request packet initiated by the distributed application;
the service encapsulation server 231 is used for performing service encapsulation on the transaction of the centralized application;
in one embodiment, the transaction-based packaging system operates on the following principle: by using the existing transaction interface document of the centralized application, the service encapsulation server 231 generates a distributed service file, a protocol conversion file, and a service description file, where the distributed service file is a service operation code file that can be directly called by other distributed applications, that is, the service encapsulation server 231 can automatically generate the operation code required by the transaction encapsulation service of the centralized application. The service encapsulation server 231 may transmit the generated distributed service file, protocol conversion file, and service description file to the service proxy server 241.
In one embodiment, as shown in fig. 1B, the service encapsulation server 231 includes:
a service generating unit 232, configured to invoke a relevant file of a transaction interface document generating service of the centralized application, where the relevant file includes: a distributed service file, a protocol conversion file and a service description file;
and the self-service issuing unit 233 is used for realizing information transfer between the service encapsulation server and the service proxy server.
In one embodiment, the service encapsulation server 231 interfaces with the service broker server 241 through the self-service publishing unit 233. The service generation unit 232 automatically generates the operation code (i.e. distributed service file) required by the centralized application transaction encapsulation service, and may further define the conversion protocol (i.e. protocol conversion file) from the distributed service to the centralized application transaction and generate a service description file, where the service description file includes information necessary for calling, such as service calling field description and format description.
In one embodiment, as shown in fig. 1B, the service proxy server 241 includes:
the distributed service unit 242 is created by the service generation unit and is used for realizing flow processing when the online service is normal and flow rollback when the online service fails;
a message checking unit 243, configured to check a service invocation request message initiated by the distributed application;
a protocol conversion unit 244, configured to perform protocol conversion on the service invocation request packet according to the protocol conversion file of the service; reverse conversion is also carried out on the return message of the centralized application to generate the return message of the distributed service; (ii) a
A code conversion unit 245, configured to perform code conversion on the call service request packet after the protocol conversion; reverse transcoding is also carried out on the return message of the centralized application to generate a code system of the distributed service message;
the communication unit 246 is connected to the communication component 224 in the centralized application 222 in the host system 221, and is used for realizing information transmission.
In a specific embodiment, as shown in fig. 1B, a service proxy server 241 and several distributed applications 212 are included in the distributed platform (open platform system 211), the distributed applications 212 include distributed services 213, the distributed applications and the service proxy server are connected by using an RPC protocol, and the distributed applications are also connected by using an RPC protocol. The service agent server 241 registers the service in the registry of the open platform system 211 according to the service published by the self-service publishing unit 233, exposes the service to the distributed application 212 (i.e. exposes the service to the distributed application 212), and the distributed application 212 can discover the relevant service through subscription and can make a service call. The distributed service 213 of the distributed application 212 calls a distributed service unit 242 of the service proxy server 241 through RPC (service call protocol), the distributed service unit 242 is automatically generated by the service generation unit 232 in the service encapsulation apparatus 231, the square method in the distributed service unit 242 is used for flow processing when the online service is normal, and the reverse method is used for flow rollback when the online service fails.
The system is provided with a service encapsulation server and a service proxy server, wherein the service encapsulation server encapsulates the transaction of the centralized application into service, then realizes the opening and calling of the service in a service proxy mode, and realizes the function of calling the service between heterogeneous systems without transforming a host system.
The present application further provides a transaction service packaging method, which can be implemented based on the transaction service packaging system in fig. 1A and 1B, as shown in fig. 2, including the following steps:
s201: generating a service related file according to a transaction interface document of a centralized application of a host system and sending the service related file to a service proxy server of an open platform, wherein the service related file comprises: distributed service files, protocol conversion files, and service description files.
In a specific embodiment, transactions of the centralized application in the host system all have transaction interface documents thereof, and related documents such as a distributed service file, a protocol conversion file, a service description file and the like are generated according to the transaction interface documents, wherein the distributed service file is a service operation code file which can be directly called by other distributed applications, the service description file contains information necessary for calling such as service calling field description and format description, and the protocol conversion file records a conversion protocol from the distributed service to the centralized application transaction.
S202: and converting the service calling request message initiated by the distributed application in the open platform according to the related file.
In a specific embodiment, when the distributed application needs to call a certain service, the distributed application sends a service call request message to the service proxy server, and after receiving the service call request message, the service proxy server performs necessary verification on the message and performs protocol conversion on the service call request message according to the content in the protocol conversion file. After the protocol conversion process is completed, the heterogeneous systems often adopt different code systems, so that the code system of the call service request message is converted, the code system is adaptive to the centralized application, and the conversion of different code systems among the heterogeneous systems is realized.
S203: and sending the converted calling service request message to the centralized application to perform application transaction.
In a specific embodiment, after the code system conversion in S202 is completed, the communication unit in the service proxy server is triggered to send the service invocation request to the centralized application, and the centralized application triggers the application transaction, so that the distributed application invokes the centralized application in the service invocation manner and completes the execution of the process.
In an embodiment, the transaction service packaging method, as shown in fig. 3, further includes:
s301: and registering the service corresponding to the related file in the service proxy server.
In one embodiment, after a relevant file for a service is generated and sent to a service proxy server, the service is registered with a registry of the distributed platform.
S302: and disclosing the registered service to all distributed applications in the open platform.
In a particular embodiment, all distributed applications in the distributed platform are exposed to the services that have been registered with the registry, such that all distributed applications are aware of the services.
In an embodiment, converting a call service request packet initiated by a distributed application in an open platform according to a related file, as shown in fig. 4, includes:
s401: and carrying out protocol conversion on the verified call service request message according to the protocol conversion file.
In a specific embodiment, after the distributed application initiates a service invocation request for a certain service, the service proxy server first checks the service invocation request message, such as checking a necessary entry, checking a field type or format in the message, and the like. If the verification is passed, the protocol conversion of the service calling request message from the distributed application transaction message to the centralized application transaction message includes the steps of re-assembling the service calling request message, converting the data type (the data type is different because heterogeneous systems adopt different programming languages), converting the format of the data and the like.
S402: and carrying out code system conversion on the calling service request message after the protocol conversion to obtain the calling service request message consistent with the code system of the centralized application.
In a specific embodiment, after the protocol conversion in step S401 is completed, the service invocation request message is subjected to code conversion (due to different codes between heterogeneous systems), so that the service invocation request message conforms to the code of the centralized application transaction message.
In one embodiment, the transaction service packaging method further comprises:
and a distributed service unit is created in the service proxy server so as to realize flow processing when the online service is normal and flow rollback when the online service fails.
According to the transaction service encapsulation method, the encapsulated service (including the relevant files of the service) is generated through the transaction interface document of the centralized application, so that the distributed application can call the function of the centralized application in a service call mode, and the service call function between heterogeneous systems is realized.
In a specific embodiment, a positive method is used for normal processing of a service, a reverse method is used for rollback, so that transactions of centralized application can be brought into unified transaction management of a distributed architecture system, a transaction management component calls the reverse transactions of the centralized application through an automatic triggering reverse method for rollback when the transactions are rolled back, the transactions of the centralized application do not need to be considered independently by the distributed application, and the development and design complexity of the distributed application is greatly reduced. For example, when the distributed application calls the centralized application and a rollback occurs due to failure in the calling process, the event management component triggers the reverse method to call the centralized application to reverse transaction so as to rollback the flow.
Based on the same inventive concept, the embodiment of the present application further provides a transaction service packaging apparatus, which can be used to implement the method described in the above embodiment, as described in the following embodiments. Because the principle of the transaction servitization packaging device for solving the problems is similar to the transaction servitization packaging method, the implementation of the transaction servitization packaging device can refer to the implementation of the transaction servitization packaging method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
As shown in fig. 6, the transaction servization packaging apparatus includes:
the packaging unit 601 is configured to generate a relevant file of a service according to a transaction interface document of a centralized application of a host system and send the relevant file to a service proxy server of an open platform, where the relevant file includes: distributed service files, protocol conversion files, and service description files.
In a particular embodiment, the service encapsulation server may perform the functions of the encapsulation unit 601.
A converting unit 602, configured to convert, according to the relevant file, a service invocation request packet initiated by a distributed application in the open platform.
In a particular embodiment, the service proxy server may perform the functions of the translation unit 602.
The communication unit 603 is configured to send the converted service invocation request message to the centralized application for performing application transaction.
In one embodiment, as shown in fig. 7, the transaction servization packaging apparatus further comprises:
a registration module 701, configured to register a service corresponding to the relevant file in a service proxy server;
a disclosure module 702, configured to disclose the registered service to all distributed applications in the open platform.
In one embodiment, as shown in fig. 8, the converting unit 602 includes:
and the protocol conversion module 801 is configured to perform protocol conversion on the service call request packet that passes the verification according to the protocol conversion file.
In a specific embodiment, the protocol conversion unit in the service proxy server may be configured to perform the function of the protocol conversion module.
The code system conversion module 802 is configured to perform code system conversion on the service invocation request packet after the protocol conversion, so as to obtain a service invocation request packet consistent with the code system of the centralized application.
In one embodiment, the code system conversion unit in the service proxy server may be configured to perform the function of the code system conversion module.
In one embodiment, the transaction servization packaging apparatus further comprises:
and the distributed service unit creating module is used for creating a distributed service unit in the service proxy server so as to realize flow processing when the online service is normal and flow rollback when the online service fails.
In a particular embodiment, the service encapsulation means may be adapted to perform the functions of the distributed service unit creation module.
The application provides a transaction service encapsulation method, a transaction service encapsulation device and a transaction service encapsulation system, which can automatically encapsulate transactions of a centralized application into services under the condition that the centralized application is not required to be transformed, and then realize the opening and calling of the services in a service agent mode. The service connection processing between heterogeneous systems (mainly a distributed architecture and a centralized architecture) is realized. After the transaction of the centralized application is subjected to service encapsulation, a distributed transaction mechanism can be fully reused for confirmation and rollback, so that the transaction consistency under the mixed calling scene of the distributed application and the centralized application is ensured; the additional processing of the distributed application in the aspects of affairs, communication and the like for calling the centralized application is avoided, and the complexity of the whole enterprise architecture is reduced, so that the function of reusing the existing IT assets of the enterprise to the maximum extent is realized.
Meanwhile, even if distributed application and centralized application exist in the same operating system, such as an enterprise architecture, the method and the system are also suitable for the service transformation of the centralized application in the scene, so that business risks caused by the reconstruction of the centralized application are avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
An embodiment of the present application further provides a specific implementation manner of an electronic device capable of implementing all steps in the method in the foregoing embodiment, and referring to fig. 9, the electronic device specifically includes the following contents:
a processor (processor)901, a memory 902, a communication Interface (Communications Interface)903, a bus 904, and a nonvolatile memory 905;
the processor 901, the memory 902 and the communication interface 903 complete mutual communication through the bus 904;
the processor 901 is configured to call the computer programs in the memory 902 and the nonvolatile memory 905, and when the processor executes the computer programs, the processor implements all the steps in the method in the foregoing embodiments, for example, when the processor executes the computer programs, the processor implements the following steps:
s201: generating a service related file according to a transaction interface document of a centralized application of a host system and sending the service related file to a service proxy server of an open platform, wherein the service related file comprises: distributed service files, protocol conversion files, and service description files.
S202: and converting the service call request message initiated by the distributed application in the open platform according to the related file.
S203: and sending the converted service calling request message to the centralized application to perform application transaction.
Embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments, where the computer-readable storage medium stores thereon a computer program, and the computer program when executed by a processor implements all the steps of the method in the above embodiments, for example, the processor implements the following steps when executing the computer program:
s201: generating a service related file according to a transaction interface document of a centralized application of a host system and sending the service related file to a service proxy server of an open platform, wherein the service related file comprises: distributed service files, protocol conversion files, and service description files.
S202: and converting the service call request message initiated by the distributed application in the open platform according to the related file.
S203: and sending the converted service calling request message to the centralized application to perform application transaction.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment. Although embodiments of the present description provide method steps as described in embodiments or flowcharts, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or end product executes, it may execute sequentially or in parallel (e.g., parallel processors or multi-threaded environments, or even distributed data processing environments) according to the method shown in the embodiment or the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the embodiments of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, and the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein. The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction. The above description is only an example of the embodiments of the present disclosure, and is not intended to limit the embodiments of the present disclosure. Various modifications and variations to the embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present specification should be included in the scope of the claims of the embodiments of the present specification.

Claims (13)

1. A transaction-servization packaging method, comprising:
generating a relevant file of a service according to a transaction interface document of a centralized application of a host system and sending the relevant file to a service proxy server of an open platform, wherein the relevant file comprises: a distributed service file, a protocol conversion file and a service description file;
converting a service calling request message initiated by the distributed application in the open platform according to the related file;
and sending the converted service calling request message to the centralized application to perform application transaction.
2. The transaction-servization packaging method of claim 1, further comprising:
registering the service corresponding to the related file in the service proxy server;
and the registered service is disclosed to all distributed applications in the open platform.
3. The transaction servization encapsulation method according to claim 1, wherein the converting the service call request packet initiated by the distributed application in the open platform according to the related file comprises:
carrying out protocol conversion on the service calling request message passing the verification according to the protocol conversion file;
and carrying out code system conversion on the service calling request message after the protocol conversion to obtain the service calling request message consistent with the code system of the centralized application.
4. The transaction-servization packaging method of claim 1, further comprising:
and creating a distributed service unit in the service proxy server to realize flow processing when the online service is normal and flow rollback when the online service fails.
5. A transaction-servization packaging apparatus, comprising:
the packaging unit is used for generating a relevant file of the service according to a transaction interface document of the centralized application of the host system and sending the relevant file to a service proxy server of the open platform, wherein the relevant file comprises: a distributed service file, a protocol conversion file and a service description file;
a conversion unit, configured to convert, according to the relevant file, a service invocation request packet initiated by a distributed application in the open platform;
and the communication unit is used for sending the converted service calling request message to the centralized application so as to carry out application transaction.
6. The transaction-servization packaging of claim 5, further comprising:
the registration module is used for registering the service corresponding to the related file in the service proxy server;
and the publishing module is used for publishing the registered service to all distributed applications in the open platform.
7. The transaction-servization packaging of claim 5, wherein the conversion unit comprises:
the protocol conversion module is used for carrying out protocol conversion on the service calling request message passing the verification according to the protocol conversion file to obtain a request message required by calling the centralized application transaction; meanwhile, reverse conversion is carried out on the return message of the centralized application to generate the return message of the distributed service;
a code system conversion module, configured to perform code system conversion on the service invocation request packet after protocol conversion, so as to obtain the service invocation request packet consistent with the code system of the centralized application; and simultaneously, reverse transcoding is carried out on the return message of the centralized application to generate a code system of the distributed service message.
8. The transaction-servization packaging module of claim 5, further comprising:
and the distributed service unit creating module is used for creating a distributed service unit in the service proxy server so as to realize flow processing when the online service is normal and flow rollback when the online service fails.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the transaction-serviced encapsulation method of any of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the transaction-servitization encapsulation method according to any one of claims 1 to 4.
11. A transaction-servization packaging system, comprising: the system comprises a service proxy server arranged in an open platform and a service encapsulation server independent of the open platform and a host system, wherein the service proxy server is in communication connection with the service encapsulation server; the service proxy server is in communication connection with all distributed applications in the open platform and the centralized application in the host system;
the service proxy server is used for converting a service call request message initiated by the distributed application;
the service encapsulation server is used for encapsulating the service and the related files thereof.
12. The transaction-servization packaging system of claim 11, wherein the service packaging server comprises:
a service generation unit, configured to invoke a relevant file of a transaction interface document generation service of a centralized application, where the relevant file includes: a distributed service file, a protocol conversion file and a service description file;
and the self-service issuing unit is used for realizing the information transmission between the service packaging server and the service proxy server.
13. The transaction-servization packaging system of claim 12, wherein the service proxy server comprises:
the distributed service unit is created by the service generating unit and is used for realizing flow processing when the online service is normal and flow rollback when the online service fails;
the message checking unit is used for checking a service calling request message initiated by the distributed application;
the protocol conversion unit is used for carrying out protocol conversion on the service calling request message according to a protocol conversion file of the service; meanwhile, reverse conversion is carried out on the return message of the centralized application to generate the return message of the distributed service;
a code system conversion unit, configured to perform code system conversion on the service invocation request packet after protocol conversion; simultaneously, reverse transcoding is carried out on the return message of the centralized application to generate a code system of the distributed service message;
and the communication unit is connected with the communication component in the centralized application and is used for realizing the transmission of information.
CN202010247236.0A 2020-03-31 2020-03-31 Transaction service packaging method, device and system Active CN111353880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247236.0A CN111353880B (en) 2020-03-31 2020-03-31 Transaction service packaging method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247236.0A CN111353880B (en) 2020-03-31 2020-03-31 Transaction service packaging method, device and system

Publications (2)

Publication Number Publication Date
CN111353880A true CN111353880A (en) 2020-06-30
CN111353880B CN111353880B (en) 2023-09-26

Family

ID=71197627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247236.0A Active CN111353880B (en) 2020-03-31 2020-03-31 Transaction service packaging method, device and system

Country Status (1)

Country Link
CN (1) CN111353880B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804303A (en) * 2020-12-31 2021-05-14 网银在线(北京)科技有限公司 Service providing method, device, system, transfer platform and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1526094A (en) * 2001-02-12 2004-09-01 国际商业机器公司 Method and system for incorporating legacy applications into a distributed data processing environment
US20040205613A1 (en) * 2001-07-17 2004-10-14 International Business Machines Corporation Transforming data automatically between communications parties in a computing network
CN105721562A (en) * 2016-01-28 2016-06-29 武汉大学 Proxy-based heterogeneous service calling method and collaborative calling system
CN110851516A (en) * 2019-11-07 2020-02-28 中国银行股份有限公司 Host operation control system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1526094A (en) * 2001-02-12 2004-09-01 国际商业机器公司 Method and system for incorporating legacy applications into a distributed data processing environment
US20040205613A1 (en) * 2001-07-17 2004-10-14 International Business Machines Corporation Transforming data automatically between communications parties in a computing network
CN105721562A (en) * 2016-01-28 2016-06-29 武汉大学 Proxy-based heterogeneous service calling method and collaborative calling system
CN110851516A (en) * 2019-11-07 2020-02-28 中国银行股份有限公司 Host operation control system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804303A (en) * 2020-12-31 2021-05-14 网银在线(北京)科技有限公司 Service providing method, device, system, transfer platform and storage medium
CN112804303B (en) * 2020-12-31 2023-11-03 网银在线(北京)科技有限公司 Service providing method, device, system, transit platform and storage medium

Also Published As

Publication number Publication date
CN111353880B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN107493310B (en) Cloud resource processing method and cloud management platform
CN101847100B (en) Method for expanding software application and device
WO2003032117A2 (en) Dynamic corba gateway for corba and non-corba clients and services
CN112417049B (en) Cross-chain interaction method and system based on block chain all-in-one machine
US10817284B2 (en) Melding of mediation flow service component architecture (SCA) components
JP2008165340A (en) Remote procedure calling system
CN102323884A (en) Web service container and method for issuing multiple Web services
CN110764752B (en) System and method for realizing graphic service arrangement of Restful service
CN111800434A (en) Multi-channel asset docking platform and working method thereof
US7979554B2 (en) Apparatus, system, and method for enabling conversational transactions in a service oriented architecture
CN101930361B (en) Method and system for providing online data storage service
CN112491948A (en) Non-invasive monomer application micro-service method and device and computer equipment
CN113821335A (en) Data processing method, device and storage medium
Rosenberg et al. Towards a distributed service-oriented business rules system
CN113010332A (en) Remote service calling method, device, equipment and storage medium
CN111353880B (en) Transaction service packaging method, device and system
CN115801882A (en) Information interaction method and device between old line system and micro-service system
Fayçal et al. Integrating legacy systems in a SOA using an agent based approach for information system agility
CN113973139A (en) Message processing method and device
CN113760580A (en) Message transfer system between financial institutions
Wen et al. The application of Tuxedo middleware in the banking system
KR100272094B1 (en) Object migration system and method
CN113220461A (en) Operation method and device of distributed operation medium
CN114615267A (en) System and method for accessing bank system to private cloud
CN113918242A (en) Application programming interface calling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant