Electronic data exchange method and system

Web page configuration information is obtained through the configuration management center to achieve seamless integration of OFTP protocol services and the Web system, solving the problem that the existing OFTP2 protocol software cannot be integrated with the Web system, improving the scalability and disaster tolerance of the system, and realizing Automatic synchronization and efficient log management.

CN112838935BActive Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201911154487.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-22
Publication Date
2024-09-20
Estimated Expiration
2039-11-22

AI Technical Summary

Technical Problem

Existing OFTP2 protocol software is mainly a desktop application and cannot be integrated with the Web system. As a result, the deployment server has special requirements for the graphical user interface. Single-machine deployment is susceptible to hardware and software problems, and the configurations of multiple servers are not automatically synchronized, increasing the system burden.

Method used

Obtain the configuration information of the Web page through the configuration management center, realize the seamless integration of OFTP protocol services and the Web system, support the Web page configuration of OFTP protocol information, use OFTP service instances to send and receive files, and improve it through the log system and load balancing System scalability and disaster tolerance.

Benefits of technology

It achieves seamless integration of OFTP protocol services and Web systems, automatically synchronizes configuration information, improves log collection efficiency and system monitoring and analysis capabilities, supports multiple internal transmission methods, enhances system flexibility and scalability, and uses load balancing Dispersing pressure improves the disaster tolerance of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112838935B
    Figure CN112838935B
Patent Text Reader

Abstract

The present invention discloses an electronic data exchange method and system, and relates to the field of computer technology. A specific implementation of the system includes: a configuration management center and an OFTP service instance; the configuration management center is used to obtain configuration information of a Web page and send the configuration information to the OFTP service instance; wherein the configuration information includes basic information of a target EDI system and OFTP protocol information; the OFTP service instance is used to receive a file sending request, wherein the file sending request includes basic information of a file to be sent and a target EDI system; and OFTP protocol information matching the basic information is obtained from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information. By obtaining the configuration information of the Web page, the system can send the file to be sent to the target EDI system based on the configuration information after receiving the file sending request, thereby realizing the seamless integration of the OFTP protocol service and the Web system, and supporting the Web page configuration of the OFTP protocol information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to an electronic data exchange method and system. Background Art

[0002] Electronic Data Interchange (EDI) refers to the transmission of standard economic information through a communication network in accordance with a set of universal standard formats, and the exchange and automatic processing of data between the electronic computer systems of trading partners. As an important way to transmit information between trading partners, EDI has the advantages of paperless, high efficiency, and timely information transmission.

[0003] As one of the EDI transmission methods, OFTP2 protocol is widely used in the automotive industry due to its security and breakpoint resuming advantages. It can be used for encrypted transmission of large files, such as CAD (Computer Aided Design) design files. However, there are relatively few software on the market that support OFTP2 protocol, and most of the software is a stand-alone version based on desktop applications. At present, most of the internal systems of Internet companies are developed based on the Web environment, and in order to prevent single point problems, such as server hardware problems, software problems, etc., cluster deployment is required.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] The desktop version of OFTP2 software has special requirements for the deployment server, requiring the operating system to have a graphical user interface and cannot be integrated with the company's existing Web system. Single-machine deployment will cause service interruptions due to server hardware, software and other issues; simply deploying multiple servers will increase the system burden, and the configuration of one server cannot be automatically synchronized to another server. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides an electronic data exchange method and system, which obtains the configuration information of a Web page, and after receiving a file sending request, can send the file to be sent to a target EDI system based on the configuration information, thereby realizing seamless integration of the OFTP protocol service and the Web system, and supporting the Web page configuration of the OFTP protocol information.

[0007] To achieve the above objective, according to one aspect of an embodiment of the present invention, an electronic data exchange system is provided.

[0008] An electronic data exchange system according to an embodiment of the present invention comprises: a configuration management center and an OFTP service instance; the configuration management center is used to obtain configuration information of a Web page and send the configuration information to the OFTP service instance; wherein the configuration information comprises basic information of a target EDI system and OFTP protocol information; the OFTP service instance is used to receive a file sending request, wherein the file sending request comprises basic information of a file to be sent and the target EDI system; and the OFTP protocol information matching the basic information is obtained from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information.

