Document exchange method and device, medium and equipment

By creating standard XML templates and filling in document data, the problem of inconvenient exchanges caused by differences in document formats in different business systems is solved. Extensible markup language is used to standardize document data, achieving seamless document data exchange and processing, and improving the convenience of exchange. and efficiency.

CN118607477APending Publication Date: 2024-09-06INSPUR GENERSOFT CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410187589.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Differences in document formats in different business systems lead to inconvenience in document exchange and processing, making it difficult to achieve seamless data exchange and processing.

Method used

Created using standard XML templates, the document data is filled in and sent to the target system. The target system converts the data format for processing and uses extensible markup language to standardize the document data.

Benefits of technology

It achieves seamless exchange and processing of document data between different business systems, ensures data format consistency, facilitates processing by each system, and improves the convenience and efficiency of document exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607477A
    Figure CN118607477A
Patent Text Reader

Abstract

The invention provides a receipt exchange method and device, a medium and equipment. The method comprises the following steps: creating a standard XML template; wherein the standard XML template comprises a plurality of receipt elements which need to be exchanged; filling the document element values on the document data in the first business system into the corresponding document elements in the standard XML template to obtain document XML data; and sending the document XML data to a second service system to enable the second service system to convert the document XML data into a data format which can be processed by the second service system, and processing the data after format conversion. According to the embodiment of the invention, the document data are standardized by using the extensible markup language, and then the document XML data are sent to other business systems, so that other business systems can conveniently convert the document XML data into data formats which can be processed by themselves, and even if different business systems have different document formats, the document XML data can be processed after being exchanged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a document exchange method, device, medium and equipment. Background Art

[0002] In modern software development, document exchange and processing is an important link. Various industries, such as e-commerce, logistics management, finance, etc., all require document exchange and processing. However, since different business systems have different document formats, it is inconvenient to process the documents after exchange. Summary of the invention

[0003] In order to solve at least one of the above technical problems, an embodiment of the present invention provides a document exchange method, device, medium, and equipment.

[0004] According to a first aspect, an embodiment of the present invention provides a document exchange method, comprising:

[0005] Creating a standard XML template; wherein the standard XML template includes multiple document elements that need to be exchanged, and the initial values ​​of the multiple document elements in the standard XML template are empty;

[0006] Filling the document element values ​​on the document data in the first business system into the corresponding document elements in the standard XML template to obtain document XML data;

[0007] The document XML data is sent to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that can be processed by the second business system, and processes the data after the format conversion.

[0008] According to a second aspect, an embodiment of the present invention provides a document exchange device, including:

[0009] A template creation module, used for creating a standard XML template; wherein the standard XML template includes a plurality of document elements that need to be exchanged, and the initial values ​​of the plurality of document elements in the standard XML template are empty;

[0010] A template filling module, used to fill the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain document XML data;

[0011] The data sending module is used to send the document XML data to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that the second business system can process, and processes the data after the format conversion.

[0012] According to a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method provided in the first aspect.

[0013] According to a fourth aspect, an embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method provided in the first aspect is implemented.

[0014] The document exchange method, apparatus, medium, and device provided in the embodiment of the present invention create a standard XML template, and then fill the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain document XML data, and then send the document XML data to the second business system. The second business system can then convert the document XML data into a data format that the second business system can handle, and process the data after the format conversion. It can be seen that the embodiment of the present invention standardizes the document data by using extensible markup language, and then sends the document XML data to other business systems, so that other business systems can convert the document XML data into a data format that they can handle. Therefore, even if different business systems have different document formats, they can still be processed after the exchange. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of a process of exchanging documents according to an embodiment of the present invention;

[0016] Figure 2 It is a structural block diagram of a document exchange device in one embodiment of the present invention. DETAILED DESCRIPTION

[0017] In a first aspect, an embodiment of the present invention provides a document exchange method, which is executed by a first business system, see Figure 1 The method comprises the following steps S110 to S130:

[0018] S110, creating a standard XML template; wherein the standard XML template includes multiple document elements that need to be exchanged, and the initial values ​​of the multiple document elements in the standard XML template are empty;

[0019] Among them, XML refers to Extensible Markup Language.

