CN112417016B - Data exchange method, system, equipment and storage medium - Google Patents

Data exchange method, system, equipment and storage medium Download PDF

Info

Publication number
CN112417016B
CN112417016B CN202011297551.0A CN202011297551A CN112417016B CN 112417016 B CN112417016 B CN 112417016B CN 202011297551 A CN202011297551 A CN 202011297551A CN 112417016 B CN112417016 B CN 112417016B
Authority
CN
China
Prior art keywords
query
service system
parameter
data
service
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.)
Active
Application number
CN202011297551.0A
Other languages
Chinese (zh)
Other versions
CN112417016A (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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN202011297551.0A priority Critical patent/CN112417016B/en
Publication of CN112417016A publication Critical patent/CN112417016A/en
Application granted granted Critical
Publication of CN112417016B publication Critical patent/CN112417016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data exchange method, a system, equipment and a storage medium. The method comprises the following steps: acquiring a first data exchange rule corresponding to a first service system in a shared database; wherein the first data exchange rule includes a first query parameter format; based on the first query parameter format, packaging a first parameter to be queried to obtain a first query request, and sending the first query request to the first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first parameter to be queried; and receiving first feedback data sent by the first service system based on the first parameter to be queried. According to the embodiment of the invention, the data exchange rules of each service system are stored through the shared database, so that the data exchange between the service systems can be completed, the utilization rate of storage resources is improved, and the hardware cost is reduced.

Description

Data exchange method, system, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a data exchange method, a system, equipment and a storage medium.
Background
With the rapid development of information network technology, current network information is applied to various fields, and with the proliferation of network users and the continuous expansion of online services, different service systems are generally required to be used, so that data storage is also dispersed into the different service systems.
In order to realize data sharing, the prior art scheme mainly uses a shared storage unit to store data generated by all service systems, and the service systems acquire the required data by accessing the storage unit. However, this approach introduces additional hardware investment, and the same data may be stored in both the service system and the storage unit, thereby wasting storage resources.
Disclosure of Invention
The embodiment of the invention provides a data exchange method, a system, equipment and a storage medium, which are used for reducing hardware cost and improving the utilization rate of storage resources.
In a first aspect, an embodiment of the present invention provides a data exchange method, where the method includes:
acquiring a first data exchange rule corresponding to a first service system in a shared database; wherein, the shared database is registered with at least one data exchange rule defined by each service system, and the first data exchange rule comprises a first query parameter format;
based on the first query parameter format, packaging a first parameter to be queried to obtain a first query request, and sending the first query request to the first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first parameter to be queried;
and receiving first feedback data sent by the first service system based on the first parameter to be queried.
In a second aspect, an embodiment of the present invention further provides a data exchange system, including: sharing a database and at least two business systems;
wherein, the shared database registers data exchange rules defined by at least two business systems respectively; the data exchange rule comprises a query parameter format;
the second service system is used for acquiring a first data exchange rule defined by a first service system in the shared database, packaging a first parameter to be queried based on a first query parameter format in the first data exchange rule to obtain a first query request, and sending the first query request to the first service system; receiving first feedback data sent by the first service system based on the first parameter to be queried;
the first service system is used for receiving a first query request sent by the second service system, analyzing the first query request based on the first query parameter format to obtain a first parameter to be queried, and sending first feedback data corresponding to the first parameter to be queried to the second service system.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data exchange method of any of the above-referenced figures.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions which, when executed by a computer processor, are used to perform any of the data exchange methods referred to above.
The embodiment of the invention stores the data exchange rules defined by each service system through the shared database, transmits the query request generated based on the data exchange rules to the service system, and receives the feedback data transmitted by the service system, thereby solving the problem of storing the query service data by adopting the storage unit in the prior art, enabling the service systems to complete data exchange, improving the utilization rate of storage resources in the service system and reducing the hardware cost.
Drawings
Fig. 1 is a flowchart of a data exchange method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a data exchange method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a specific example of a data exchange method according to the second embodiment of the present invention.
Fig. 4 is a schematic diagram of a data exchange system according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data exchange method according to a first embodiment of the present invention, where the present embodiment is applicable to a case of data exchange between service systems, the method may be performed by a data exchange system, and the system may be implemented in software and/or hardware. The method specifically comprises the following steps:
s110, acquiring a first data exchange rule corresponding to the first service system in the shared database.
Wherein, the database is a warehouse for organizing, storing and managing data according to a data structure, and is an organized, sharable and same managed collection of a large amount of data. The type of the shared database may be a relational database or a non-relational database, specifically, the shared database may be an Oracle database or a MySQL database in the relational database, or the shared database may be a key value storage database, a column storage database, a document-oriented database or a graphic database in the non-relational database. The specific type of shared database is not limited herein.
In this embodiment, at least one data exchange rule defined by each service system is registered in the shared database, and the first data exchange rule includes a first query parameter format.
The service system is an operation system oriented to service informatization, and is a technical platform oriented to service. The specific service capabilities corresponding to the service system are not limited herein. In this embodiment, the data exchange rule includes a query parameter format, where the query parameter format is used to characterize a parameter format requirement corresponding to the queried service system. Specifically, each service system has its own corresponding parameter format requirement, and only data meeting the parameter format requirement can be received by the corresponding service system.
Specifically, the query parameter formats defined by the service systems may be the same or different. Exemplary first query parameter formats include, but are not limited to, xml (eXtensible Markup Language ) format, json (JavaScript Object Notation, json object profile) format, or yaml (Yet Another Markup Language, data serialization) format, among others. The xml format is a markup language for marking the electronic file to have a structure, the json format is a lightweight text data exchange format, and the xml format is completely independent of the language, so that the xml format is easy to analyze and generate. yaml format is a highly readable format for expressing data serialization.
In one embodiment, optionally, the shared database is further registered with a query parameter set defined by each service system, and correspondingly, the obtaining a first data exchange rule corresponding to the first service system in the shared database includes: and respectively matching the first parameter to be queried with the query parameters in each query parameter set, taking the service system corresponding to the successfully matched query parameter set as a first service system, and acquiring a first data exchange rule corresponding to the first service system.
Specifically, the first parameter to be queried is a parameter to be queried by the service system, and exemplary first parameters to be queried include parameters such as "number of participants" and "competition time". The service system determines a query parameter set according to query service data of the service system, wherein the query parameter set comprises at least one query parameter. For example, when the first parameter to be queried includes at least one parameter to be queried, if each parameter to be queried matches a query parameter in the query parameter set, if the first parameter to be queried includes "data 1", "data 2" and "data 3", the query parameter set a defined by the service system a includes "data 1", "data 2" and "data 3", the service system a is regarded as the first service system.
S120, based on the first query parameter format, the first query parameter is packaged to obtain a first query request, and the first query request is sent to the first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first query parameter.
The first query request is specifically sent to a query service interface provided by the first service system, and in the period, the first query request is compiled in a first query parameter format, so that the first query request can be identified and received by the query service interface provided by the first service system.
On the basis of the foregoing embodiment, optionally, the first data exchange rule further includes a service interface address of the query service interface and a data transmission protocol, and correspondingly, sending the first query request to the first service system, including: the first query request is sent to the first business system based on the service interface address and the data transmission protocol.
Wherein the service interface address is specifically used to characterize an address of the query service interface that receives the first query request, and the service interface address may be, for example, url (Uniform Resource Locator ) address, ip address (Internet Protocol Address, internet protocol address) or domain name address. Exemplary data transfer protocols include, but are not limited to, telnet (Telnet service) protocol, FTP protocol (File Transfer Protocol ), HTTP protocol (HyperText Transfer Protocol, hyperText transfer protocol) or HTTPS protocol (Secure HyperText Transfer Protocol, hyperText secure transfer protocol), among others.
S130, receiving first feedback data sent by the first service system based on the first parameter to be queried.
Specifically, the first service system sends first feedback data generated based on the first query parameter to the first service system, so that data exchange between the first service system and the service system is realized.
On the basis of the above embodiment, optionally, the method further includes: registering a web service description language description file for defining a query service interface in a shared database, wherein the web service description language description file is used for describing a query parameter set and a data exchange rule defined by a business system.
In one embodiment, the query Service interface is optionally a Web Service interface. Web Service technology can implement data exchange between business systems without the aid of additional or specialized third party software or hardware. The Web Service description language description file (Web Services Description Language, WSDL) is an xml format language published based on the Web Service and is used for describing the Web Service and functions, parameters and return values thereof. The data exchange rules in the WSDL file include, among other things, the SOAP protocol (Simple Object Access Protocol ) that describes the xml format of the transfer message, which can be used in conjunction with existing data transfer protocols. Wherein, the data exchange rule in the WSDL file comprises url type service interface address.
According to the technical scheme, the data exchange rules defined by each service system are stored in the shared database, the query request generated based on the data exchange rules is sent to the service system, and the feedback data sent by the service system is received, so that the problem that the service data are stored by the storage unit in the prior art is solved, the data exchange between the service systems can be completed, the utilization rate of storage resources in the service system is improved, and the hardware cost is reduced.
Example two
Fig. 2 is a flowchart of a data exchange method according to a second embodiment of the present invention, and the technical solution of this embodiment is further refinement based on the foregoing embodiment. Optionally, after receiving the first feedback data sent by the first service system based on the first parameter to be queried, the method further includes: analyzing the first feedback data based on a second feedback parameter format defined by a second service system to obtain first query service data; the first feedback data is obtained by the first service system packaging first query service data obtained based on a first parameter to be queried based on a second feedback parameter format, and the second feedback parameter format is obtained by the first service system querying a shared database.
The specific implementation steps of the embodiment include:
s210, acquiring a first data exchange rule corresponding to a first service system in a shared database.
S220, based on the first query parameter format, the first query parameter is packaged to obtain a first query request, and the first query request is sent to the first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first query parameter.
S230, receiving first feedback data sent by the first service system based on the first parameter to be queried.
S240, analyzing the first feedback data based on a second feedback parameter format defined by the second service system to obtain first query service data.
The feedback parameter format is used for representing the parameter format requirement corresponding to the service system. Specifically, each service system has its own corresponding parameter format requirement, and only data meeting the parameter format requirement can be received by the corresponding service system. Specifically, the feedback parameter formats defined by the service systems may be the same or different. In one embodiment, optionally, the first feedback parameter format is an xml format.
In this embodiment, the first feedback data is obtained by the first service system encapsulating, based on a second feedback parameter format, the first query service data obtained based on the first parameter to be queried, and the second feedback parameter format is obtained by the first service system querying the shared database.
Specifically, the first service system obtains first query service data stored locally based on a first parameter to be queried, queries a second feedback parameter format corresponding to the second service system in the shared database based on a second service system sending a first query request, and encapsulates the obtained first query service data based on the second feedback parameter format to obtain first feedback data, so that the first feedback data can be recognized and received by the second service system. Further, the second service system, i.e. the service system sending the first query request, analyzes the first feedback data according to the second feedback parameter format defined by itself to obtain the first query service data.
On the basis of the above embodiment, optionally, the method further includes: receiving a second query request sent by the first service system based on a second query parameter format, and analyzing the second query request based on the second query parameter format to obtain a second parameter to be queried; the second query parameter format is obtained by querying the shared database by the first service system; and sending second feedback data corresponding to the second parameter to be queried to the first service system.
Wherein, the second query parameter format is a query parameter format in a second data exchange rule registered in the shared database by the second service system.
On the basis of the above embodiment, optionally, the method further includes: acquiring locally stored second query service data corresponding to a second parameter to be queried, and querying a first data exchange rule corresponding to a first service system in a shared database; wherein the first data exchange rule includes a first feedback parameter format; and packaging the second query service data based on the first feedback parameter format to obtain second feedback data, so that the first service system analyzes the second feedback data based on the first feedback parameter format to obtain the second query service data.
In this embodiment, the second service system may also be used as a queried service system, and receive a second query request sent by the first service system, so as to implement data exchange between the first service system and the second service system.
Fig. 3 is a flowchart of a specific example of a data exchange method according to the second embodiment of the present invention. Specifically, the first Service system and the second Service system respectively issue Web Service interfaces by defining WSDL files and parameter formats.
Taking the second service system as an execution subject, on the one hand, the second service system can be used as a data query service system to make a data request to the first service system. Specifically, the second Service system encapsulates the first parameter to be queried according to an xml parameter format defined by the first Service system queried by the shared database to obtain a first query request, and sends the first query request to the first Service system, so that the first query request is received by polling the first Service system through a Web Service interface, and the first query request is analyzed based on the xml parameter format to obtain the first parameter to be queried. And acquiring first query service data corresponding to the first parameter to be queried from the service library, and packaging the first query service data based on an xml parameter format defined by the second service system to obtain first feedback data. The second Service system receives the first feedback data through the Web Service interface polling, and analyzes the first feedback data based on the xml parameter format to obtain first query Service data.
On the other hand, the second service system can be used as a queried service system to receive the data request sent by the first service system. Specifically, the second Service system polls the second query request of the first Service system based on the xml parameter format through the Web Service interface, analyzes the second query request based on the xml parameter format to obtain a second query parameter, obtains second query Service data corresponding to the second query parameter from the database, encapsulates the second query Service data based on the xml parameter format defined by the first Service system to obtain second feedback data, so that the first Service system polls the Web Service interface to receive the second feedback data, and analyzes the second feedback data based on the xml parameter format to obtain the second query Service data.
According to the technical scheme, the feedback parameter format of the service system is defined in the shared database, so that the problem that the service system cannot receive feedback data is solved, the first service system sends query service data meeting the second feedback parameter format defined by the second service system to the second service system, the second service system receives and analyzes the query service data fed back by the first service system, data exchange between the service systems can be completed, the utilization rate of storage resources in the service system is improved, and hardware cost is reduced.
Example III
Fig. 4 is a schematic diagram of a data exchange system according to a third embodiment of the present invention. The embodiment can be suitable for the situation of data exchange between service systems, and the device can be realized in a software and/or hardware mode. The data exchange system includes: a shared database 310 and at least two business systems;
wherein the shared database 310 is registered with data exchange rules defined by at least two service systems respectively; the data exchange rule comprises a query parameter format;
the second service system 320 is configured to obtain a first data exchange rule defined by the first service system 330 in the shared database 310, encapsulate a first parameter to be queried based on a first query parameter format in the first data exchange rule to obtain a first query request, and send the first query request to the first service system 330; and, receiving first feedback data sent by the first service system 330 based on the first parameter to be queried;
the first service system 330 is configured to receive a first query request sent by the second service system 320, parse the first query request based on a first query parameter format to obtain a first parameter to be queried, and send first feedback data corresponding to the first parameter to be queried to the second service system 320.
According to the technical scheme, the data exchange rules defined by each service system are stored in the shared database, the query request generated based on the data exchange rules is sent to the service system, and the feedback data sent by the service system is received, so that the problem that the service data are stored by the storage unit in the prior art is solved, the data exchange between the service systems can be completed, the utilization rate of storage resources in the service system is improved, and the hardware cost is reduced.
Based on the above technical solution, optionally, the shared database is further registered with a query parameter set defined by each service system, and the second service system 320 is specifically configured to:
and respectively matching the first parameter to be queried with the query parameters in each query parameter set, taking the service system corresponding to the successfully matched query parameter set as the first service system 330, and acquiring a first data exchange rule corresponding to the first service system 330.
Based on the above technical solution, optionally, the second service system 320 is further configured to:
network service description language description files for defining query service interfaces are registered in the shared database 310, wherein the network service description language description files are used for describing query parameter sets and data exchange rules defined by the business system.
On the basis of the above technical solution, optionally, the first data exchange rule further includes a service interface address of the query service interface and a data transmission protocol, and correspondingly, the second service system 320 is specifically configured to:
the first query request is sent to the first business system 330 based on the service interface address and the data transfer protocol.
Based on the above technical solution, optionally, the second service system 320 is further configured to:
analyzing the first feedback data based on a second feedback parameter format defined by the second service system 320 to obtain first query service data; the first feedback data is obtained by the first service system 330 encapsulating, based on a second feedback parameter format, the first query service data obtained based on the first parameter to be queried, and the second feedback parameter format is obtained by the first service system 330 querying the shared database 310.
Based on the above technical solution, optionally, the second service system 320 is further configured to:
receiving a second query request sent by the first service system 330 based on the second query parameter format, and analyzing the second query request based on the second query parameter format to obtain a second parameter to be queried; wherein the second query parameter format is obtained by querying the shared database 310 by the first service system 330;
and sending second feedback data corresponding to the second parameter to be queried to the first service system 330.
Based on the above technical solution, optionally, the second service system 320 is further configured to:
acquiring locally stored second query service data corresponding to the second parameter to be queried and querying a first data exchange rule corresponding to the first service system 330 in the shared database 310; wherein the first data exchange rule includes a first feedback parameter format;
and packaging the second query service data based on the first feedback parameter format to obtain second feedback data, so that the first service system 330 analyzes the second feedback data based on the first feedback parameter format to obtain the second query service data.
The data exchange system provided by the embodiment of the invention can be used for executing the data exchange method provided by the embodiment of the invention, and has the corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the data exchange system, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the fourth embodiment of the present invention provides services for implementing the data exchange method according to the foregoing embodiment of the present invention, and the data exchange system in the foregoing embodiment may be configured. Fig. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown in fig. 5, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the data exchange method provided by the embodiment of the present invention.
By the electronic equipment, the problem that the storage unit is used for storing and inquiring service data in the prior art is solved, so that data exchange between service systems can be completed, the utilization rate of storage resources in the service systems is improved, and the hardware cost is reduced.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a data exchange method comprising:
acquiring a first data exchange rule corresponding to a first service system in a shared database; the shared database is registered with at least one data exchange rule defined by each service system, and the first data exchange rule comprises a first query parameter format;
based on a first query parameter format, packaging a first parameter to be queried to obtain a first query request, and sending the first query request to a first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first parameter to be queried;
and receiving first feedback data sent by the first service system based on the first parameter to be queried.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above method operations, but may also perform the related operations in the data exchange method provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A method of data exchange, comprising:
acquiring a first data exchange rule corresponding to a first service system in a shared database; wherein, the shared database is registered with at least one data exchange rule defined by each service system, and the first data exchange rule comprises a first query parameter format;
based on the first query parameter format, packaging a first parameter to be queried to obtain a first query request, and sending the first query request to the first service system, so that the first service system analyzes the first query request based on the first query parameter format to obtain the first parameter to be queried;
receiving first feedback data sent by the first service system based on the first parameter to be queried;
receiving a second query request sent by the first service system based on a second query parameter format, and analyzing the second query request based on the second query parameter format to obtain a second parameter to be queried; the second query parameter format is obtained by querying the shared database by the first service system;
sending second feedback data corresponding to the second parameter to be queried to the first service system;
acquiring locally stored second query service data corresponding to the second parameter to be queried, and querying the first data exchange rule corresponding to the first service system in the shared database; wherein the first data exchange rule includes a first feedback parameter format;
packaging the second query service data based on the first feedback parameter format to obtain the second feedback data, so that the first service system analyzes the second feedback data based on the first feedback parameter format to obtain the second query service data;
wherein the second query parameter format is a query parameter format in a second data exchange rule registered in the shared database by a second service system.
2. The method of claim 1, wherein the shared database is further registered with a set of query parameters defined by each of the service systems, and the acquiring the first data exchange rule corresponding to the first service system in the shared database includes:
and respectively matching the first parameter to be queried with the query parameters in each query parameter set, taking the service system corresponding to the successfully matched query parameter set as a first service system, and acquiring a first data exchange rule corresponding to the first service system.
3. The method according to claim 2, wherein the method further comprises:
registering a web service description language description file for defining a query service interface in a shared database, wherein the web service description language description file is used for describing a query parameter set and a data exchange rule defined by a service system.
4. The method of claim 1, wherein the first data exchange rule further comprises a service interface address and a data transfer protocol of a query service interface, and wherein the sending the first query request to the first business system, respectively, comprises:
and sending the first query request to the first service system based on the service interface address and a data transmission protocol.
5. The method of claim 1, wherein after receiving the first feedback data sent by the first service system based on the first parameter to be queried, the method further comprises:
analyzing the first feedback data based on a second feedback parameter format defined by a second service system to obtain first query service data; the first feedback data is obtained by the first service system packaging first query service data obtained based on a first parameter to be queried based on a second feedback parameter format, and the second feedback parameter format is obtained by the first service system querying a shared database.
6. A data exchange system, the system comprising: sharing a database and at least two business systems;
wherein, the shared database registers data exchange rules defined by at least two business systems respectively; the data exchange rule comprises a query parameter format;
the second service system is used for acquiring a first data exchange rule defined by a first service system in the shared database, packaging a first parameter to be queried based on a first query parameter format in the first data exchange rule to obtain a first query request, and sending the first query request to the first service system; receiving first feedback data sent by the first service system based on the first parameter to be queried;
the first service system is used for receiving the first query request sent by the second service system, analyzing the first query request based on the first query parameter format to obtain the first parameter to be queried, and sending the first feedback data corresponding to the first parameter to be queried to the second service system;
the second service system is further configured to:
receiving a second query request sent by the first service system based on a second query parameter format, and analyzing the second query request based on the second query parameter format to obtain a second parameter to be queried; the second query parameter format is obtained by querying the shared database by the first service system;
sending second feedback data corresponding to the second parameter to be queried to the first service system;
the second service system is further configured to:
acquiring locally stored second query service data corresponding to the second parameter to be queried, and querying the first data exchange rule corresponding to the first service system in the shared database; wherein the first data exchange rule includes a first feedback parameter format;
packaging the second query service data based on the first feedback parameter format to obtain the second feedback data, so that the first service system analyzes the second feedback data based on the first feedback parameter format to obtain the second query service data;
wherein the second query parameter format is a query parameter format in a second data exchange rule registered in the shared database by a second service system.
7. An electronic device, the electronic device comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the data exchange method of any of claims 1-5.
8. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the data exchange method of any of claims 1-5.
CN202011297551.0A 2020-11-18 2020-11-18 Data exchange method, system, equipment and storage medium Active CN112417016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011297551.0A CN112417016B (en) 2020-11-18 2020-11-18 Data exchange method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011297551.0A CN112417016B (en) 2020-11-18 2020-11-18 Data exchange method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112417016A CN112417016A (en) 2021-02-26
CN112417016B true CN112417016B (en) 2024-03-22

Family

ID=74774394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011297551.0A Active CN112417016B (en) 2020-11-18 2020-11-18 Data exchange method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112417016B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468893B (en) * 2021-06-29 2023-09-15 袁敬 Semantic-based sharing collaboration method and device
CN115292356B (en) * 2022-07-21 2023-06-16 中电金信软件有限公司 Data query method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572939A (en) * 2014-12-30 2015-04-29 北京锐安科技有限公司 Data inquiry method for intra-industry heterogeneous data exchange
CN105224594A (en) * 2015-08-26 2016-01-06 北京锐安科技有限公司 A kind of Service-oriented application data interconnection inquiry system and querying method
CN110489440A (en) * 2019-07-29 2019-11-22 腾讯科技(深圳)有限公司 Data query method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572939A (en) * 2014-12-30 2015-04-29 北京锐安科技有限公司 Data inquiry method for intra-industry heterogeneous data exchange
CN105224594A (en) * 2015-08-26 2016-01-06 北京锐安科技有限公司 A kind of Service-oriented application data interconnection inquiry system and querying method
CN110489440A (en) * 2019-07-29 2019-11-22 腾讯科技(深圳)有限公司 Data query method and apparatus

Also Published As

Publication number Publication date
CN112417016A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
WO2021189954A1 (en) Log data processing method and apparatus, computer device, and storage medium
CN109274773B (en) Method, device and system for realizing remote service calling
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN112417016B (en) Data exchange method, system, equipment and storage medium
CN114528044B (en) Interface calling method, device, equipment and medium
CN109343975B (en) Method and apparatus for inter-page asynchronous communication
US20120179840A1 (en) System and method for distributed content transformation
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN112507005A (en) Method and device for processing message
CN114513552B (en) Data processing method, device, equipment and storage medium
CN111913922B (en) Binary structured log generation method, device, equipment and storage medium
CN111427899A (en) Method, device, equipment and computer readable medium for storing file
CN114153703A (en) Micro-service exception positioning method and device, electronic equipment and program product
CN113010542A (en) Service data processing method and device, computer equipment and storage medium
CN113760562A (en) Link tracking method, device, system, server and storage medium
CN112948138A (en) Method and device for processing message
CN112416875B (en) Log management method, device, computer equipment and storage medium
CN112433752B (en) Page analysis method, device, medium and electronic equipment
US20130097622A1 (en) Framework for system communication for handling data
CN114513553A (en) Data processing method and device, electronic equipment and storage medium
CN113992641A (en) Data processing method, device, equipment and storage medium
CN113779018A (en) Data processing method and device
CN111090485B (en) Multi-cluster-oriented help data processing method and device, medium and equipment
CN113824696B (en) Portal authentication method and device
US9762644B2 (en) Sending and requesting feed

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