[0009] Optionally, the configuration management center includes: a Web management terminal and a configuration center; the Web management terminal is used to obtain current configuration information from the configuration center and display it on the Web page; obtain updated configuration information in the Web page, and send the updated configuration information to the configuration center; the configuration center is used to store the updated configuration information and send the updated configuration information to the OFTP service instance.

[0010] Optionally, the system also includes: a log system; the log system is used to receive log information from the OFTP service instance through a message queue, and send the log information to a full-text retrieval engine; the OFTP service instance is also used to collect log information and send the log information to the log system; the Web management terminal is also used to obtain the log information from the full-text retrieval engine to display it on the Web page.

[0011] Optionally, the OFTP service instance is further used to: collect the running status information of the OFTP service instance, record the task detail information of the file transfer, and store the running status information and the task detail information in a database; the Web management terminal is further used to: obtain the running status information and the task detail information from the database to display them on the Web page.

[0012] Optionally, the OFTP service instance receives the file sending request by one or more of scanning the file system at regular intervals, acquiring through a message queue, acquiring through a remote procedure call, and acquiring through a Web service.

[0013] Optionally, the OFTP service instance is further used to manage the certificate information of the OFTP service instance and the certificate information of the target EDI system, so as to send a prompt message when the corresponding certificate expires.

[0014] Optionally, the electronic data interchange system includes a plurality of the OFTP service instances, and the plurality of the OFTP service instances are deployed in at least one server, and the at least one server constitutes an OFTP service cluster.

[0015] Optionally, the system further comprises: a multi-level load balancing device; the load balancing device is used to use a domain name server to bind at least one virtual IP cluster, and use the virtual IP cluster to bind at least one OFTP service instance of the server.

[0016] Optionally, the OFTP service instance is further used to: listen to a set port set to receive a file reception request from the port set, wherein the file reception request includes a message to be received and basic information of the target EDI system; obtain OFTP protocol information matching the basic information from the configuration information to send the message to be received according to the OFTP protocol information.

[0017] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic data exchange system is provided.

[0018] An electronic data exchange system according to an embodiment of the present invention comprises: a configuration management center and an OFTP service instance; the configuration management center is used to obtain configuration information of a Web page and send the configuration information to the OFTP service instance; wherein the configuration information comprises basic information of a target EDI system and OFTP protocol information; the OFTP service instance is used to monitor a set port set to receive a file receiving request from the port set, wherein the file receiving request comprises a message to be received and basic information of the target EDI system; and the OFTP protocol information matching the basic information is obtained from the configuration information to send the message to be received according to the OFTP protocol information.

[0019] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic data exchange method is provided.

[0020] An electronic data exchange method according to an embodiment of the present invention comprises: obtaining configuration information, wherein the configuration information comprises basic information of a target EDI system and OFTP protocol information; receiving a file sending request, wherein the file sending request comprises basic information of a file to be sent and the target EDI system; and obtaining OFTP protocol information matching the basic information from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information.

[0021] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic data exchange method is provided.

[0022] An electronic data exchange method according to an embodiment of the present invention comprises: obtaining configuration information, wherein the configuration information comprises basic information of a target EDI system and OFTP protocol information; monitoring a set port set to receive a file receiving request from the port set, wherein the file receiving request comprises a message to be received and the basic information of the target EDI system; and obtaining OFTP protocol information matching the basic information from the configuration information to send the message to be received according to the OFTP protocol information.

[0023] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0024] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an electronic data exchange method according to an embodiment of the present invention.

[0025] To achieve the above objective, according to another aspect of the embodiments of the present invention, a computer readable medium is provided.

[0026] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, an electronic data exchange method according to an embodiment of the present invention is implemented.