[0020] That is to say, first create a standard XML template with multiple document elements. These document elements are elements of documents that need to be exchanged from the current first business system to other business systems. The so-called elements refer to items on the document, not specific values.

[0021] Specifically, a standard XML template can be created according to business requirements, so developers need to have a deep understanding of business requirements and data exchange specifications, and then create a standard XML template that meets the specifications.

[0022] S120, filling the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain document XML data;

[0023] That is, the document element values ​​on the document data in the first business system are filled into the corresponding document elements in the standard XML template, that is, the document elements on the standard XML template are assigned values, thereby obtaining the corresponding document XML data.

[0024] In one embodiment, S120 may include:

[0025] According to the document element in the standard XML template, extracting the corresponding document element value from the document data in the first business system;

[0026] The document element value is filled into the corresponding document element in the standard XML template to obtain document XML data.

[0027] That is, firstly, the document element values ​​are extracted from the document data in the first business system according to each document element included in the standard XML template, and the extracted document element values ​​are assigned to the corresponding document elements in the standard XML template, thereby obtaining the document XML data.

[0028] In one embodiment, extracting the corresponding document element value from the document data in the first business system may include: extracting the corresponding document element value from the document data in the first business system using an automatic mapping algorithm.

[0029] Among them, the automatic mapping algorithm requires developers to write the corresponding algorithm program in advance.

[0030] Of course, in addition to the automatic mapping algorithm, developers can also manually extract the document element values ​​on the document data in the first business system.

[0031] Specifically, in one embodiment, extracting the corresponding document element value from the document data in the first business system may include:

[0032] A data extraction page is provided for displaying all document element values ​​of the document data in the first business system, so that personnel can manually extract the document element values ​​corresponding to the document elements in the standard XML template from the document data in the first business system in the data extraction page.

[0033] That is, the user can manually extract the document element value corresponding to the document element in the standard XML template on the data extraction page.

[0034] S130. Send the document XML data to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that can be processed by the second business system, and processes the data after the format conversion.

[0035] That is to say, the document XML data of the first business system is sent to the second business system. When the second business system receives the document XML data of the first business system, it can convert the document XML data into a data format that the second business system can process, and then process the data after format conversion, thereby realizing the exchange and processing of document data.

[0036] In one embodiment, sending the document XML data to the second business system may include: sending the document XML data to the second business system through a preset communication protocol interface.

[0037] Of course, document XML data from other business systems can also be received through a preset communication protocol interface.

[0038] That is, the generated document XML data is sent to other business systems that need to receive it through the Internet or other communication methods, and the document XML data from other business systems can also be received at the same time.

[0039] In one embodiment, the method provided by the embodiment of the present invention may further include:

[0040] When the document XML data sent by the third business system is received, the document XML data is parsed to obtain a data format that can be processed by the first business system, and the data after the format conversion is processed.

[0041] That is, when the first business system receives document XML data from the third business system, it can parse the document XML data, obtain data in a format that can be processed by the first business system after parsing, and then process the data in this data format.

[0042] The parsing of the document XML data may include: parsing the document XML data using an XML parsing tool or a parsing library provided by a programming language.

[0043] Among them, the business system's processing of the document data after format conversion may include verification, calculation, etc.

[0044] Taking logistics management as an example, suppose a delivery note needs to be sent from one logistics management system to another. First, create a standard XML template based on the format of the delivery note. Then, we fill the document element values ​​in the delivery note into the standard XML template to generate document XML data. Then, send the document XML data to another logistics management system via the Internet. After receiving the document XML data, the other logistics management system parses the document XML data, converts it into a data format that can be processed by the local business, and processes the delivery note.

[0045] It can be seen that the embodiment of the present invention standardizes document data by using extensible markup language, and then sends the document XML data to other business systems, so that other business systems can convert the document XML data into a data format that they can process. Therefore, even if different business systems have different document formats, they can be processed after exchange, and will not cause inconvenience in document processing.

[0046] In a second aspect, an embodiment of the present invention provides a document exchange device, which is deployed in a first business system, see Figure 2 , the device comprises:

[0047] A template creation module, used for creating a standard XML template; wherein the standard XML template includes a plurality of document elements that need to be exchanged, and the initial values ​​of the plurality of document elements in the standard XML template are empty;

[0048] A template filling module, used to fill the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain document XML data;

