Method and system for realizing XML (Extensible Markup Language) message conversion and multi-channel interconnection and intercommunication

Through the implementation methods and systems based on XML message conversion and multi-channel interactive tuning, the problems of low efficiency and insufficient security in the existing technology are solved, and efficient and secure multi-channel service message interactive tuning verification is achieved, which is suitable for the financial industry and other fields.

CN119561992APending Publication Date: 2025-03-04WUHAN ZBANK CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411738889.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The existing interactive debugging technology has problems such as limited expansion, poor maintenance, and drone interactive operation interface, which leads to long-term service verification and low adaptability. Especially in the financial industry, it is difficult to achieve efficient upstream and downstream message encryption, decryption and verification of packets.

Method used

It provides an implementation method and system based on XML message conversion and multi-channel interactive debugging. Through the coordinated work of the client and the server, the format conversion, encryption, decryption and verification of messages are realized, and the joint debugging and verification of multiple modes is supported, which simplifies the process of human-computer interactive interface and interface joint debugging.

Benefits of technology

It realizes the convenience and efficiency of multi-channel service message interactive and inter-tuning verification, shortens service verification time, reduces verification difficulty, improves accuracy, and combines the security characteristics of message transmission in the financial field to ensure the security and production practicality of inter-tuning interactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561992A_ABST
    Figure CN119561992A_ABST
Patent Text Reader

Abstract

The invention provides an implementation method and system based on XML (Extensible Markup Language) message conversion and multi-channel intercommunication and intercommunication. The method comprises the following steps: establishing a client, inputting a joint debugging IP (Internet Protocol), and selecting a joint debugging channel port; inputting a request message on a client interface, performing formatting conversion, checking and sending the message, calculating and adding a message length header, storing the message to a local path, and establishing communication between the client and the server; a client side operates an instruction to send a message, IO flow reads input field message data, the sent message is encrypted, an encryption string is embedded into a message encryption string field, and the message encryption string field is sent to a server side system; the server side receives the response message, analyzes the message returned by the server side, obtains the encrypted field for signature verification, and displays the response message in an input field after the signature verification is passed; and the server monitors the return message. According to the invention, interface service verification between systems is realized, and encryption, decryption, signature verification and verification of upstream and downstream messages are realized in combination with the characteristics of message transmission security in the financial field, so that message joint debugging interaction is more suitable for production practice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information technology, and more specifically, to an implementation method and system based on XML message conversion and multi-channel interactive joint debugging. Background Art

[0002] Taking the financial industry as an example, a financial institution has dozens, hundreds or even hundreds of systems within its technology department, and there is a close integration and complementary relationship between the systems. The realization of most businesses is by no means completed by a single system, but is composed of the association of upstream and downstream business systems. The business interaction between upstream and downstream or related systems is achieved by interfaces as bridges and messages as transmission tools. Therefore, the number of message interfaces between various systems within the technology department is large, the structure is complex, and the business fields are not unified. The enterprise service bus is responsible for interface governance and maintenance management. In the context of interface development and joint debugging between systems, an interface conversion and joint debugging tool based on the internal characteristics of industry institutions is particularly important.

[0003] The current interactive joint debugging technology has limited expansion, poor maintainability, and UAV interactive operation interface, which makes business verification time-consuming and has low adaptability. First, the implementation method is that technicians manually write test programs for message sending and receiving. When the interactive system needs to add message length, it is necessary to manually convert the message length and add it to the message header. Secondly, MD5 encryption and decryption transmission of messages requires manual customized development. Without the assistance of technical personnel, testers will increase the difficulty of joint debugging and verification, and the overall interactive joint debugging process is very cumbersome.

[0004] The purpose of the interface conversion and joint debugging tool based on the internal characteristics of the industry organization is to realize the human-computer interaction interface, integrate the internal related systems of the organization, and customize the commonly used function buttons. It can adapt to most interactive scenarios, is easy to operate, and the joint debugging verification process is simple and reliable. It supports multiple modes of joint debugging verification, making it easy for technicians and testers to perform interface joint debugging verification. Based on this background, the joint debugging method based on XML message conversion and interaction has the characteristics of high system adaptability, diverse parameter configuration, and efficient and simple business interface verification. Therefore, how to realize the interface business verification between systems, and combine the security characteristics of message transmission in the financial field, realize the encryption, decryption, signature verification of upstream and downstream messages, and make the message joint debugging interaction more in line with production reality is a technical problem that existing technicians need to solve. Summary of the invention