[0027] An embodiment of the above invention has the following advantages or beneficial effects: by acquiring the configuration information of the Web page, after receiving the file sending request, the file to be sent can be sent to the target EDI system based on the configuration information, thereby realizing the seamless integration of the OFTP protocol service and the Web system, and supporting the Web page configuration of the OFTP protocol information; the Web management terminal sends the updated configuration information to the configuration center, which is pushed to the OFTP service instance by the configuration center, thereby realizing the automatic synchronization of the configuration information; the log collector, message queue, and full-text search engine of the OFTP service instance itself are used to realize the log collection of the OFTP service instance, thereby improving the log collection efficiency and greatly facilitating the query and analysis of the log information; the operation status information and task details information are collected, so that the Web management terminal can obtain and display them, and the user can monitor and analyze them; the core functions of the OFTP service instance are divided, thereby increasing the flexibility and scalability of the system, and supporting multiple internal transmission modes; supporting the deployment of OFTP service clusters; adopting a three-layer load balancing solution to disperse the pressure of each OFTP service instance, while improving the disaster tolerance of the cluster.

[0028] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0030] Figure 1 is a schematic diagram of main modules of an electronic data exchange system according to an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of the overall architecture of an electronic data exchange system according to an embodiment of the present invention;

[0032] Figure 3 is a schematic diagram of main modules of an OFTP service instance of an electronic data interchange system according to an embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of the main flow of an embodiment of an electronic data exchange method according to an embodiment of the present invention;

[0034] Figure 5 is a main flow chart of another embodiment of the electronic data exchange method according to the embodiment of the present invention;

[0035] Figure 6 is a timing diagram of cluster configuration synchronization according to the electronic data exchange method of an embodiment of the present invention;

[0036] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0037] Figure 8 It is a schematic diagram of the structure of a computer device suitable for implementing the electronic device of the embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0039] The technical terms involved in the embodiments of the present invention are explained below.

[0040] OFTP: Odette File Transfer Protocol. It is a transmission protocol proposed by the Odette organization for transmitting EDI messages.

[0041] OFTP2: is the abbreviation of Odette File Transfer Protocol 2. It makes up for the security deficiencies of OFTP, implements certificate-based session encryption, file signatures, encryption, signature confirmation and other security mechanisms, and supports breakpoint resume and other functions, which is suitable for the secure transmission of large files.

[0042] DNS: Domain Name System. Domain names are a way of identifying sites for easy memorization. Network transmission still relies on IP addresses. DNS is used to resolve domain names into specific IP addresses.

[0043] VIP: Virtual IP Address is a technology that enhances network management and can reasonably allocate network resources and balance network load.

[0044] Nginx: is a high-performance HTTP and reverse proxy server.

[0045] Figure 1 FIG. 1 is a schematic diagram of the main modules of the electronic data exchange system according to an embodiment of the present invention. Figure 1 As shown, the electronic data exchange system of the embodiment of the present invention mainly includes:

[0046] The configuration management center 101 is used to obtain the configuration information of the Web page and send the configuration information to the OFTP service instance. The user fills in the configuration information through the Web page, and the configuration management center obtains the configuration information and pushes the configuration information to each OFTP service instance. Among them, the configuration information includes the basic information of the target EDI system and the OFTP protocol information. The basic information of the target EDI system, such as the identification (ID) of the target EDI system. The OFTP protocol information may include the protocol ID, certificate information, the server address and port of the target EDI system, etc. The certificate information here is used to encrypt and sign the transmission file.

[0047] The OFTP service instance 102 is used to receive a file sending request, obtain OFTP protocol information matching the basic information from the configuration information, and send the file to be sent to the target EDI system according to the OFTP protocol information. The OFTP service instance receives a file sending request from an external source, and the file sending request includes basic information (such as ID) of the file to be sent and the target EDI system. Then, the OFTP service instance obtains the corresponding OFTP protocol information from the configuration information according to the ID of the target EDI system, and sends the file to be sent to the target EDI system according to the instruction of the OFTP protocol information.

[0048] In the above embodiment, the OFTP service instance 102 only implements the function of sending files, and does not implement the function of receiving files. In a preferred embodiment, the electronic data exchange system of the present invention can also only implement the function of receiving files. In this case, the functions implemented by the configuration management center 101 remain unchanged, and the functions implemented by the OFTP service instance 102 are as follows:

[0049] The set port set is monitored to receive a file receiving request from the port set; the OFTP protocol information matching the basic information is obtained from the configuration information to send the message to be received according to the OFTP protocol information. The port set stores the IP address and port of the target EDI system with which the electronic data interchange system can exchange information. The target EDI system sends a file receiving request to the OFTP service instance, and the file receiving request includes the message to be received and the basic information of the target EDI system (such as ID). After that, the OFTP service instance obtains the corresponding OFTP protocol information from the configuration information according to the ID of the target EDI system, and sends the message to be received to the outside according to the instruction of the OFTP protocol information.

[0050] Figure 2 Schematic diagram of the overall architecture of the electronic data exchange system according to an embodiment of the present invention. Figure 2 As shown, the electronic data exchange system of the embodiment of the present invention mainly includes: a Web management terminal, an OFTP service cluster, a configuration center, a log system and a load balancing device. Among them, the configuration management center 101 includes a Web management terminal and a configuration center. Multiple OFTP service instances are deployed in at least one server, and at least one server constitutes an OFTP service cluster. In this embodiment, the OFTP service instance refers to a service instance using the OFTP series of transmission protocols. The above modules are further described below.

[0051] The Web management terminal is the control entrance of the entire electronic data interchange system and can realize the following functions:

[0052] (1) Obtain the running status information and task details of the entire OFTP service cluster from the database and display them on the web page. The OFTP service instance collects its own running status information and stores it in the database; it records the task details of the file transfer and stores them in the database. The web management end queries and obtains the above information through the RPC (Remote Procedure Call Protocol) interface and displays it.

[0053] Users can monitor the operation status of the entire OFTP service cluster by viewing the Web page, including the load of each cluster, disk utilization, network IO, etc. They can also view the task details of file transfers through the OFTP service instance, including file content, transfer status, target EDI system information, server information responsible for processing this task (such as IP address), whether a receipt is received, etc.

[0054] (2) Obtain log information from the full-text search engine of the log system and display it on the web page. The OFTP service instance collects log information and sends it to the log system. The log system logs information through the message queue and stores it in the full-text search engine. The web management end queries the full-text search engine, obtains log information, and displays it.

[0055] Users can directly view the log information of each OFTP service instance in the OFTP service cluster. When an exception occurs in file transfer and the problem cannot be confirmed based on the task details, the log information in the full-text search engine can be queried through the Web management terminal.

[0056] (3) Provide a web page for filling in configuration information and initiate connectivity testing to the server in the target EDI system. The web management terminal is equipped with a configuration center client. After the user fills in the configuration information on the web page, the configuration information will be pushed to the configuration center through the configuration center client and then pushed to all OFTP service instances by the configuration center.

[0057] The OFTP service cluster is the core part of providing OFTP services. In order to support remote disaster recovery, the OFTP service instance can be deployed as multiple clusters. It is understandable that Figure 2 The two OFTP service clusters (OFTP service cluster A and OFTP service cluster B) are only used as examples to represent multi-cluster deployment. At the same time, the OFTP service instances within each OFTP service cluster also support horizontal expansion. When the processing capacity of the existing OFTP service cluster is insufficient, it can be solved by adding OFTP service instances.

[0058] Figure 3 Schematic diagram of the main modules of the OFTP service example of the electronic data exchange system according to the embodiment of the present invention. Figure 3 As shown, the OFTP service instance of the embodiment of the present invention mainly includes: an OFTP sender, an OFTP receiver, an access layer, a forwarding layer, a certificate management module, a monitor, a cluster configuration synchronization module and a log collector. The above modules are further described below.

[0059] The OFTP sender is used to receive the file sending request from the access layer, parse the file sending request to obtain the file to be sent and the target EDI system ID; based on the target EDI system ID, obtain the corresponding OFTP protocol information from the configuration information, such as the OFTP protocol ID, the IP address and port of the target EDI system, and the encryption signature certificate; send the file to be sent to the target EDI system according to the OFTP protocol information, and record the relevant log information generated by the transmission. The log information records the transmission status, the processing results of each stage and the corresponding time, abnormal information, etc.

