[go: up one dir, main page]

CN113438251A - Protocol conversion method, device and system - Google Patents

Protocol conversion method, device and system Download PDF

Info

Publication number
CN113438251A
CN113438251A CN202110764360.9A CN202110764360A CN113438251A CN 113438251 A CN113438251 A CN 113438251A CN 202110764360 A CN202110764360 A CN 202110764360A CN 113438251 A CN113438251 A CN 113438251A
Authority
CN
China
Prior art keywords
protocol
request message
protocol conversion
transaction result
sending
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.)
Pending
Application number
CN202110764360.9A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110764360.9A priority Critical patent/CN113438251A/en
Publication of CN113438251A publication Critical patent/CN113438251A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a protocol conversion method, a device and a system, which relate to the technical field of mobile interconnection, and the method comprises the following steps: acquiring a first request message of a first system by using a first protocol; converting the first request message into a second request message according to the protocol conversion information; sending the second request message to a second system so that the second system generates a transaction result according to the second request message; receiving a transaction result by using a second protocol, and converting the transaction result into a return message of the first protocol; and sending the return message to the first system. The invention has no influence on the original codes of all systems, can realize the cross-protocol stack calling, supports the interconversion among various protocols, reduces the workload and improves the development efficiency.

Description

Protocol conversion method, device and system
Technical Field
The present invention relates to the field of mobile interconnection technologies, and in particular, to a protocol conversion method, apparatus, and system.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In a software system, a plurality of systems usually cooperate with each other to perform a certain function. Each system will often choose a different technology stack depending on its respective business function and technology characteristics. For example, for system a and system B, when system a calls system B, since the technical stacks of the two systems are different, the modules of system a and system B are required to support dual stack calls respectively, so as to deal with calls of the internal and external systems of the system. At this time, a very large development effort is required.
Disclosure of Invention
The invention provides a protocol conversion method, a device and a system, which can facilitate mutual calling among different technical stack systems.
In a first aspect, an embodiment of the present invention provides a protocol conversion method, where the method includes:
acquiring a first request message of a first system by using a first protocol; the first protocol is adopted in the first system to carry out system call;
converting the first request message into a second request message according to protocol conversion information;
sending the second request message to a second system so that the second system generates a transaction result according to the second request message; a second protocol is adopted in the second system for system calling;
receiving a transaction result by using the second protocol, and converting the transaction result into a return message of the first protocol;
and sending the return message to the first system.
In a second aspect, an embodiment of the present invention further provides a protocol conversion apparatus, where the apparatus includes:
the acquisition module is used for acquiring a first request message of a first system by using a first protocol; the first protocol is adopted in the first system to carry out system call;
the conversion module is used for converting the first request message into a second request message according to protocol conversion information;
the sending module is used for sending the second request message to a second system so that the second system generates a transaction result according to the second request message; a second protocol is adopted in the second system for system calling;
the receiving module is used for receiving the transaction result by using the second protocol and converting the transaction result into a return message of the first protocol;
and the feedback module is used for sending the return message to the first system.
In a third aspect, an embodiment of the present invention further provides a protocol conversion system, where the system includes any one of the protocol conversion apparatuses and multiple technology stack systems, and the protocol conversion apparatus is in communication connection with the multiple technology stack systems respectively.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the protocol conversion method when executing the computer program.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the protocol conversion method is stored in the computer-readable storage medium.
The embodiment of the invention has the following beneficial effects: the embodiment of the invention provides a protocol conversion scheme, which comprises the following steps: acquiring a first request message of a first system by using a first protocol; converting the first request message into a second request message according to the protocol conversion information; sending the second request message to a second system so that the second system generates a transaction result according to the second request message; receiving a transaction result by using a second protocol, and converting the transaction result into a return message of the first protocol; and sending the return message to the first system. The embodiment of the invention has no influence on the original codes of all systems, can realize cross-protocol stack calling, supports interconversion among various protocols, reduces the workload and improves the development efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a protocol conversion method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system interaction relationship provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an improved system interaction provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interaction relationship of a conventional system according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating interaction between systems according to an embodiment of the present invention;
fig. 6 is a block diagram of a protocol conversion apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
Referring to the schematic diagram of the system interaction relationship shown in fig. 2, the system a and the system B are respectively composed of a plurality of modules. The system A internally uses an HTTP protocol to carry out system call, and the system B internally uses a DUBBO protocol to carry out system call.
When the system a calls the system B, because the technical stacks of the two systems are different, the modules of the system a and the system B are required to support dual-stack call respectively, that is, to support both HTTP and DUBBO protocols.
The current commonly used scheme is:
1. the modules of each system provide support for both protocols. The scheme requires that all parties are compatible with various communication protocols, and has large workload and low development efficiency. Common components are typically developed by specialized groups, and each product incorporates the component.
2. The system A and the responsible person of the system B negotiate to jointly decide which communication protocol is used in the cross-system calling, and one party of the two parties carries out compatible transformation. This typically requires decision-making by an architect or higher level leaders, as one party requires greater modification. Referring to the existing system interaction diagram shown in fig. 4, assuming that system B performs compatibility modification after negotiation, system B will develop an HTTP protocol adaptation module to adapt to cross-system call.
Referring to the multi-system interaction diagram shown in fig. 5, there are multiple system scenarios, and if the existing scheme is adopted, because of the existence of multiple protocols, each party needs to negotiate two or two to make protocol compatibility, and finally, the compatibility codes are scattered at each place of the system, so that the workload is large, the efficiency is low, and the maintenance is not easy.
Based on this, the protocol conversion method, the device and the system provided by the embodiment of the invention are responsible for mutually converting different protocols through an independent centralized cross-protocol conversion device, are transparent to each system, and do not need to pay attention to the difference of the protocols. In a system with multiple protocol interaction, only the protocol conversion device is required to be compatible with the protocol, so that the workload is saved, and the development efficiency is improved.
To facilitate understanding of the embodiment, a protocol conversion method disclosed in the embodiment of the present invention is first described in detail.
An embodiment of the present invention provides a protocol conversion method, referring to a flowchart of a protocol conversion method shown in fig. 1, the method includes the following steps:
step S102, a first request message of a first system is obtained by utilizing a first protocol.
In the embodiment of the invention, the first system may include a plurality of modules, and the modules may invoke each other by using the first protocol. The first protocol may be set according to actual requirements, which is not specifically limited in this embodiment of the present invention. The first request message is used for initiating the transaction of the first system to other systems.
Step S104, the first request message is converted into a second request message according to the protocol conversion information.
In the embodiment of the present invention, the protocol conversion information may be configured in advance. For example, a conversion scheme between common protocols may be configured, for example, the protocol conversion information may include codes interconverted between the first protocol and the second protocol, codes interconverted between the first protocol and the third protocol, codes interconverted between the second protocol and the third protocol, and the like. The protocol conversion information is used for completing the protocol conversion of the cross-protocol calling two parties.
It should be noted that, a skilled person needs to know the difference between different protocols, and can write a general protocol conversion code in advance to implement the conversion between protocols. The protocol conversion information needs to be generic enough to enable each system to be used without modification.
And step S106, sending the second request message to the second system so that the second system generates a transaction result according to the second request message.
In the embodiment of the present invention, the second system may include a plurality of modules, and the modules may invoke each other by using the second protocol. The second protocol may be set according to actual requirements, which is not specifically limited in this embodiment of the present invention. The second request message is adapted to a second protocol, and therefore, the second request message is sent to the second system, and the second system can generate a transaction result according to the second request message.
And step S108, receiving the transaction result by using the second protocol, and converting the transaction result into a return message of the first protocol.
In the embodiment of the present invention, the transaction result applies the second protocol, and in order to enable the first system to obtain the transaction result, the transaction result needs to be converted into the return message of the first protocol by using the protocol conversion information.
Step S110, sending the return message to the first system.
In the embodiment of the invention, the return message is applicable to the first protocol, so that the return message is sent to the first system to complete the cross-protocol call between the first system and the second system.
The embodiment of the invention provides a protocol conversion scheme, which comprises the following steps: acquiring a first request message of a first system by using a first protocol; converting the first request message into a second request message according to the protocol conversion information; sending the second request message to a second system so that the second system generates a transaction result according to the second request message; receiving a transaction result by using a second protocol, and converting the transaction result into a return message of the first protocol; and sending the return message to the first system. The embodiment of the invention has no influence on the original codes of all systems, can realize cross-protocol stack calling, supports interconversion among various protocols, reduces the workload and improves the development efficiency.
In one embodiment, the first Protocol is the HTTP Protocol (Hypertext Transfer Protocol).
In the embodiment of the invention, the protocol conversion information can be utilized to realize the conversion between the HTTP protocol and other self-defined protocols or existing protocols, thereby realizing the cross-protocol calling between the first system and the second system.
In one embodiment, the second protocol is a DUBBO protocol.
In the embodiment of the invention, the protocol conversion information can be utilized to realize the conversion between the DUBBO protocol and other self-defined protocols or existing protocols, thereby realizing the cross-protocol call between the first system and the second system.
In one embodiment, the method may further perform the steps of:
the protocol conversion information is adjusted.
In the embodiment of the invention, in order to expand the application range and meet the protocol conversion requirements in different scenes, the protocol conversion information can be adjusted, and specifically, the operations of information addition, information deletion, information modification, information query and the like can be performed on the protocol conversion information, so that the reconfiguration of the protocol conversion information is realized.
Referring to the improved system interaction diagram shown in fig. 3, the implementation of the method is described in a specific embodiment.
When the system A calls the system B, the system A sends the request to the protocol conversion module by using the HTTP protocol, the protocol conversion module converts the request into the DUBBO protocol and forwards the request to the system B, and therefore the transaction processing is completed.
When the system B calls the system A, the system B sends the request to the protocol conversion module by using the DUBBO protocol, the protocol conversion module converts the request into the HTTP protocol and forwards the request to the system A, and therefore the transaction processing is completed.
The above process can be specifically realized according to the following steps:
1. the system A uses the protocol 1 to initiate a transaction to the system B through the protocol conversion device.
2. The protocol conversion device receives the request of the system A, converts the message of the protocol 1 into the message of the protocol 2, and forwards the message to the system B by using the protocol 2.
3. And the system B receives the request of the protocol 2, and returns the transaction result to the protocol conversion device by using the protocol 2 after processing.
4. The protocol conversion device receives the return message of the protocol 2, converts the return message into the return message of the protocol 1, and returns the return message to the system A through the protocol 1.
The embodiment of the invention provides a protocol conversion method, a device and a system, wherein the method converts protocols among different technical stacks through protocol conversion information, thereby facilitating the calling among systems.
The embodiment of the present invention further provides a protocol conversion apparatus, as described in the following embodiments. Because the principle of the device for solving the problems is similar to the protocol conversion method, the implementation of the device can refer to the implementation of the protocol conversion method, and repeated details are not repeated. Referring to fig. 6, a block diagram of a protocol conversion apparatus is shown, the apparatus including:
an obtaining module 61, configured to obtain a first request packet of a first system by using a first protocol; a first protocol is adopted in the first system for system calling; a conversion module 62, configured to convert the first request packet into a second request packet according to the protocol conversion information; the sending module 63 is configured to send the second request message to the second system, so that the second system generates a transaction result according to the second request message; a second protocol is adopted in the second system for system calling; a receiving module 64, configured to receive the transaction result using the second protocol, and convert the transaction result into a return message of the first protocol; and a feedback module 65, configured to send the return message to the first system.
In one embodiment, the first protocol is the HTTP protocol.
In one embodiment, the second protocol is a DUBBO protocol.
In one embodiment, the apparatus further comprises a configuration module to: the protocol conversion information is adjusted.
Based on the same inventive concept, the embodiment of the invention also provides a protocol conversion system, which comprises any one of the protocol conversion devices and a plurality of technical stack systems, wherein the protocol conversion device is respectively in communication connection with the plurality of technical stack systems.
In the embodiment of the invention, the protocol conversion device is independent of each technical stack system and is respectively in communication connection with each technical stack system, so that the original codes of each system are not influenced, cross-protocol stack calling can be realized, interconversion among various protocols is supported, the workload is reduced, and the development efficiency is improved.
Based on the same inventive concept, the embodiment of the present invention further provides an embodiment of an electronic device for implementing all or part of the contents in the protocol conversion method. The electronic device specifically comprises the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between related devices; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the protocol conversion method and the embodiment for implementing the protocol conversion apparatus in the embodiments, and the contents thereof are incorporated herein, and repeated details are not repeated.
Fig. 7 is a schematic diagram of a system configuration structure of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 70 may include a processor 701 and a memory 702; a memory 702 is coupled to the processor 701. Notably, this fig. 7 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the functionality implemented by the protocol conversion method may be integrated into the processor 701. Wherein, the processor 701 may be configured to control as follows:
acquiring a first request message of a first system by using a first protocol; converting the first request message into a second request message according to the protocol conversion information; sending the second request message to a second system so that the second system generates a transaction result according to the second request message; receiving a transaction result by using a second protocol, and converting the transaction result into a return message of the first protocol; and sending the return message to the first system.
As can be seen from the above, the electronic device provided in the embodiment of the present invention has no influence on the original codes of the systems, can implement call across protocol stacks, and support interconversion among multiple protocols, thereby reducing workload and improving development efficiency.
In another embodiment, the protocol conversion apparatus may be configured separately from the processor 701, for example, the protocol conversion apparatus may be configured as a chip connected to the processor 701, and the function of the protocol conversion method may be implemented by the control of the processor.
As shown in fig. 7, the electronic device 70 may further include: a communication module 703, an input unit 704, an audio processing unit 705, a display 706, and a power supply 707. It is noted that the electronic device 70 does not necessarily include all of the components shown in fig. 7; furthermore, the electronic device 70 may also comprise components not shown in fig. 7, which can be referred to in the prior art.
As shown in fig. 7, the processor 701, which is sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, and the processor 701 receives input and controls the operation of the various components of the electronic device 70.
The memory 702 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the processor 701 may execute the program stored in the memory 702 to realize information storage or processing, or the like.
The input unit 704 provides input to the processor 701. The input unit 704 is, for example, a key or a touch input device. The power supply 707 is used to supply power to the electronic device 70. The display 706 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 702 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 702 may also be some other type of device. Memory 702 includes a buffer memory 7021 (sometimes referred to as a buffer). The memory 702 may include an application/function storage portion 7022, the application/function storage portion 7022 being used to store application programs and function programs or procedures for performing operations of the electronic device 70 by the processor 701.
The memory 702 may also include a data store 7023, the data store 7023 being for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 7024 of the memory 702 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 703 is a transmitter/receiver that transmits and receives signals via the antenna 708. A communication module (transmitter/receiver) 703 is coupled to the processor 701 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 703, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 703 is also coupled to a speaker 709 and a microphone 710 via an audio processing unit 705 to provide audio output via the speaker 709 and receive audio input from the microphone 710 to implement general telecommunication functions. The audio processing unit 705 may include any suitable buffers, decoders, amplifiers and so forth. Additionally, an audio processing unit 705 is also coupled to the processor 701 to enable recording of sound locally through a microphone 710 and to enable playing of locally stored sound through a speaker 709.
An embodiment of the present invention further provides a computer-readable storage medium for implementing all the steps in the protocol conversion method in the above embodiment, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the protocol conversion method in the above embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
acquiring a first request message of a first system by using a first protocol; converting the first request message into a second request message according to the protocol conversion information; sending the second request message to a second system so that the second system generates a transaction result according to the second request message; receiving a transaction result by using a second protocol, and converting the transaction result into a return message of the first protocol; and sending the return message to the first system.
As can be seen from the above, the computer-readable storage medium provided in the embodiment of the present invention has no influence on the original codes of the systems, can implement call across protocol stacks, and support interconversion among multiple protocols, thereby reducing workload and improving development efficiency.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. 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 client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
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 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 document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Each aspect and/or embodiment of the invention can be used alone or in combination with one or more other aspects and/or embodiments.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A protocol conversion method, comprising:
acquiring a first request message of a first system by using a first protocol; the first protocol is adopted in the first system to carry out system call;
converting the first request message into a second request message according to protocol conversion information;
sending the second request message to a second system so that the second system generates a transaction result according to the second request message; a second protocol is adopted in the second system for system calling;
receiving a transaction result by using the second protocol, and converting the transaction result into a return message of the first protocol;
and sending the return message to the first system.
2. The method of claim 1, wherein the first protocol is the HTTP protocol.
3. The method of claim 1, wherein the second protocol is a DUBBO protocol.
4. The method of claim 1, further comprising:
and adjusting the protocol conversion information.
5. A protocol conversion apparatus, comprising:
the acquisition module is used for acquiring a first request message of a first system by using a first protocol; the first protocol is adopted in the first system to carry out system call;
the conversion module is used for converting the first request message into a second request message according to protocol conversion information;
the sending module is used for sending the second request message to a second system so that the second system generates a transaction result according to the second request message; a second protocol is adopted in the second system for system calling;
the receiving module is used for receiving the transaction result by using the second protocol and converting the transaction result into a return message of the first protocol;
and the feedback module is used for sending the return message to the first system.
6. The apparatus of claim 5, wherein the first protocol is an HTTP protocol.
7. The apparatus of claim 5, wherein the second protocol is a DUBBO protocol.
8. The apparatus of claim 5, further comprising a configuration module to:
and adjusting the protocol conversion information.
9. A protocol conversion system comprising the protocol conversion apparatus of any one of claims 5 to 8 and a plurality of technology stack systems, the protocol conversion apparatus being communicatively connected to the plurality of technology stack systems, respectively.
10. 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 protocol conversion method according to any one of claims 1 to 4 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the protocol conversion method of any one of claims 1 to 4.
CN202110764360.9A 2021-07-06 2021-07-06 Protocol conversion method, device and system Pending CN113438251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110764360.9A CN113438251A (en) 2021-07-06 2021-07-06 Protocol conversion method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110764360.9A CN113438251A (en) 2021-07-06 2021-07-06 Protocol conversion method, device and system