[0005] In view of the technical problems existing in the prior art, the present invention provides an implementation method and system based on XML message conversion and multi-channel interactive joint debugging, aiming to conveniently and efficiently realize multi-channel business message interactive joint debugging verification.

[0006] According to a first aspect of the present invention, there is provided a method for implementing XML message conversion and multi-channel interactive joint debugging, comprising the following steps:

[0007] Step S1. Create a client, enter the joint debugging IP, and select the joint debugging channel port;

[0008] Step S2. Enter the request message in the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server;

[0009] Step S3. The client sends a message according to the operation instruction. The IO stream reads the message data in the input column, encrypts the sent message, embeds the encrypted string into the message encryption string field, and sends it to the server system.

[0010] Step S4. The server receives the response message, parses the message returned by the server, obtains the encrypted field for signature verification, and displays the response message in the input field if the signature verification passes;

[0011] Step S5: The server monitors the return message.

[0012] Based on the above technical solution, the present invention can also make the following improvements.

[0013] Optionally, the client interface consists of a message sending area, a message receiving area, a communication IP box, a channel selection box and an operation instruction area, and the integrated functions include: clearing the port box, converting the message format, calculating the message length, formatting the message, sending the message, saving the message, encrypting the message, receiving the message, and decrypting and verifying the signature.

[0014] Optionally, the inputting a request message on the client interface includes:

[0015] In the message input field, when the input message is wrong or the input box content is adjusted, click the "Clear" function to clear it with one click. The input box clearing function adopts the event monitoring mechanism in the AWT library, and uses the button click monitoring event to respond to the event trigger. When the clear event is triggered, a new monitoring object abstract class is immediately created.

[0016] Optionally, the message format is formatted and converted using a regular expression, including:

[0017] Step 2.1, use the button click monitoring event to respond to the event trigger, create a new monitoring object abstract class, and define a string variable to receive the message content obtained by the converter mode;

[0018] Step 2.2, use the BufferedReader stream to read the message content obtained above, and read the byte stream content in a loop;

[0019] Step 2.3, define the regular expression Pattern class, which is used to parse and match the input string, set regular expression 1, and perform a matching operation on the read content. If the match is successful, set the index position. Otherwise, match according to regular expression 2, and convert the special character position of ":" or ";" in the message content;

[0020] Step 2.4, intercept the characters between the minimum index and the maximum index after conversion, split them with space as the delimiter, copy them using the array copy method, and then perform character conversion. The encoding format is compiled and converted using UTF-8.

[0021] Optionally, the IO stream reads the message data in the input column, sends the message for encryption, embeds the encrypted string into the message encryption string field, and sends the server system to implement reading and writing using a file selector combined with IO stream technology.

[0022] Optionally, the reading and writing using a file selector in combination with IO stream technology includes:

[0023] Step 3.1, use the button click monitoring event to respond to the event trigger. When the "Save" button is clicked, create a new monitoring object abstract class, define a file selector object, define txt and xml file filters respectively, add the defined file filters to the selector object, and set the default save path;

[0024] Step 3.2, set the saved file name in the pop-up dialog box, add "_req" or "_res" at the end of the file name to distinguish the request message or response message, set the pop-up dialog box title, and define the variables to receive the saved file name and save path respectively;

[0025] Step 3.3: Generate a file object under the specified path, and use the IO byte output stream to write the obtained message content into the generated file object. The encoding format adopts the UTF-8 encoding format. After reading and writing, close the byte output stream, and the file is successfully generated under the selected path.

[0026] Optionally, the server receives a response message, and parsing the message returned by the server includes:

[0027] Confirm that the message to be sent is correct, send the request message, obtain the IP, PORT and TIMEOUT timeout parameters, verify the correctness of the parameters, obtain the request message content and convert the encoding format, establish a socket connection object to establish a communication connection with the server, obtain the output stream, send the message content, and obtain the input stream to receive the server response message.

[0028] Optionally, the step of obtaining the input stream and receiving a response message from the server includes:

[0029] Step 4.1, get the IP address in the input box, check whether the IP address is empty, check whether the IP address is a legal IP address, and whether it meets the IP composition rules. After the IP verification passes, check whether the port number is empty again. If the port number is empty, prompt the user to select the corresponding channel port number; check whether the timeout time is empty. If it is empty, the default timeout time is 30 seconds. If it is not empty, check whether the timeout time meets the rules;