[0060] The OFTP receiver is used to monitor one or several ports. After receiving the file receiving request from the monitored port, it parses the file receiving request to obtain the file to be received and the target EDI system ID; based on the target EDI system ID, it obtains the corresponding OFTP protocol information from the configuration information; and then passes the message to be received and the OFTP protocol information to the forwarding layer. The OFTP protocol information mainly includes: certificate, encryption, signature, OFTP protocol ID, target EDI system IP and port, etc.

[0061] The access layer is used to support different file transfer methods within the enterprise, such as timed scanning of the file system, acquisition through message queues, acquisition through remote procedure calls, etc. The access layer can also support other extensions, such as Webservice (Web service), etc. After receiving the file sending request, the access layer forwards it to the OFTP sender. The file sending request contains the file to be sent and the target EDI system ID.

[0062] The forwarding layer receives messages from the OFTP receiver and transmits the received files to be received through the corresponding internal file transfer method of the enterprise according to the OFTP protocol information. The forwarding layer can also support extension. The file transfer method here is the same as the file transfer method of the access layer.

[0063] The certificate management module is used to manage the certificate information of the OFTP service instance itself and the certificate information of the target EDI system, and supports certificate expiration reminders.

[0064] The monitor is used to monitor the running status of the OFTP service instance and store the running status information in the database.

[0065] The cluster configuration synchronization module is used to enable the OFTP service instance to obtain the latest OFTP protocol information, log collection method and other configurations from the configuration center. It supports the configuration center to push configuration information to the OFTP service instance, and also supports the OFTP service instance to actively pull configuration information from the configuration center. When the OFTP service instance is started, it is necessary to pull data from the configuration center. When the user modifies the configuration information through the Web management terminal and pushes it to the configuration center, the configuration center will actively push the updated configuration information to the OFTP service instance.

[0066] The log collector is used to collect log information of the OFTP service instance and send it to the log processing system.

[0067] The OFTP service instance of the embodiment of the invention divides its core functions into an access layer, a forwarding layer, an OFTP sender, and an OFTP receiver, thereby increasing the flexibility and scalability of the electronic data exchange system and supporting multiple internal transmission modes.