[0049] The data sending module is used to send the document XML data to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that the second business system can process, and processes the data after the format conversion.

[0050] In one embodiment, the template filling module includes:

[0051] A data extraction unit, configured to extract corresponding document element values ​​from the document data in the first business system according to the document elements in the standard XML template;

[0052] The data filling unit is used to fill the document element value into the corresponding document element in the standard XML template to obtain document XML data.

[0053] In one embodiment, the data extraction unit is specifically used to extract corresponding document element values ​​from the document data in the first business system using an automatic mapping algorithm.

[0054] In one embodiment, the data extraction unit is specifically used to: provide a data extraction page for displaying all document element values ​​of the document data in the first business system, so that personnel can manually extract the document element values ​​corresponding to the document elements in the standard XML template from the document data in the first business system in the data extraction page.

[0055] In one embodiment, the device provided by the embodiment of the present invention further includes:

[0056] The data parsing module is used to parse the document XML data when receiving the document XML data sent by the third business system, obtain the data format that can be processed by the first business system, and process the data after the format conversion.

[0057] In one embodiment, the data parsing module is specifically used to parse the document XML data using an XML parsing tool or a parsing library provided by a programming language.

[0058] In one embodiment, the data sending module is specifically used to send the document XML data to the second business system through a preset communication protocol interface.

[0059] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.

[0060] In a third aspect, an embodiment of the present invention provides a computer-readable medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the method provided in the first aspect.

[0061] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.

[0062] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0063] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0064] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0065] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0066] It is understandable that the explanation, specific implementation methods, beneficial effects, examples, etc. of the relevant contents in the computer-readable medium provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.

[0067] In a fourth aspect, an embodiment of the present specification provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method in any embodiment of the specification.

[0068] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the computing device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.

[0069] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0070] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0071] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.

Claims

1. A document exchange method, characterized in that: The method is performed by a first business system, and includes: Creating a standard XML template; wherein the standard XML template includes a plurality of document elements that need to be exchanged, and the initial values ​​of the plurality of document elements in the standard XML template are empty; Filling the document element values ​​on the document data in the first business system into the corresponding document elements in the standard XML template to obtain document XML data; The document XML data is sent to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that can be processed by the second business system, and processes the data after the format conversion.

2. The method according to claim 1, characterized in that: The step of filling the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain the document XML data includes: According to the document element in the standard XML template, extracting the corresponding document element value from the document data in the first business system; The document element value is filled into the corresponding document element in the standard XML template to obtain document XML data.

3. The method according to claim 2, characterized in that The extracting corresponding document element values ​​from the document data in the first business system includes: An automatic mapping algorithm is used to extract corresponding document element values ​​from the document data in the first business system.

4. The method according to claim 2, characterized in that: The extracting corresponding document element values ​​from the document data in the first business system includes: A data extraction page is provided for displaying all document element values ​​of the document data in the first business system, so that personnel can manually extract the document element values ​​corresponding to the document elements in the standard XML template from the document data in the first business system in the data extraction page.

5. The method according to claim 1, characterized in that Also includes: When the document XML data sent by the third business system is received, the document XML data is parsed to obtain a data format that can be processed by the first business system, and the data after the format conversion is processed.

6. The method according to claim 5, characterized in that The parsing of the document XML data includes: The document XML data is parsed using an XML parsing tool or a parsing library provided by a programming language.

7. The method according to claim 1, characterized in that The sending of the document XML data to the second business system includes: The document XML data is sent to the second business system through a preset communication protocol interface.

8. A document exchange device, characterized in that: The device is deployed on a first service system, and includes: A template creation module, used for creating a standard XML template; wherein the standard XML template includes a plurality of document elements that need to be exchanged, and the initial values ​​of the plurality of document elements in the standard XML template are empty; A template filling module, used to fill the document element value on the document data in the first business system into the corresponding document element in the standard XML template to obtain document XML data; The data sending module is used to send the document XML data to the second business system to realize the exchange of documents; wherein, after receiving the document XML data, the second business system converts the document XML data into a data format that the second business system can process, and processes the data after the format conversion.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

10. A computing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • General data exchange system based on configurable label structure

    CN121579581A

  • A universal data exchange system based on a configurable tag structure

    CN121579581B