[0030] Step 4.2, establish a Socket connection object, the parameters are the IP address and the corresponding channel port number, convert the timeout time, convert the timeout time from seconds to milliseconds, and use it as the socket parameter;

[0031] Step 4.3, obtain the request message content, obtain the established Socket object output stream for data transmission, the output object is the request message content, the transmission mode is byte stream transmission, and the transmission byte stream encoding format is set to UTF-8;

[0032] Step 4.4, after the request message is sent, the response message is obtained by establishing a socket connection object input stream and converted into a string, received through a string variable, and the socket connection is closed after the reception is completed. The obtained response message content is displayed in the response message output column of the interactive interface.

[0033] According to a second aspect of the present invention, there is provided a system for implementing XML message conversion and multi-channel interactive joint debugging, comprising:

[0034] The client creation module is used to create a client, enter the joint debugging IP, and select the joint debugging channel port;

[0035] The message conversion module is used to input the request message on the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server;

[0036] The message encryption module is used for the client operation instruction to send the message, the IO stream reads the message data in the input column, sends the message for encryption, embeds the encrypted string into the message encryption string field, and sends it to the server system;

[0037] The server feedback module is used to receive the response message from the server, parse the message returned by the server, obtain the encrypted field for signature verification, display the response message in the input field if the signature verification passes, and monitor the return message.

[0038] According to a third aspect of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the processor is configured to implement the steps of the above-mentioned implementation method based on XML message conversion and multi-channel interactive coordination when executing a computer program stored in the memory.

[0039] Technical effects and advantages of the present invention:

[0040] The present invention provides an implementation method and system based on XML message conversion and multi-channel interactive joint debugging, the purpose of which is to conveniently and efficiently realize multi-channel business message interactive joint debugging verification, greatly shorten the time of business verification, reduce the difficulty of business verification, and improve the accuracy of business verification. In addition, combined with the security characteristics of message transmission in the financial field, it can realize the encryption and decryption of upstream and downstream messages, and make the message joint debugging interaction more in line with production practice. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A business flow chart of an implementation method based on XML message conversion and multi-channel interactive joint debugging provided by an embodiment of the present invention;

[0042] Figure 2 A diagram of a user interaction interface based on XML message conversion and multi-channel interactive coordination provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] It is understandable that, based on the defects in the background technology, the embodiment of the present invention proposes an implementation method based on XML message conversion and multi-channel interactive joint debugging, as shown in the following example: Figure 1 As shown, the following steps are included:

[0045] Step S1. Create a client, enter the joint debugging IP, and select the joint debugging channel port;

[0046] References Figure 2 As shown in the figure, the client, i.e. the human-computer interaction interface, is a platform for operators to simulate the client and the server channel system to conduct message joint debugging verification and two-way interaction. The client operation interface consists of the message sending area, message receiving area, communication IP box, channel selection box and operation instruction area. The integrated functions include: port box clearing, message format conversion, message length calculation, message formatting, message sending, message saving, message encryption, message receiving, message decryption and signature verification.

[0047] It should be noted that the IP box and the timeout box are implemented by writing text boxes in the Java Swing component, and the port box is implemented by using the drop-down list box in the component; the Chinese descriptions of "port" and "IP" are implemented by writing component labels, and the "port" drop-down list can be configured with different channel system ports according to different interactive businesses, and different items can also be added using the addItem method in the drop-down list component. For example: intermediary business, credit system, unified electronic channel, unified payment system.

[0048] Step S2. Enter the request message in the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server;

[0049] The method of inputting a request message in the client interface includes: in the message input field, if the message input is wrong or the content of the input box is adjusted, click the "clear" function button to realize one-click clearing. The input box clearing function adopts the event monitoring mechanism in the AWT library, and uses the button click monitoring event addActionListener to respond to the event trigger. When the clearing event is triggered, a new monitoring object abstract class is immediately created. The monitoring object adds a specific main implementation method for the clearing action, and uses the abstract class converter mode to set the content of the message input box or the message response box to empty, so as to achieve the purpose of clearing the message content. The setText method is simple and efficient.

[0050] The client operation command "Message conversion" adjusts and converts the message format, converting the input message into the standard XML format. If the message format is wrong, the conversion fails and the message needs to be manually verified and the message in the input column is cleared;

