CN112995188A - Message conversion method, intermediate adaptation device, storage medium and electronic equipment - Google Patents

Message conversion method, intermediate adaptation device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112995188A
CN112995188A CN202110259366.0A CN202110259366A CN112995188A CN 112995188 A CN112995188 A CN 112995188A CN 202110259366 A CN202110259366 A CN 202110259366A CN 112995188 A CN112995188 A CN 112995188A
Authority
CN
China
Prior art keywords
message
request
result
format
analysis result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110259366.0A
Other languages
Chinese (zh)
Inventor
刘宇
王晓亮
胡智
王程
朱明月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Travelsky Technology Co Ltd
China Travelsky Holding Co
Original Assignee
China Travelsky Holding Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Holding Co filed Critical China Travelsky Holding Co
Priority to CN202110259366.0A priority Critical patent/CN112995188A/en
Publication of CN112995188A publication Critical patent/CN112995188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message conversion method, an intermediate adaptation device, a storage medium and an electronic device, which are applied to the intermediate adaptation device, and the method comprises the following steps: receiving a request message and a message type sent by a front-end sale system; analyzing the request message based on the message type to obtain an analysis result; based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message; sending the analysis result message to the aviation direct connection sales system to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message, and feeding back the operation result of the executed business operation; after receiving the operation result, calling a preset message template based on the NDC communication standard of the new distribution capability to generate a result message; and sending the result message to the front-end sale system. The communication between the front-end sales system and the aviation direct connection sales system is realized, so that the aviation direct connection sales system can provide services.

Description

