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

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

Info

Publication number
CN112417016A
CN112417016A CN202011297551.0A CN202011297551A CN112417016A CN 112417016 A CN112417016 A CN 112417016A CN 202011297551 A CN202011297551 A CN 202011297551A CN 112417016 A CN112417016 A CN 112417016A
Authority
CN
China
Prior art keywords
query
parameter
service system
service
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011297551.0A
Other languages
Chinese (zh)
Other versions
CN112417016B (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

Images

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 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. The embodiment of the invention stores the data exchange rule of each service system 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, the 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 different service systems.
In order to implement data sharing, the existing technical solution is mainly to use a shared storage unit to store data generated by all service systems, and the service systems access the storage unit to obtain required data. However, this method may cause additional hardware investment, and the same data may be stored in the service system and the storage unit at the same time, thereby wasting the storage resource.
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 the 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; the shared database is registered with at least one data exchange rule defined by each business 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, where the system includes: sharing a database and at least two business systems;
the shared database 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 is used for acquiring a first data exchange rule defined by a first service system in a 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, where the electronic device includes:
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 any of the data exchange methods referred to above.
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 configured 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, sends the query request generated based on the data exchange rules to the service systems, and receives the feedback data sent by the service systems, thereby solving the problem that the prior storage unit is adopted to store and query the service data, enabling the service systems to complete data exchange, improving the utilization rate of storage resources in the service systems 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 a 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 present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a data exchange method according to an embodiment of the present invention, where the present embodiment is applicable to a case where data exchange is performed between service systems, and the method may be executed by a data exchange system, where the system may be implemented in a software and/or hardware manner. The method specifically comprises the following steps:
s110, a first data exchange rule corresponding to the first service system in the shared database is obtained.
Specifically, a database is a warehouse that organizes, stores, and manages data according to a data structure, and is an organized, sharable, and identically managed collection of a large amount of data. The type of the shared database may be, for example, a relational database or a non-relational database, and specifically, the shared database may be an Oracle database or a MySQL database in the relational database, or the shared database may also be a key value storage database, a column storage database, a document oriented database, or a graph 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 business system is registered in the shared database, and the first data exchange rule includes a first query parameter format.
In an exemplary embodiment, the service system is an operation system oriented to service informatization, and is a service-oriented technical platform. The specific service capability corresponding to the service system is not limited herein. In this embodiment, the data exchange rule includes a query parameter format, where, for example, 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 satisfying 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. Illustratively, the first query parameter format includes, but is not limited to, xml (eXtensible Markup Language) format, json (JavaScript Object Notation) format, or yaml (Yet antenna Markup Language) format. The xml format is a markup language for marking electronic files to have structuredness, and the json format is a lightweight text data exchange format, adopts a text format completely independent of the language, and is easy to analyze and generate. The yaml format is a format with high readability for expressing the serialization of data.
In an embodiment, optionally, the shared database further registers 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 query parameter set which is successfully matched 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 business system, and exemplarily, the first parameter to be queried includes parameters such as "number of participants" and "race time". Specifically, 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. Illustratively, when the first parameter to be queried includes at least one parameter to be queried, if each parameter to be queried matches with a query parameter in the query parameter set, if the first parameter to be queried includes "data 1", "data 2", and "data 3", and the query parameter set a defined by the service system a includes "data 1", "data 2", and "data 3", then the service system a is taken as the first service system.
S120, based on the first query parameter format, the first to-be-queried 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 to obtain the first to-be-queried parameter based on the first query parameter format.
Specifically, the first query request is sent to a query service interface provided by the first service system, and 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, the sending the first query request to the first service system includes: the first query request is sent to the first business system based on the service interface address and the data transfer protocol.
Specifically, the service interface Address is used to represent an Address of an inquiry service interface that receives the first inquiry request, and the service interface Address may be, for example, a url (Uniform Resource Locator), an ip Address (Internet Protocol Address), or a domain name Address. Exemplary data Transfer protocols include, but are not limited to, Telnet Protocol, FTP Protocol, HTTP Protocol, or HTTPs Protocol.
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 the first feedback data generated based on the first query parameter to the first service system, so as to implement data exchange between the first service system and the service system.
On the basis of the foregoing embodiment, optionally, the method further includes: and registering a network service description language description file for defining a query service interface in the shared database, wherein the network 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, optionally, the query Service interface is a Web Service interface. The Web Service technology can realize data exchange between Service systems without additional or special third-party software or hardware. The Web Service Description Language (WSDL) is a Language based on xml format issued by Web Service, and is used for describing Web Service and its functions, parameters and return values. Specifically, the data exchange rule in the WSDL file includes a Simple Object Access Protocol (SOAP Protocol), where the SOAP Protocol is used to describe an xml format of a transfer message, and the SOAP Protocol may be used in combination with an existing data transmission Protocol. Specifically, the data exchange rule in the WSDL file includes a url-type service interface address.
According to the technical scheme of the embodiment, the shared database stores the data exchange rules defined by each service system, the query request generated based on the data exchange rules is sent to the service systems, and the feedback data sent by the service systems is received, so that the problem that the query service data are stored by adopting a 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 systems 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 the present embodiment is further detailed based on the foregoing embodiment. Optionally, after receiving 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 to obtain first query service data based on a second feedback parameter format defined by a second service system; the first feedback data is obtained by the first service system by packaging first query service data obtained based on a first parameter to be queried based on the second feedback parameter format, and the second feedback parameter format is obtained by the first service system by querying a shared database.
The specific implementation steps of this embodiment include:
s210, a first data exchange rule corresponding to the first service system in the shared database is obtained.
S220, based on the first query parameter format, the first to-be-queried 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 to obtain the first to-be-queried parameter based on the first query parameter format.
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 to obtain first query service data based on a second feedback parameter format defined by the second service system.
Illustratively, the feedback parameter format is used for characterizing the parameter format requirement corresponding to the business system. Specifically, each service system has its own corresponding parameter format requirement, and only data satisfying 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 xml format.
In this embodiment, the first feedback data is obtained by the first service system by encapsulating the first query service data obtained based on the first parameter to be queried based on the second feedback parameter format, and the second feedback parameter format is obtained by the first service system by querying the shared database.
Specifically, the first service system acquires locally stored first query service data based on a first parameter to be queried, queries a second feedback parameter format corresponding to a second service system in the shared database based on the second service system sending the first query request, and encapsulates the acquired first query service data based on the second feedback parameter format to obtain first feedback data, so that the first feedback data can be identified and received by the second service system. Further, the second service system, that is, the service system that sends 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 foregoing embodiment, optionally, the method further includes: receiving a second query request sent by the first service system 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; the second query parameter format is obtained by the first service system through querying the shared database; and sending second feedback data corresponding to the second parameter to be inquired to the first service system.
Specifically, 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 foregoing embodiment, optionally, the method further includes: acquiring second query service data which are locally stored and correspond to a second parameter to be queried, and querying a first data exchange rule which corresponds to a first service system in a shared database; wherein the first data exchange rule comprises 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 serve as an inquired service system, and receive a second inquiry request sent by the first service system, thereby implementing 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 a second embodiment of the present invention. Specifically, the first Service system and the second Service system respectively release a Web Service interface by defining a WSDL file and a parameter format.
Taking the second service system as an execution subject as an example, on one hand, the second service system can be used as a data query service system to perform a data request on the first service system. Specifically, the second Service system packages the first parameter to be queried according to the 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 with the first Service system through the 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 a 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. And the second Service system receives the first feedback data through the Web Service interface in a polling way, 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 the inquired service system to receive the data request sent by the first service system. Specifically, the second Service system polls the first Service system through the Web Service interface for a second query request packaged based on the xml parameter format, analyzes the second query request based on the xml parameter format to obtain a second parameter to be queried, obtains second query Service data corresponding to the second parameter to be queried from the database, and packages 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 receives the second feedback data through the Web Service interface polling, and analyzes the second feedback data based on the xml parameter format to obtain the second query Service data.
According to the technical scheme of the embodiment, the problem that the service system cannot receive the feedback data is solved by defining the feedback parameter format of the service system in the shared database, so that the first service system sends the 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 can be completed between the service systems, the utilization rate of storage resources in the service system is improved, and the 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 applied to the case of data exchange between service systems, and the device can be implemented in a software and/or hardware manner. The data exchange system includes: a shared database 310 and at least two business systems;
the shared database 310 is registered with data exchange rules defined by at least two service systems; 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, package 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; 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 the first query request sent by the second service system 320, parse the first query request based on the 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 of the embodiment, the shared database stores the data exchange rules defined by each service system, the query request generated based on the data exchange rules is sent to the service systems, and the feedback data sent by the service systems is received, so that the problem that the query service data are stored by adopting a 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 systems is improved, and the hardware cost is reduced.
On the basis of the above technical solution, optionally, the shared database further registers a query parameter set defined by each service system, and correspondingly, the second service system 320 is specifically configured to:
and matching the first parameter to be queried with the query parameters in each query parameter set, taking the service system corresponding to the query parameter set successfully matched as the first service system 330, and acquiring a first data exchange rule corresponding to the first service system 330.
On the basis of the above technical solution, optionally, the second service system 320 is further configured to:
a web services description language description file for defining a query service interface is registered in the shared database 310, wherein the web services description language description file is used for describing a business system defined query parameter set and a data exchange rule.
On the basis of the foregoing technical solution, optionally, the first data exchange rule further includes a service interface address and a data transmission protocol for querying the service interface, 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.
On the basis of the above technical solution, optionally, the second service system 320 is further configured to:
analyzing the first feedback data to obtain first query service data based on a second feedback parameter format defined by the second service system 320; the first feedback data is obtained by the first service system 330 by encapsulating the first query service data obtained based on the first parameter to be queried based on the second feedback parameter format, and the second feedback parameter format is obtained by the first service system 330 by querying the shared database 310.
On the basis of 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 the first service system 330 by querying the shared database 310;
and sending the second feedback data corresponding to the second parameter to be queried to the first service system 330.
On the basis of the above technical solution, optionally, the second service system 320 is further configured to:
acquiring second query service data which are locally stored and correspond to the second parameter to be queried, and querying a first data exchange rule which corresponds to the first service system 330 in the shared database 310; wherein the first data exchange rule comprises a first feedback parameter format;
the second query service data is encapsulated 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 corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the data exchange system, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service 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 only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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 may 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 and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are 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, for example, in 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 of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a data exchange method provided by an embodiment of the present invention, by executing programs stored in the system memory 28.
Through the electronic equipment, the problem that the conventional storage unit is adopted to store and query the service data is solved, data exchange can be completed between service systems, the utilization rate of storage resources in the service systems is improved, and the hardware cost is reduced.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a data exchange method, and the method includes:
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 the first query parameter format, packaging the first to-be-queried parameter 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 to-be-queried parameter;
and receiving first feedback data sent by the first service system based on the first parameter to be queried.
Computer storage media for embodiments of the invention may employ 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the data exchange method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of data exchange, 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 business 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.
2. The method according to claim 1, wherein the shared database further registers a query parameter set defined by each service system, and accordingly, the obtaining a first data exchange rule corresponding to a first service system in the shared database includes:
and matching the first parameter to be queried with the query parameters in each query parameter set respectively, taking the service system corresponding to the query parameter set which is successfully matched as a first service system, and acquiring a first data exchange rule corresponding to the first service system.
3. The method of claim 2, further comprising:
registering a network service description language description file for defining a query service interface in a shared database, wherein the network service description language description file is used for describing a query parameter set and a data exchange rule defined by a business system.
4. The method of claim 1, wherein the first data exchange rule further comprises a service interface address and a data transmission protocol of a query service interface, and wherein the sending the first query request to the first traffic system comprises:
and sending the first query request to the first business system based on the service interface address and the data transmission protocol.
5. The method of claim 1, wherein after receiving 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 to obtain first query service data based on a second feedback parameter format defined by a second service system; the first feedback data is obtained by the first service system by packaging first query service data obtained based on a first parameter to be queried based on the second feedback parameter format, and the second feedback parameter format is obtained by the first service system by querying a shared database.
6. The method of claim 1, further comprising:
receiving a second query request sent by a 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 the first service system through querying a shared database;
and sending second feedback data corresponding to the second parameter to be inquired to the first service system.
7. The method of claim 6, further comprising:
acquiring second query service data which are locally stored and correspond to the second parameter to be queried, and querying a first data exchange rule which corresponds to the first service system in a shared database; wherein the first data exchange rule comprises 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 second query service data.
8. A data exchange system, characterized in that the system comprises: sharing a database and at least two business systems;
the shared database 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 is used for acquiring a first data exchange rule defined by a first service system in a 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.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data exchange method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the data exchange method of any one of claims 1-7 when executed by a computer processor.
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 true CN112417016A (en) 2021-02-26
CN112417016B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468893A (en) * 2021-06-29 2021-10-01 袁敬 Semantic-based sharing cooperation method, interoperation protocol cluster and electronic equipment
CN115292356A (en) * 2022-07-21 2022-11-04 中电金信软件有限公司 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

Cited By (3)

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

Also Published As

Publication number Publication date
CN112417016B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11290415B2 (en) Method and apparatus for unified message adaptation
US10447772B2 (en) Managed function execution for processing data streams in real time
WO2021189954A1 (en) Log data processing method and apparatus, computer device, and storage medium
CN109274773B (en) Method, device and system for realizing remote service calling
CN112417016B (en) Data exchange method, system, equipment and storage medium
US20120179840A1 (en) System and method for distributed content transformation
CN113076729B (en) Method and system for importing report, readable storage medium and electronic equipment
CN114528044B (en) Interface calling method, device, equipment and medium
CN109343975B (en) Method and apparatus for inter-page asynchronous communication
CN109062560B (en) Method and apparatus for generating information
CN112507005A (en) Method and device for processing message
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN111026931A (en) Data query method, device, equipment and medium
CN114153703A (en) Micro-service exception positioning method and device, electronic equipment and program product
CN112650804B (en) Big data access method, device, system and storage medium
CN113010542A (en) Service data processing method and device, computer equipment and storage medium
CN113760562A (en) Link tracking method, device, system, server and storage medium
CN116781586A (en) gRPC flow analysis method, device, equipment and medium
CN112948138A (en) Method and device for processing message
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
US20140101280A1 (en) Generic serializer framework
US20130097622A1 (en) Framework for system communication for handling data
CN113393288A (en) Order processing information generation method, device, equipment and computer readable medium
US9762644B2 (en) Sending and requesting feed
CN114844957B (en) Link message conversion method, device, equipment, storage medium and program product

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