[0068] The configuration center is the main component of the electronic data exchange system to achieve cluster configuration synchronization. In order to avoid single point problems, the configuration center can be deployed in multiple instances (such as Figure 2 As long as one server survives, it can provide services to the outside world. The configuration center stores all the configuration information of the OFTP service cluster and supports the push / pull mode. The embodiment of the present invention uses the configuration center to realize the configuration synchronization of the OFTP service instance, supports the push / pull mode, and the multi-instance deployment avoids the single point problem, thereby ensuring the configuration consistency of the OFTP service cluster.

[0069] The log system is composed of a high-throughput message queue (such as Kafka) and a full-text search engine (such as ElasticSearch). After the log collector of the OFTP service instance collects log information, it is sent to the message queue and then stored in the full-text search engine. Users can query detailed log information in the full-text search engine through the Web management terminal. In the embodiment of the present invention, a log collector, a message queue, and a full-text search engine are used to realize the log collection of the OFTP service instance, which improves the log collection efficiency and greatly facilitates the query and analysis of log information.

[0070] The load balancing device includes a reverse proxy server (Nginx), a virtual IP (VIP) and a DNS server. The device implements load balancing through three levels. The electronic data interchange system provides services to the outside world through domain names and ports. The domain name is bound to one or more VIPs through a DNS server. This is the first level of load balancing, which is implemented by DNS domain name resolution.

[0071] Each OFTP service cluster can have one or more VIPs. Each VIP is bound to multiple OFTP service instances in the OFTP service cluster. This is the second layer of load balancing, which is implemented by the VIP.

[0072] Nginx and OFTP service instances are deployed on the same server. Each server can deploy multiple OFTP service instances. Nginx can use source address hashing and polling strategies to forward requests to different OFTP service instances on the same server. This is the third layer of load balancing, which is implemented by Nginx.

[0073] The load balancing device of the embodiment of the present invention adopts a three-layer load balancing solution of DNS-OFTP multi-cluster, VIP-different server OFTP multi-instance, Nginx-same server multi-instance to disperse the pressure of each OFTP service instance, thereby improving the disaster tolerance of the cluster. In a preferred embodiment, the OFTP service instance is implemented by the OFTP2 protocol to increase the security of file transmission in the electronic data exchange system.

[0074] Figure 4 FIG. 1 is a schematic diagram of the main flow of an embodiment of the electronic data exchange method according to an embodiment of the present invention. Figure 4 As shown, the electronic data exchange method of the embodiment of the present invention mainly includes the following steps:

[0075] Step S401: The configuration management center obtains the configuration information of the Web page and sends the configuration information to the OFTP service instance. The user fills in the configuration information through the Web page, and the configuration management center obtains the configuration information and pushes the configuration information to each OFTP service instance of the OFTP service cluster. Among them, the configuration information includes the basic information of the target EDI system and the OFTP protocol information. The basic information of the target EDI system, such as the ID of the target EDI system. The OFTP protocol information may include the protocol ID, certificate information, the server address and port of the target EDI system, etc. The certificate information here is used to encrypt and sign the transmission file.

[0076] Step S402: The OFTP service instance receives a file sending request from a terminal device. The OFTP service instance can obtain the file sending request from the terminal device by any method such as timed scanning of the file system, message queue, remote procedure call acquisition, Web service, etc. The file sending request includes the ID of the file to be sent and the target EDI system.

[0077] Step S403: The OFTP service instance obtains OFTP protocol information matching the basic information from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information. The OFTP service instance obtains the corresponding OFTP protocol information from the configuration information according to the ID of the target EDI system, and sends the file to be sent to the target EDI system according to the instruction of the OFTP protocol information.

[0078] Figure 5 FIG. 1 is a schematic diagram of the main flow chart of another embodiment of the electronic data exchange method according to an embodiment of the present invention. Figure 5 As shown, the electronic data exchange method of the embodiment of the present invention mainly includes the following steps:

[0079] Step S501: The configuration management center obtains the configuration information of the Web page and sends the configuration information to the OFTP service instance. The user fills in the configuration information through the Web page, and the configuration management center obtains the configuration information and pushes the configuration information to each OFTP service instance of the OFTP service cluster.

[0080] Step S502: The OFTP service instance monitors the set port set to receive a file receiving request from the port set. The OFTP service instance monitors the IP address and port of the target EDI system with which it can exchange information. The target EDI system sends a file receiving request to the OFTP service instance through these ports.

[0081] Step S503: The OFTP service instance obtains OFTP protocol information matching the basic information from the configuration information, so as to send the to-be-received message to the terminal device according to the OFTP protocol information. After receiving the file receiving request, the OFTP service instance obtains the corresponding OFTP protocol information from the configuration information according to the ID of the target EDI system, and sends the to-be-received message to the terminal device according to the instruction of the OFTP protocol information.

[0082] Figure 6 1 is a timing diagram of cluster configuration synchronization according to the electronic data exchange method of an embodiment of the present invention. Figure 6 As shown, the process of performing cluster configuration synchronization by the electronic data exchange method of the embodiment of the present invention mainly includes the following steps:

[0083] Step S601: When each OFTP service instance of the OFTP service cluster is started, it pulls configuration information from the configuration center and then configures its own OFTP sender and OFTP receiver. The configuration of the OFTP sender and OFTP receiver includes the ID of the target EDI system, OFTP protocol information, etc.

[0084] Step S602: After receiving the user access request, the Web management terminal pulls the latest configuration information from the configuration center and displays it on the Web page. The user logs in to the Web management terminal and accesses the Web page for related configuration. The Web management terminal pulls the latest configuration information from the configuration center and displays it to the user.

[0085] Step S603: The Web management terminal obtains the updated configuration information from the Web page and pushes the updated configuration information to the configuration center. After the user modifies the configuration information, the Web management terminal pushes the updated configuration information to the configuration center through its own configuration center client.

[0086] Step S604: The configuration center stores the updated configuration information and pushes the updated configuration information to all OFTP service instances. After receiving the configuration information pushed by the Web management terminal, the configuration center pushes the updated configuration information to the configuration center client of the OFTP service instance itself.

[0087] Step S605: After receiving the updated configuration information, each OFTP service instance changes the configuration information. At this point, cluster configuration synchronization is completed. The embodiment of the present invention uses a configuration center to synchronize the configuration information of the OFTP service instance, supports a push-pull mode, and ensures the configuration consistency of the OFTP service cluster.

[0088] It can be seen from the electronic data exchange method of the embodiment of the present invention that by obtaining the configuration information of the Web page, after receiving the file sending request, the file to be sent can be sent to the target EDI system based on the configuration information, thereby realizing the seamless integration of the OFTP protocol service and the Web system, and supporting the Web page configuration of the OFTP protocol information; by obtaining the configuration information of the Web page, after receiving the file receiving request, the file to be received can be sent to the terminal device based on the configuration information, thereby realizing the seamless integration of the OFTP protocol service and the Web system; the Web management end sends the updated configuration information to the configuration center, which is pushed to the OFTP service instance by the configuration center, thereby realizing the automatic synchronization of the configuration information.

[0089] Figure 7 An exemplary system architecture 700 is shown to which an electronic data exchange method or an electronic data exchange system according to an embodiment of the present invention can be applied.

[0090] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0091] Users can use terminal devices 701, 702, and 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0092] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0093] Server 705 may be a server providing various services, such as a background management server that an administrator processes log information query requests sent by terminal devices 701, 702, and 703. The background management server may query and obtain log information, and feed back the processing result (such as log information) to the terminal device.