Message conversion method, intermediate adaptation device, storage medium and electronic equipment
Technical Field
The present application relates to the field of aeronautics, and in particular, to a message conversion method, an intermediate adaptation device, a storage medium, and an electronic device.
Background
The NDC (New Distribution Capability) standard is an open set of communication standards proposed by IATA (international air Transport Association), and aims to construct New Distribution Capability for an airline company, so that the airline company can more accurately provide diversified products and services for customers in a wider Distribution channel.
In the field of civil aviation, an aviation direct-connection sales system receives message information based on a traditional communication standard sent by a front-end sales system and provides service based on the message information. With the application of the NDC communication standard to the field of civil aviation, the existing aviation direct-connected sales system cannot identify message information adopting the NDC communication standard, so that the front-end sales system and the aviation direct-connected sales system cannot communicate with each other, and the aviation direct-connected sales system cannot provide services. Therefore, how to provide a technical solution for enabling the front-end sales system and the direct airline sales system to communicate with each other so that the direct airline sales system can provide services is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The technical problem to be solved by the application is to provide a message conversion method, an intermediate adaptation device, a storage medium and an electronic device, so that communication between a front-end sales system and an aviation direct-connected sales system can be realized, and the aviation direct-connected sales system can provide services.
In order to achieve the above object, the present application provides the following technical solutions:
a first aspect of the present application discloses a method for packet conversion, including:
receiving a service operation request sent by a front-end sale system, wherein the service operation request comprises a request message and the message type of the request message;
analyzing the request message based on the message type of the request message to obtain an analysis result;
based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message;
sending the analysis result message to an aviation direct connection sales system to trigger the aviation direct connection sales system to execute a business operation corresponding to the analysis result message, and feeding back an operation result of executing the business operation;
after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message;
and sending the result message to the front-end sale system.
A second aspect of the present application discloses an intermediate adaptation apparatus, comprising:
the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving a service operation request sent by a front-end sale system, and the service operation request comprises a request message and the message type of the request message;
the analysis unit is used for analyzing the request message based on the message type of the request message to obtain an analysis result;
the first generation unit is used for calling a preset message template based on the traditional communication standard based on the analysis result to generate an analysis result message;
the first sending unit is used for sending the analysis result message to an aviation direct connection sales system so as to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message and feed back the operation result of the executed business operation;
the second generation unit is used for calling a preset message template based on a new distribution capability NDC communication standard to generate a result message based on the operation result after receiving the operation result fed back by the aviation direct connection sales system;
and the second sending unit is used for sending the result message to the front-end sale system.
A third aspect of the present application discloses a storage medium, where the storage medium includes stored instructions, and when the instructions are executed, the storage medium controls a device where the storage medium is located to execute the above-mentioned message conversion method.
A fourth aspect of the present application discloses an electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the above-mentioned message conversion method.
Compared with the prior art, the method has the following advantages:
the application provides a message conversion method, an intermediate adapter device, a storage medium and electronic equipment, which are applied to the intermediate adapter device, wherein the intermediate adapter device receives a service operation request sent by a front-end sales system, and the service operation request comprises a request message and the message type of the request message; analyzing the request message based on the message type of the request message to obtain an analysis result; based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message; sending the analysis result message to the aviation direct connection sales system to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message, and feeding back the operation result of the executed business operation; after receiving an operation result fed back by the aviation direct-connected sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message; and sending the result message to the front-end sale system. Therefore, according to the technical scheme, the access service is provided for the front-end sales system which accords with the NDC communication standard, and the communication between the front-end sales system and the aviation direct-connected sales system can be realized through the conversion between messages of different communication standards, so that the aviation direct-connected sales system can provide the service.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of a message conversion method according to the present application;
fig. 2 is a flowchart of another method of a message conversion method provided in the present application;
fig. 3 is a flowchart of another method of a message conversion method according to the present application;
FIG. 4 is a schematic structural diagram of an intermediate adapter provided in the present application;
fig. 5 is a schematic structural diagram of a message conversion system provided in the present application;
fig. 6 is a schematic structural diagram of a message conversion system provided in the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the disclosure of the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in the disclosure herein are exemplary rather than limiting, and those skilled in the art will understand that "one or more" will be understood unless the context clearly dictates otherwise.
The embodiment of the application provides a message conversion method, which can be applied to an intermediate adapter device, wherein the intermediate adapter device is respectively connected with a front-end sales system and an aviation direct-connected sales system, and a flow chart of the message conversion method is shown in fig. 1, and specifically comprises the following steps:
s101, receiving a service operation request sent by a front-end sale system.
The front-end sale system generates a service operation request after receiving a user request, and sends the service operation request to the intermediate adaptation device, wherein the service operation request comprises a request message and a message type of the request message, and the message type comprises but is not limited to an inquiry type, a preset type, a modification type or an unsubscribe type.
The intermediate adapter device receives a service operation request sent by the front-end sales system, and acquires a request message contained in the service operation request and a message type of the request message.
S102, analyzing the request message based on the message type of the request message to obtain an analysis result.
In the method provided by the embodiment of the application, the corresponding relation between the message type and the analysis strategy is stored in the intermediate adaptation device in advance, so that the analysis strategy corresponding to the message type can be determined based on the message type.
The intermediate adaptation device determines an analysis strategy corresponding to the message type through a pre-stored corresponding relation between the message type and the analysis strategy based on the message type, so that the analysis request message is analyzed based on the analysis strategy to obtain an analysis result.
Referring to fig. 2, the process of analyzing the request packet based on the packet type of the request packet to obtain the analysis result specifically includes:
s201, format verification is carried out on the request message.
And carrying out format check on the request message, namely checking whether the request message is a message in accordance with the NDC communication standard.
The request message may be format checked based on a pre-stored message format.
Referring to fig. 3, the process of performing format check on the request packet specifically includes:
s301, determining a preset target message format corresponding to the message type.
In the method provided by the embodiment of the application, message formats corresponding to different message types are preset, and the message formats corresponding to the different message types are stored in the intermediate adaptive device; and determining a preset message format corresponding to the message type based on the message type of the request message, and determining the message format corresponding to the message type of the request message as a target format.
It should be noted that each preset message format is a message format based on the NDC communication standard.
S302, judging whether the message format of the request message is matched with the target message format, if so, executing S303, and if not, executing S304.
Based on the target message format, the message format of the request message is checked, that is, the message format of the request message is matched with the target message format. Specifically, each attribute field in the request message and each attribute field contained in the target message format are determined, each attribute field in the request message is matched with each attribute field in the target message format, when each field in the request message corresponds to each attribute field in the target message format, the message format of the request message is determined to be matched with the target message format, and otherwise, the message format of the request message is determined not to be matched with the target message format.
S303, determining that the request message passes format verification.
And if the message format of the request message is matched with the target message format, determining that the request message passes the format check.
S304, determining that the request message does not pass the format check.
And if the message format of the request message is not matched with the target message format, determining that the request message does not pass the format check.
In the method provided by the embodiment of the application, the request message is verified through a preset message format based on the NDC communication standard, so that whether the request message is a message meeting the NDC communication standard is verified.
S202, after the request message passes the format inspection, determining a preset analysis strategy corresponding to the message type.
After the request message passes the format verification, the analysis strategy corresponding to the message type is determined based on the message type of the request message through the corresponding relation between the message type and the analysis strategy stored in the intermediate adaptation device in advance.
S203, analyzing the request message based on the analysis strategy to obtain an analysis result.
And analyzing the request message based on the message type corresponding analysis strategy of the request message, thereby obtaining an analysis result.
In the method provided by the embodiment of the application, the request message is verified based on the preset message format corresponding to the message type, and after the request message passes the verification, the request message is analyzed based on the preset analysis strategy corresponding to the message type, so that an analysis result is obtained.
S103, based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message.
Presetting message templates based on the traditional communication standard corresponding to different message types respectively, and storing the message templates based on the traditional communication standard into an intermediate adaptive device.
The intermediate adaptation device determines a preset message template based on the traditional communication standard corresponding to the message type based on the message type of the request message, writes the analysis result into the determined message template based on the traditional communication standard, and generates an analysis result message.
In the method provided by the embodiment of the present application, a specific process of writing an analysis result into a determined message template based on a conventional communication standard to generate an analysis result message includes: acquiring each key field in the determined message template based on the traditional communication standard, acquiring data corresponding to each key field from the analysis result, and correspondingly writing the acquired data corresponding to each key field into the determined message template based on the traditional communication standard to obtain an analysis result message.
It should be noted that the conventional communication standard mentioned in the method provided in the embodiment of the present application does not refer to a certain communication standard in particular, and the conventional communication standards corresponding to different airlines may be different, and only a message that can be identified by the direct airline sales system needs to be generated.
And S104, sending the analysis result message to the aviation direct connection sales system to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message, and feeding back the operation result of the executed business operation.
And sending the analysis result message to the aviation direct connection sales system, specifically, determining a transmission interface corresponding to the message type in the aviation direct connection sales system, and sending the analysis result message to the transmission interface so as to realize sending the analysis result message to the aviation direct connection sales system.
In the method provided by the embodiment of the application, the aviation direct connection sales system provides a plurality of transmission interfaces, different transmission interfaces correspond to different message types, the transmission interface corresponding to the message type in each transmission interface corresponding to the aviation direct connection sales system is determined based on the message type of the request message, and the analysis result message is sent to the determined transmission interface, so that the analysis result message is sent to the aviation direct connection sales system.
After receiving the analysis result message, the aviation direct connection sales system analyzes the analysis result message to obtain a first analysis result, executes the business operation corresponding to the first analysis result, and feeds back the operation result of the business operation to the intermediate adaptation device after the business operation is executed.
Optionally, after the aviation direct connection sales System performs the service operation, the operation result of the service operation may be fed back to the ICS host System, and the ICS host System performs management on passenger reservation records (PNR), where the ICS is called an Inventory Control System, that is, an airline reservation System used by airline personnel. Also known as system B.
It should be noted that the operation result is a message meeting the conventional communication standard, that is, the aviation direct connection sales system assembles the result of executing the service operation into a message based on the conventional communication standard, and feeds the message as the operation result back to the intermediate adapter device.
And S105, after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on the NDC communication standard of the new distribution capability based on the operation result, and generating a result message.
In the method provided by the embodiment of the application, a plurality of message templates based on the NDC communication standard with the new distribution capability are stored in the intermediate adaptation device in advance, and different message templates correspond to different message types.
After receiving the operation result of the aviation direct connection sales system, the intermediate adaptation device calls a preset message template based on the NDC communication standard based on the operation result to generate a result message. Specifically, a preset message template based on the NDC communication standard corresponding to the message type of the request message is determined, and based on the operation result, a result message is generated through the determined message template based on the NDC communication standard.
In the method provided in the embodiment of the present application, based on the operation result, a preset message template based on the NDC communication standard with the new distribution capability is called, and a process of generating a result message specifically includes:
determining each key field in a preset message template based on a new distribution capability NDC communication standard;
analyzing the operation result, and determining data corresponding to each key field in the operation result;
and correspondingly writing the data corresponding to each key field into the message template to generate a result message.
In the method provided by the embodiment of the application, a preset message template based on the NDC communication standard and corresponding to the message type of the request message is determined, each key field in the message template is obtained based on the determined message template based on the NDC communication standard, the operation result, namely the message fed back by the aviation direct connection sales system, is analyzed, data corresponding to each key field is extracted from the operation result, the data corresponding to each key field is correspondingly written into the determined message template based on the NDC communication standard, and a result message is generated.
And S106, sending the result message to the front-end sale system.
And sending the result message which conforms to the NDC communication standard to the front-end sales system, so that the communication between the front-end sales system and the aviation direct-connected sales system is realized, namely the aviation information interaction between the front-end sales system and the aviation direct-connected sales system is realized.
According to the message conversion method provided by the embodiment of the application, the intermediate adapter device receives a service operation request sent by the front-end sales system, and analyzes the request message based on the message type of the request message to obtain an analysis result; based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message; sending the analysis result message to the aviation direct connection sales system to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message, and feeding back the operation result of the executed business operation; after receiving an operation result fed back by the aviation direct-connected sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message; and sending the result message to the front-end sale system. By applying the message conversion method provided by the embodiment of the application, the access service is provided for the front-end sales system which accords with the NDC communication standard, and the communication between the front-end sales system and the aviation direct-connected sales system is realized through the conversion between messages of different communication standards, so that the aviation direct-connected sales system can provide the service, namely, on the basis of the existing aviation direct-connected sales system, the communication between the front-end sales system and the aviation direct-connected sales system can be realized only by constructing the intermediate adapter device, and the development cost is reduced.
It should be noted that while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments disclosed herein may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the disclosure is not limited in this respect.
Corresponding to the method described in fig. 1, an embodiment of the present application further provides an intermediate adaptation apparatus, which is used for implementing the method in fig. 1 specifically, and a schematic structural diagram of the intermediate adaptation apparatus is shown in fig. 4, and specifically includes:
a receiving unit 401, configured to receive a service operation request sent by a front-end sales system, where the service operation request includes a request packet and a packet type of the request packet;
an analyzing unit 402, configured to analyze the request packet based on the packet type of the request packet, so as to obtain an analysis result;
a first generating unit 403, configured to invoke a preset message template based on a traditional communication standard based on the analysis result, and generate an analysis result message;
a first sending unit 404, configured to send the analysis result message to an aviation direct connection sales system, so as to trigger the aviation direct connection sales system to execute a service operation corresponding to the analysis result message, and feed back an operation result of executing the service operation;
a second generating unit 405, configured to, after receiving an operation result fed back by the aviation direct connection sales system, call a preset message template based on a new distribution capability NDC communication standard based on the operation result, and generate a result message;
a second sending unit 406, configured to send the result message to the front-end sales system.
In the intermediate adapter device provided in the embodiment of the application, the intermediate adapter device receives a service operation request sent by a front-end sales system, and analyzes the request message based on the message type of the request message to obtain an analysis result; based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message; sending the analysis result message to the aviation direct connection sales system to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message, and feeding back the operation result of the executed business operation; after receiving an operation result fed back by the aviation direct-connected sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message; and sending the result message to the front-end sale system. By applying the intermediate adapter device provided by the embodiment of the application, the access service is provided for the front-end sale system conforming to the NDC communication standard, and the communication between the front-end sale system and the aviation direct-connection sale system can be realized by converting messages of different communication standards, so that the aviation direct-connection sale system can provide the service
In an embodiment of the present application, based on the foregoing scheme, the parsing unit 402 may be configured to:
the checking subunit is used for carrying out format checking on the request message;
a determining subunit, configured to determine a preset parsing policy corresponding to the packet type after the request packet passes the format check;
and the analysis subunit is used for analyzing the request message based on the analysis strategy to obtain an analysis result.
In an embodiment of the present application, based on the foregoing scheme, the checking subunit performs format checking on the request packet, and is configured to:
determining a preset target message format corresponding to the message type;
judging whether the message format of the request message is matched with the target message format;
if the message format of the request message is matched with the target message format, determining that the request message passes format verification;
and if the message format of the request message is not matched with the target message format, determining that the request message does not pass the format check.
In an embodiment of the present application, based on the foregoing scheme, the first sending unit 404 executes the analysis result message and sends the analysis result message to an aviation direct connection sales system, so as to:
determining a transmission interface corresponding to the message type in the aviation direct connection sales system;
and sending the analysis result message to the transmission interface.
In an embodiment of the present application, based on the foregoing solution, the second generating unit 405 executes, based on the operation result, to call a preset message template based on the new distribution capability NDC communication standard, and generate a result message, which is used to:
determining each key field in a preset message template based on a new distribution capability NDC communication standard;
analyzing the operation result, and determining data corresponding to each key field in the operation result;
and correspondingly writing the data corresponding to each key field into the message template to generate a result message.
The process of message conversion provided in the embodiment of the present application is illustrated, as shown in fig. 5:
the embodiment of the present application further provides a message conversion system, and a schematic structural diagram of the message conversion system is shown in fig. 5, and includes:
a front-end sales system 501, an intermediate adapter 502, an airline direct sales system 503, and an airline reservation system 504.
The front-end sales system 501 is connected with the aviation direct connection sales system 503 through an intermediate adapter 502; the airline direct sales system 503 is connected to an airline reservation system 504.
The front-end sales system 501 is configured to send a service operation request carrying a request message and a message type to the intermediate adapter 502 after receiving a user request.
The intermediate adapting device 502 is configured to receive a service operation request sent by the front-end sales system 501, parse a request message included in the service operation request based on a message type included in the service operation request to obtain a parsing result, call a preset message template based on a conventional communication standard based on the parsing result to generate a parsing result message, send the parsing result message to the aviation direct-connected sales system 503, call a preset message template based on a new distribution capability NDC communication standard after receiving an operation result fed back by the aviation direct-connected sales system 503, and feed back the generated result message to the front-end sales system 501.
The aviation direct connection sales system 503 is configured to receive the analysis result message sent by the intermediate adapter device, execute a service operation corresponding to the analysis result message, and after the service operation is executed, respectively feed back the operation result of the executed service operation to the intermediate adapter device 502 and the airline seat booking system 504.
And an airline reservation system 504 configured to manage the passenger reservation record PNR based on the operation result when the operation result is received.
In the message conversion system provided by the embodiment of the application, on the basis of the existing aviation direct connection sales system, only the intermediate adapter device needs to be constructed, and the front-end sales system and the aviation direct connection sales system can communicate with each other by converting messages with different communication standards through the intermediate adapter device, so that the development cost is reduced.
Referring to fig. 6, in another message conversion system provided in this application, an intermediate adapter 502 includes:
a receiving module 5021, a conversion module 5022, and a calling module 5023.
The receiving module 5021 is connected to the front-end sales module 501 and the conversion module 5022, respectively.
The invoking module 5023 is connected with the avionics direct sales system 503 and the conversion module 5022 respectively.
The receiving module 5021 is configured to receive a service operation request sent by the front-end selling module 501, send the service operation request to the converting module 5022, and send a result message to the front-end selling module 501 after receiving the result message sent by the converting module 5022.
The conversion module 5022 is configured to receive a service operation request, parse a request message included in the service operation request based on a message type included in the service operation request to obtain a parsing result, call a preset message template based on a conventional communication standard based on the parsing result to generate a parsing result message, send the parsing result message to the calling module 5023, call a preset message template based on a new distribution capability NDC communication standard when an operation result fed back by the calling module 5023 is received, and feed back the generated result message to the receiving module 5021.
The calling module 5023 receives the analysis result message, determines a transmission interface corresponding to the message type in the aviation direct connection sales system 503, sends the analysis result message to the transmission interface, and feeds back the operation result to the conversion module 5022 after receiving the operation result fed back by the aviation direct connection sales system 503.
An embodiment of the present application further provides a storage medium, where the storage medium includes stored instructions, where when the instructions are executed, the apparatus where the storage medium is located is controlled to perform the following operations:
receiving a service operation request sent by a front-end sale system, wherein the service operation request comprises a request message and the message type of the request message;
analyzing the request message based on the message type of the request message to obtain an analysis result;
based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message;
sending the analysis result message to an aviation direct connection sales system to trigger the aviation direct connection sales system to execute a business operation corresponding to the analysis result message, and feeding back an operation result of executing the business operation;
after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message;
and sending the result message to the front-end sale system.
An electronic device is provided in an embodiment of the present application, and its structural schematic diagram is shown in fig. 7, which specifically includes a memory 701 and one or more instructions 702, where the one or more instructions 702 are stored in the memory 701, and are configured to be executed by one or more processors 703 to perform the following operations according to the one or more instructions 702:
receiving a service operation request sent by a front-end sale system, wherein the service operation request comprises a request message and the message type of the request message;
analyzing the request message based on the message type of the request message to obtain an analysis result;
based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message;
sending the analysis result message to an aviation direct connection sales system to trigger the aviation direct connection sales system to execute a business operation corresponding to the analysis result message, and feeding back an operation result of executing the business operation;
after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message;
and sending the result message to the front-end sale system.
In the detailed description section, this application will repeat, in part, all of the claims as issued:
fig. 1 provides a message conversion method according to one or more embodiments disclosed in the present application, including: receiving a service operation request sent by a front-end sale system, wherein the service operation request comprises a request message and the message type of the request message; analyzing the request message based on the message type of the request message to obtain an analysis result; based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message; sending the analysis result message to an aviation direct connection sales system to trigger the aviation direct connection sales system to execute a business operation corresponding to the analysis result message, and feeding back an operation result of executing the business operation; after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message; and sending the result message to the front-end sale system.
Determining a transmission interface corresponding to the message type in the aviation direct connection sales system; and sending the analysis result message to the transmission interface.
Determining each key field in a preset message template based on a new distribution capability NDC communication standard; analyzing the operation result, and determining data corresponding to each key field in the operation result; and correspondingly writing the data corresponding to each key field into the message template to generate a result message.
Fig. 2 provides another message conversion method according to one or more embodiments disclosed in the present application, including: carrying out format check on the request message; after the request message passes the format inspection, determining a preset analysis strategy corresponding to the message type; and analyzing the request message based on the analysis strategy to obtain an analysis result.
Fig. 3 provides another flight plan generation method according to one or more embodiments disclosed herein, including: determining a preset target message format corresponding to the message type; judging whether the message format of the request message is matched with the target message format; if the message format of the request message is matched with the target message format, determining that the request message passes format verification; and if the message format of the request message is not matched with the target message format, determining that the request message does not pass the format check.
Fig. 4 provides another packet conversion apparatus according to one or more embodiments disclosed in the present application, including: the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving a service operation request sent by a front-end sale system, and the service operation request comprises a request message and the message type of the request message; the analysis unit is used for analyzing the request message based on the message type of the request message to obtain an analysis result; the first generation unit is used for calling a preset message template based on the traditional communication standard based on the analysis result to generate an analysis result message; the first sending unit is used for sending the analysis result message to an aviation direct connection sales system so as to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message and feed back the operation result of the executed business operation; the second generation unit is used for calling a preset message template based on a new distribution capability NDC communication standard to generate a result message based on the operation result after receiving the operation result fed back by the aviation direct connection sales system; and the second sending unit is used for sending the result message to the front-end sale system.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments disclosed herein and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features and (but not limited to) technical features having similar functions disclosed in the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A message conversion method is applied to an intermediate adaptation device, and the method comprises the following steps:
receiving a service operation request sent by a front-end sale system, wherein the service operation request comprises a request message and the message type of the request message;
analyzing the request message based on the message type of the request message to obtain an analysis result;
based on the analysis result, calling a preset message template based on the traditional communication standard to generate an analysis result message;
sending the analysis result message to an aviation direct connection sales system to trigger the aviation direct connection sales system to execute a business operation corresponding to the analysis result message, and feeding back an operation result of executing the business operation;
after receiving an operation result fed back by the aviation direct connection sales system, calling a preset message template based on a new distribution capability NDC communication standard based on the operation result to generate a result message;
and sending the result message to the front-end sale system.
2. The method according to claim 1, wherein the parsing the request packet based on the packet type of the request packet to obtain a parsing result comprises:
carrying out format check on the request message;
after the request message passes the format inspection, determining a preset analysis strategy corresponding to the message type;
and analyzing the request message based on the analysis strategy to obtain an analysis result.
3. The method of claim 2, wherein the format checking the request packet comprises:
determining a preset target message format corresponding to the message type;
judging whether the message format of the request message is matched with the target message format;
if the message format of the request message is matched with the target message format, determining that the request message passes format verification;
and if the message format of the request message is not matched with the target message format, determining that the request message does not pass the format check.
4. The method according to claim 1, wherein the sending the analysis result message to an aviation direct connection sales system comprises:
determining a transmission interface corresponding to the message type in the aviation direct connection sales system;
and sending the analysis result message to the transmission interface.
5. The method according to claim 1, wherein the step of calling a preset message template based on the NDC communication standard to generate a result message based on the operation result comprises:
determining each key field in a preset message template based on a new distribution capability NDC communication standard;
analyzing the operation result, and determining data corresponding to each key field in the operation result;
and correspondingly writing the data corresponding to each key field into the message template to generate a result message.
6. An intermediate adaptation device, comprising:
the system comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving a service operation request sent by a front-end sale system, and the service operation request comprises a request message and the message type of the request message;
the analysis unit is used for analyzing the request message based on the message type of the request message to obtain an analysis result;
the first generation unit is used for calling a preset message template based on the traditional communication standard based on the analysis result to generate an analysis result message;
the first sending unit is used for sending the analysis result message to an aviation direct connection sales system so as to trigger the aviation direct connection sales system to execute the business operation corresponding to the analysis result message and feed back the operation result of the executed business operation;
the second generation unit is used for calling a preset message template based on a new distribution capability NDC communication standard to generate a result message based on the operation result after receiving the operation result fed back by the aviation direct connection sales system;
and the second sending unit is used for sending the result message to the front-end sale system.
7. The apparatus of claim 6, wherein the parsing unit comprises:
the checking subunit is used for carrying out format checking on the request message;
a determining subunit, configured to determine a preset parsing policy corresponding to the packet type after the request packet passes the format check;
and the analysis subunit is used for analyzing the request message based on the analysis strategy to obtain an analysis result.
8. The apparatus of claim 7, wherein the checking subunit performs a format check on the request packet, and is configured to:
determining a preset target message format corresponding to the message type;
judging whether the message format of the request message is matched with the target message format;
if the message format of the request message is matched with the target message format, determining that the request message passes format verification;
and if the message format of the request message is not matched with the target message format, determining that the request message does not pass the format check.
9. A storage medium, characterized in that the storage medium comprises stored instructions, wherein when the instructions are executed, the apparatus on which the storage medium is located is controlled to execute the message conversion method according to any one of claims 1 to 5.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the message conversion method according to any one of claims 1-5.
CN202110259366.0A 2021-03-10 2021-03-10 Message conversion method, intermediate adaptation device, storage medium and electronic equipment Pending CN112995188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110259366.0A CN112995188A (en) 2021-03-10 2021-03-10 Message conversion method, intermediate adaptation device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110259366.0A CN112995188A (en) 2021-03-10 2021-03-10 Message conversion method, intermediate adaptation device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112995188A true CN112995188A (en) 2021-06-18