Publications (1)

Publication Number Publication Date
CN113438251A true CN113438251A (en) 2021-09-24

Family

ID=77759318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110764360.9A Pending CN113438251A (en) 2021-07-06 2021-07-06 Protocol conversion method, device and system

Country Status (1)

Country Link
CN (1) CN113438251A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327959A (en) * 2022-01-06 2022-04-12 中国银行股份有限公司 Method and device for converting Socket protocol into Dubbo protocol
CN115914377A (en) * 2022-10-28 2023-04-04 中银金融科技有限公司 Cross-system communication method, device, electronic device and storage medium
CN116760912A (en) * 2023-08-18 2023-09-15 杭州星锐网讯科技有限公司 Transaction realization method and system based on protocol conversion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917510A (en) * 2005-08-16 2007-02-21 腾讯科技(深圳)有限公司 Method for accessing address list, and system of address list
CN101577718A (en) * 2009-06-23 2009-11-11 用友软件股份有限公司 Multi-ebanking adaptive system
CN103516686A (en) * 2012-06-27 2014-01-15 中兴通讯股份有限公司 Protocol conversion device and protocol conversion method, and intelligent network system and working method thereof
CN106331163A (en) * 2016-09-30 2017-01-11 海尔优家智能科技(北京)有限公司 A method and device for controlling a service platform
CN108833446A (en) * 2018-08-01 2018-11-16 广发证券股份有限公司 A kind of method for converting protocol and device based on Fix agreement request packet
CN110381093A (en) * 2019-09-03 2019-10-25 北京旷视科技有限公司 Method, apparatus, the system and electronic equipment of data transmission of data protocol conversion

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917510A (en) * 2005-08-16 2007-02-21 腾讯科技(深圳)有限公司 Method for accessing address list, and system of address list
CN101577718A (en) * 2009-06-23 2009-11-11 用友软件股份有限公司 Multi-ebanking adaptive system
CN103516686A (en) * 2012-06-27 2014-01-15 中兴通讯股份有限公司 Protocol conversion device and protocol conversion method, and intelligent network system and working method thereof
CN106331163A (en) * 2016-09-30 2017-01-11 海尔优家智能科技(北京)有限公司 A method and device for controlling a service platform
CN108833446A (en) * 2018-08-01 2018-11-16 广发证券股份有限公司 A kind of method for converting protocol and device based on Fix agreement request packet
CN110381093A (en) * 2019-09-03 2019-10-25 北京旷视科技有限公司 Method, apparatus, the system and electronic equipment of data transmission of data protocol conversion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327959A (en) * 2022-01-06 2022-04-12 中国银行股份有限公司 Method and device for converting Socket protocol into Dubbo protocol
CN115914377A (en) * 2022-10-28 2023-04-04 中银金融科技有限公司 Cross-system communication method, device, electronic device and storage medium
CN116760912A (en) * 2023-08-18 2023-09-15 杭州星锐网讯科技有限公司 Transaction realization method and system based on protocol conversion