[0094] It should be noted that the electronic data exchange method provided in the embodiment of the present application is generally executed by the server 705 , and accordingly, the electronic data exchange system is generally set in the server 705 .

[0095] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0096] According to an embodiment of the present invention, the present invention also provides an electronic device and a computer-readable medium.

[0097] The electronic device of the present invention comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement an electronic data exchange method of an embodiment of the present invention.

[0098] The computer-readable medium of the present invention stores a computer program, and when the program is executed by a processor, an electronic data exchange method of an embodiment of the present invention is implemented.

[0099] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 suitable for implementing an electronic device of an embodiment of the present invention. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0100] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the computer system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0101] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0102] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the main step diagram. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0103] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0105] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an OFTP sender, an access layer, an OFTP receiver and a forwarding layer. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the OFTP sender may also be described as "a module that receives a file sending request, obtains OFTP protocol information matching the basic information from the configuration information, and sends the file to be sent to the target EDI system according to the OFTP protocol information".

[0106] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining configuration information, wherein the configuration information includes basic information of the target EDI system and OFTP protocol information; receiving a file sending request, wherein the file sending request includes the basic information of the file to be sent and the target EDI system; obtaining OFTP protocol information matching the basic information from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information.

[0107] From the above description, it can be seen that by obtaining the configuration information of the Web page, after receiving the file sending request, the file to be sent can be sent to the target EDI system based on the configuration information, realizing the seamless integration of the OFTP protocol service and the Web system, and supporting the Web page configuration of the OFTP protocol information.

[0108] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An electronic data exchange system, characterized in that: The system includes: a configuration management center and an OFTP service instance; The configuration management center is used to obtain the configuration information of the Web page and send the configuration information to the OFTP service instance; wherein the configuration information includes basic information of the target EDI system and OFTP protocol information; The OFTP service instance is used to receive a file sending request, wherein the file sending request includes basic information of a file to be sent and the target EDI system; obtain OFTP protocol information matching the basic information from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information; The configuration management center includes: a Web management terminal and a configuration center; the Web management terminal is used to obtain current configuration information from the configuration center and display it on the Web page; obtain updated configuration information in the Web page and send the updated configuration information to the configuration center; the configuration center is used to store the updated configuration information and send the updated configuration information to the OFTP service instance; The system further includes: a log system, which is used to receive log information from the OFTP service instance through a message queue and send the log information to a full-text search engine; the OFTP service instance is also used to collect log information and send the log information to the log system; the Web management terminal is also used to obtain the log information from the full-text search engine to display it on the Web page.