Family

ID=76334789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110259366.0A Pending CN112995188A (en) 2021-03-10 2021-03-10 Message conversion method, intermediate adaptation device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112995188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102829A (en) * 2022-08-25 2022-09-23 平安银行股份有限公司 Request message processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730181A (en) * 2019-10-21 2020-01-24 中国民航信息网络股份有限公司 Message conversion method, device and adapter
CN112214968A (en) * 2020-10-12 2021-01-12 中国民航信息网络股份有限公司 Message conversion method and device and electronic equipment
WO2021004536A1 (en) * 2019-07-10 2021-01-14 深圳市中兴微电子技术有限公司 Method and apparatus for parsing messages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021004536A1 (en) * 2019-07-10 2021-01-14 深圳市中兴微电子技术有限公司 Method and apparatus for parsing messages
CN110730181A (en) * 2019-10-21 2020-01-24 中国民航信息网络股份有限公司 Message conversion method, device and adapter
CN112214968A (en) * 2020-10-12 2021-01-12 中国民航信息网络股份有限公司 Message conversion method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102829A (en) * 2022-08-25 2022-09-23 平安银行股份有限公司 Request message processing method and device
CN115102829B (en) * 2022-08-25 2022-11-29 平安银行股份有限公司 Request message processing method and device

Similar Documents