[0051] After filling the message in the message input field, the message is too long and the message content has no interruption or line break, which makes the message content look messy and difficult to read. It is impossible to quickly locate the target node field content and determine whether the message format is correct. In view of this, if you need to adjust and convert the message format, click the "Convert" function button to achieve one-click conversion. The conversion core uses regular expressions for format conversion. The specific implementation is as follows:

[0052] Step 2.1, also use the button click listener event addActionListener to respond to the event trigger. When the "Convert" button is clicked, a new listener object abstract class is created. Define a string variable to receive the message content obtained by the converter mode;

[0053] Step 2.2, use the BufferedReader stream to read the message content obtained above (the meaning here is to read and convert the string content in the form of byte stream), and read the byte stream content in a loop;

[0054] Step 2.3, define the regular expression Pattern class, which is used to parse and match the input string, set regular expression 1, and use the matcher class method to match the read content. If the match is successful, set the index position. Otherwise, match according to regular expression 2, and convert the special character positions such as ":" or ";" in the message content;

[0055] Step 2.4, intercept the characters between the minimum index and the maximum index after the above conversion, split them with a space as the delimiter, copy them using the array copy method, and perform character conversion after completion. The encoding format is compiled and converted using UTF-8.

[0056] Finally, you need to save and archive the sent message or response message for later use. Choose to save it as a .txt file or .xml file and save the message to a local path.

[0057] Step S3. The client sends a message according to the operation instruction. The IO stream reads the message data in the input column, encrypts the sent message, embeds the encrypted string into the message encryption string field, and sends it to the server system.

[0058] In this embodiment, the IO stream reads the input column message data, sends the message to be encrypted, embeds the encrypted string into the message encryption string field, and the sending server system uses a file selector combined with IO stream technology to read and write to implement it as follows:

[0059] Step 3.1. Also use the button click listener event addActionListener to respond to the event trigger. When you click the "Save" button, create a new listener object abstract class. Define a JFileChooser file selector object to save the file path selection, define txt and xml file filters respectively for the selection of dialog file types, add the defined file filter to the selector object, and set the default save path;

[0060] Step 3.2: Set the saved file name in the pop-up dialog box. Add "_req" or "_res" at the end of the file name to distinguish between request messages and response messages. Set the title of the pop-up dialog box. Define variables to receive the saved file name and save path respectively.

[0061] Step 3.3: Generate a file object under the specified path, and use the IO byte output stream to write the obtained message content into the generated file object. The encoding format still uses the UTF-8 encoding format. After reading and writing, close the byte output stream, and the file is successfully generated under the specified path.

[0062] Step S4. The server receives the response message, parses the message returned by the server, obtains the encrypted field for signature verification, and displays the response message in the input field if the signature verification passes;

[0063] After confirming that the message to be sent is correct, click the "Send" button to send the request message. The sending core uses socket programming technology to realize the communication and interaction between the client and the server. Get the above parameters such as IP, PORT and TIMEOUT timeout, verify the correctness of the parameters, get the request message content and convert the encoding format (default UTF-8), establish a socket connection object to establish a communication connection with the server, get the output stream, send the message content, and get the input stream to receive the server response message, as follows:

[0064] Step 4.1, get the IP address in the input box, check whether the IP address is empty, check whether the IP address is a legal IP address, and whether it meets the IP composition rules. After the IP verification passes, check whether the port number is empty again. If the port number is empty, prompt the user to select the corresponding channel port number; check whether the timeout time is empty. If it is empty, the default timeout time is 30 seconds. If it is not empty, check whether the timeout time meets the rules;

[0065] Step 4.2, establish a Socket connection object, the parameters are the IP address and the corresponding channel port number, convert the timeout time, convert the timeout time from seconds to milliseconds, and use it as the socket parameter.

[0066] Step 4.3, obtain the request message content, obtain the output stream of the Socket object established above for data transmission, the output object is the request message content, the transmission mode is byte stream transmission, and the transmission byte stream encoding format is set to UTF-8.

[0067] Step 4.4: After the request message is sent, in order to obtain the content of the external channel response message, the response message is also obtained through the input stream of the socket connection object established above and converted into a string, received through the string variable, and the socket connection is closed after the reception is completed to avoid port occupation. The obtained response message content is displayed in the response message output column of the interactive interface.