2. The system according to claim 1, characterized in that The OFTP service instance is also used for: Collecting the running status information of the OFTP service instance, recording the task detail information of the file transfer, and storing the running status information and the task detail information in a database; The Web management terminal is also used to obtain the running status information and the task details information from the database to display them on the Web page.

3. The system according to claim 1, characterized in that The OFTP service instance receives the file sending request by one or more of the following methods: scanning the file system regularly, acquiring through a message queue, acquiring through a remote procedure call, and acquiring through a Web service.

4. The system according to claim 1, characterized in that The OFTP service instance is also used for: The certificate information of the OFTP service instance and the certificate information of the target EDI system are managed to send a prompt message when the corresponding certificates expire.

5. The system according to claim 1, characterized in that The electronic data exchange system includes a plurality of OFTP service instances, and the plurality of OFTP service instances are deployed in at least one server, and the at least one server constitutes an OFTP service cluster.

6. The system according to claim 5, characterized in that The system also includes: a multi-level load balancing device; The load balancing device is used to use a domain name server to bind at least one virtual IP cluster, and use the virtual IP cluster to bind at least one OFTP service instance of the server.

7. The system according to any one of claims 1 to 6, characterized in that: The OFTP service instance is also used for: Listening to a set port set to receive a file receiving request from the port set, wherein the file receiving request includes a message to be received and basic information of the target EDI system; The OFTP protocol information matching the basic information is acquired from the configuration information, so as to send the message to be received according to the OFTP protocol information.

8. An electronic data exchange system, characterized in that: The system includes: a configuration management center and an OFTP service instance; The configuration management center is used to obtain the configuration information of the Web page and send the configuration information to the OFTP service instance; wherein the configuration information includes basic information of the target EDI system and OFTP protocol information; The OFTP service instance is used to monitor the set port set to receive a file receiving request from the port set, wherein the file receiving request includes a message to be received and basic information of the target EDI system; obtain OFTP protocol information matching the basic information from the configuration information to send the message to be received according to the OFTP protocol information; The configuration management center includes: a Web management terminal and a configuration center; the Web management terminal is used to obtain current configuration information from the configuration center and display it on the Web page; obtain updated configuration information in the Web page and send the updated configuration information to the configuration center; the configuration center is used to store the updated configuration information and send the updated configuration information to the OFTP service instance; The system further includes: a log system, which is used to receive log information from the OFTP service instance through a message queue and send the log information to a full-text search engine; the OFTP service instance is also used to collect log information and send the log information to the log system; the Web management terminal is also used to obtain the log information from the full-text search engine to display it on the Web page.

9. An electronic data exchange method, characterized in that: The electronic data exchange system as claimed in claim 1, comprising: Acquire configuration information, wherein the configuration information includes basic information of the target EDI system and OFTP protocol information; Receiving a file sending request, wherein the file sending request includes the file to be sent and basic information of the target EDI system; Acquire OFTP protocol information matching the basic information from the configuration information, so as to send the file to be sent to the target EDI system according to the OFTP protocol information; It also includes: collecting log information, sending the log information to a log system, sending the log information to a full-text search engine through a message queue; and obtaining the log information from the full-text search engine to display it on a Web page.

10. An electronic data exchange method, characterized in that: The electronic data exchange system as claimed in claim 8 comprises: Acquire configuration information, wherein the configuration information includes basic information of the target EDI system and OFTP protocol information; Listening to a set port set to receive a file receiving request from the port set, wherein the file receiving request includes a message to be received and basic information of the target EDI system; The OFTP protocol information matching the basic information is acquired from the configuration information, so as to send the message to be received according to the OFTP protocol information.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 9 to 10.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 9 to 10 is implemented.

Citation Information

Patent Citations

  • Method for realizing data transmission between system applications and products in data processing (SAP) system and business to business (B2B) system

    CN102098287A

  • EDI security electronic certificate interaction method and terminal, and EDI security electronic certificate obtaining device

    CN103942643A

  • Data exchange method applied to hospital information system

    CN106850758A

  • EDI (Electronic Data Interchange) system and device comprising same

    CN108076110A

  • File transmission system

    CN108093015A