Publication Publication Date Title
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
JP2009505224A (en) Fault data management
CN111400344B (en) Electronic bill printing method, device, equipment and storage medium
US20110302254A1 (en) Enterprise service bus and message processing method thereof
CN101286212A (en) Business flow path execution method, business flow path engines and its deployment method
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN106533920A (en) Customized short message sending system
CN110619571A (en) Loan application processing method and device
CN111784292A (en) Electronic passenger ticket refunding method and device, airline department system and payment system
CN112995188A (en) Message conversion method, intermediate adaptation device, storage medium and electronic equipment
CN106302770A (en) The based reminding method of business information and system
CN112463820A (en) Data calling method and device
CN110262903B (en) Middleware framework and method based on aviation reservation system
US9268514B2 (en) Formatting data
CN111861641B (en) Multi-channel order integrated management system and method based on communication industry
CN113434098B (en) Printing function realization method, device, electronic equipment, system and storage medium
CN114648012A (en) Bill processing method and device, electronic equipment and computer readable medium
CN112783450A (en) Self-service information reading, distributing and printing method and device for delivery documents
CN112836479A (en) Data report generation method, system and storage device
CN109101515B (en) Rule configuration method, server and computer-readable storage medium
CN114185604B (en) Financial service cabin system and application method and device thereof, electronic equipment and medium
CN115454697B (en) Information processing method and device for service exception, electronic equipment and storage medium
CN113762871B (en) Production data control method, device, equipment and storage medium
US20050063387A1 (en) System and method of order reexamination in electronic data interchange
US20050114147A1 (en) System and method for creating business process models by multi-modal conversation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618

RJ01 Rejection of invention patent application after publication