[0068] Finally, the client message encryption, decryption and signature verification modules are introduced in detail. The background message MD5 encryption and message transmission interactive encryption are designed to use the MD5 encryption and decryption algorithm for transmission, which is in line with actual production, as follows:

[0069] Get the message content in the message sending area, encrypt the message through the MD5 tool class (the MD5 key is generated by the leading party through the MessageDigest class or other methods, and both parties agree to store it for encryption and signature verification), get the encrypted ciphertext string, embed the ciphertext string into the reserved message structure field node in the message, and send the processed message to the server;

[0070] After the server completes the corresponding work, it assembles the encrypted response message and returns it to the client. Receive the response message returned by the server, obtain the key node ciphertext in the message content, and combine the intercepted and restored response message plain text, ciphertext, and MD5 key for MD5 signature verification. If the MD5 signature verification passes, a Boolean value is returned. If true is returned, it means that the response message verification has passed. Otherwise, the verification fails and verification failure is returned, and the transaction ends.

[0071] MD5 implementation:

[0072] Import MD5 related dependencies in the pom file;

[0073] Added MD5 tool class;

[0074] After obtaining the request message, use the encryption method in the MD5 tool class to perform MD5 encryption on the plain text of the request message to generate an MD5 ciphertext string, encapsulate the MD5 ciphertext string in the specified message field label node and send it to the server;

[0075] After receiving the request message, the server intercepts the original message and performs MD5 verification. If the verification result is consistent with the MD5 ciphertext string sent, the MD5 verification passes, otherwise the verification fails.

[0076] Step S5: The server monitors the return message.

[0077] In summary, the implementation method based on XML message conversion and multi-channel interactive joint debugging described in the embodiment of the present invention adopts java swing framework technology, awt component, and IO stream technology to realize visual message interaction. In addition, combined with the security characteristics of message transmission in the financial field, it can realize the encryption, decryption, signature verification and verification of upstream and downstream messages, making the message joint debugging interaction more in line with production reality.

[0078] According to a second aspect of the present invention, there is provided a system for implementing XML message conversion and multi-channel interactive joint debugging, comprising:

[0079] The client creation module is used to create a client, enter the joint debugging IP, and select the joint debugging channel port;

[0080] The message conversion module is used to input the request message on the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server;

[0081] The message encryption module is used for the client operation instruction to send the message, the IO stream reads the message data in the input column, sends the message for encryption, embeds the encrypted string into the message encryption string field, and sends it to the server system;

[0082] The server feedback module is used to receive the response message from the server, parse the message returned by the server, obtain the encrypted field for signature verification, display the response message in the input field if the signature verification passes, and monitor the return message.

[0083] It can be understood that an implementation system based on XML message conversion and multi-channel interactive coordination provided by the present invention corresponds to an implementation method based on XML message conversion and multi-channel interactive coordination provided by the aforementioned embodiments. The relevant technical features of an implementation system based on XML message conversion and multi-channel interactive coordination can refer to the relevant technical features of an implementation method based on XML message conversion and multi-channel interactive coordination, which will not be repeated here.

[0084] An embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned implementation method based on XML message conversion and multi-channel interactive coordination are implemented.

[0085] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0086] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for implementing XML message conversion and multi-channel interactive coordination, characterized in that: The method comprises the following steps: Step S1. Create a client, enter the joint debugging IP, and select the joint debugging channel port; Step S2. Enter the request message in the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server; Step S3. The client sends a message according to the operation instruction. The IO stream reads the message data in the input column, encrypts the sent message, embeds the encrypted string into the message encryption string field, and sends it to the server system. Step S4. The server receives the response message, parses the message returned by the server, obtains the encrypted field for signature verification, and displays the response message in the input field if the signature verification passes; Step S5: The server monitors the return message.

2. According to claim 1, a method for implementing XML message conversion and multi-channel interactive coordination is characterized in that: The client interface consists of a message sending area, a message receiving area, a communication IP box, a channel selection box and an operation instruction area. The integrated functions include: clearing the port box, message format conversion, calculating message length, message formatting, sending messages, saving messages, message encryption, message receiving, and message decryption and signature verification.

3. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 1 is characterized in that: The inputting of the request message on the client interface comprises: In the message input field, when the message input is wrong or the content of the input box is adjusted, click the "Clear" function to clear it with one click. The input box clearing function adopts the event monitoring mechanism in the AWT library, and uses the button click monitoring event to respond to the event trigger. When the clear event is triggered, a new monitoring object abstract class is immediately created.

4. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 1 is characterized in that: The message format is formatted and converted using a regular expression, including: Step 2.1, use the button click monitoring event to respond to the event trigger, create a new monitoring object abstract class, and define a string variable to receive the message content obtained by the converter mode; Step 2.2, use the BufferedReader stream to read the message content obtained above, and read the byte stream content in a loop; Step 2.3, define the regular expression Pattern class, which is used to parse and match the input string, set regular expression 1, and match the read content. If the match is successful, set the index position, otherwise match according to regular expression 2, and convert the special character position of ":" or ";" in the message content; Step 2.4, intercept the characters between the minimum index and the maximum index after conversion, split them with space as the delimiter, copy them using the array copy method, and then perform character conversion. The encoding format is compiled and converted using UTF-8.

5. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 1 is characterized in that: The IO stream reads the message data in the input column, sends the message for encryption, embeds the encrypted string into the message encryption string field, and sends the server system to implement reading and writing by using a file selector combined with IO stream technology.

6. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 5 is characterized in that: The use of a file selector in combination with IO stream technology to read and write includes: Step 3.1, use the button click listener event to respond to the event trigger. When the "Save" button is clicked, create a new listener object abstract class, define a file selector object, define txt and xml file filters respectively, add the defined file filters to the selector object, and set the default save path; Step 3.2, set the saved file name in the pop-up dialog box, add "_req" or "_res" at the end of the file name to distinguish the request message or response message, set the pop-up dialog box title, and define the variables to receive the saved file name and save path respectively; Step 3.3: Generate a file object under the specified path, and use the IO byte output stream to write the obtained message content into the generated file object. The encoding format adopts the UTF-8 encoding format. After reading and writing, close the byte output stream, and the file is successfully generated under the selected path.

7. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 1 is characterized in that: The server receives the response message, and the message returned by the parsing server includes: Confirm that the message to be sent is correct, send the request message, obtain the IP, PORT and TIMEOUT timeout parameters, verify the correctness of the parameters, obtain the request message content and convert the encoding format, establish a socket connection object to establish a communication connection with the server, obtain the output stream, send the message content, and obtain the input stream to receive the server response message.

8. The implementation method based on XML message conversion and multi-channel interactive coordination according to claim 7 is characterized in that: The step of obtaining the input stream and receiving the server response message comprises: Step 4.1, get the IP address in the input box, check whether the IP address is empty, check whether the IP address is a legal IP address, and whether it meets the IP composition rules. After the IP verification passes, check whether the port number is empty again. If the port number is empty, prompt the user to select the corresponding channel port number; check whether the timeout time is empty. If it is empty, the default timeout time is 30 seconds. If it is not empty, check whether the timeout time meets the rules; Step 4.2, establish a Socket connection object, the parameters are the IP address and the corresponding channel port number, convert the timeout time, convert the timeout time from seconds to milliseconds, and use it as the socket parameter; Step 4.3, obtain the request message content, obtain the established Socket object output stream for data transmission, the output object is the request message content, the transmission mode is byte stream transmission, and the transmission byte stream encoding format is set to UTF-8; Step 4.4, after the request message is sent, the response message is obtained by establishing a socket connection object input stream and converted into a string, received through a string variable, and the socket connection is closed after the reception is completed. The obtained response message content is displayed in the response message output column of the interactive interface.

9. A system based on XML message conversion and multi-channel interactive debugging, characterized in that: include: The client creation module is used to create a client, enter the joint debugging IP, and select the joint debugging channel port; The message conversion module is used to input the request message on the client interface, perform format conversion, verify the sent message, and establish communication between the client and the server; The message encryption module is used for the client operation instruction to send the message, the IO stream reads the message data in the input column, sends the message for encryption, embeds the encrypted string into the message encryption string field, and sends it to the server system; The server feedback module is used to receive the response message from the server, parse the message returned by the server, obtain the encrypted field for signature verification, display the response message in the input field if the signature verification passes, and monitor the return message.

10. An electronic device, characterized in that: It includes a memory and a processor, and the processor is used to implement the steps of an implementation method based on XML message conversion and multi-channel interactive coordination as described in any one of claims 1 to 8 when executing a computer program stored in the memory.

Citation Information

Cited By

  • Cross-platform desktop application program development method and system and storage medium

    CN120892084A