Similar Documents

Publication Publication Date Title
CN113438251A (en) Protocol conversion method, device and system
CN110941563B (en) Automatic script testing method and device
CN111367988A (en) Data import method and device
CN112866268B (en) Message processing method and system
CN112328413B (en) Application service calling method, device and system
CN111371695B (en) Service flow limiting method and device
CN112689012A (en) Cross-network proxy communication method and device
CN1984411B (en) Method and mobile terminal for log management during bluetooth communication
CN103237050A (en) Method and system for intelligent voice interaction
CN112468574B (en) Processing method, device and system for application service publishing and subscribing mechanism
CN114979280A (en) Registration center access method and device
CN113312190A (en) Cooperative processing method and device for government affair service business
CN113746840A (en) JSON format message generation method and device
CN112866439A (en) Data processing method, device and system
CN111859041A (en) Data transmission method and device
CN113159752A (en) Method and device for generating account transfer transaction certificate
CN112882685A (en) Object extension method and device of object-oriented programming language
CN111147358A (en) Security authentication method and device based on instant messaging software
CN113438083B (en) Signature adding and checking method and device based on interface automatic test
WO2015154621A1 (en) Method, device and system for transmitting address book information
CN113176854A (en) Service management data processing method, device and system
CN115102947A (en) Asynchronous file management method and device
CN112968954B (en) Flow control method, server and system for service migration
CN115390848A (en) Method and device for converting and transmitting Chinese data with different code systems between systems
CN114070902B (en) Message processing method and device based on DELPHI

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924