CN104935499A - Message format conversion method and equipment - Google Patents

Message format conversion method and equipment Download PDF

Info

Publication number
CN104935499A
CN104935499A CN201510283123.5A CN201510283123A CN104935499A CN 104935499 A CN104935499 A CN 104935499A CN 201510283123 A CN201510283123 A CN 201510283123A CN 104935499 A CN104935499 A CN 104935499A
Authority
CN
China
Prior art keywords
message
application apparatus
format conversion
conversion equipment
receipt
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
CN201510283123.5A
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510283123.5A priority Critical patent/CN104935499A/en
Publication of CN104935499A publication Critical patent/CN104935499A/en
Pending legal-status Critical Current

Links

Abstract

According to the technical scheme of a message format conversion method and equipment, the format conversion equipment receives a business message transmitted by application equipment; the format conversion equipment searches corresponding target terminal application equipment and the reception message format of the target terminal application equipment according to the message type of the business message; the format conversion equipment converts the message format of the business message to the intermediate format and converts the intermediate format to the reception message format; and the format conversion equipment sends the business message which is converted to the reception message format to the target terminal application equipment. By employing the intermediate format, the business messages with different formats are converted to the reception message format of the application equipment for receiving the business message, the application equipment for receiving and sending the business messages do not need message format conversion, the business messages are pushed to the corresponding application equipment according to the message types of the business messages, the maintainability of the message types and format conversion is improved, and the interaction process of data with different formats between the application equipment is simplified.

Description

A kind of message format conversion method and equipment
Technical field
The present invention relates to communication technical field, particularly a kind of message format conversion method and equipment.
Background technology
In distributed, multiple services network management system, between each application apparatus in network management system, need the data interaction carrying out different-format.Such as: in distributed network management system, carry out alternately with Java serialization format data between Java equipment, need to carry out alternately with ASN.1 formatted data with the network equipment or any known network management procedure, need to carry out alternately with JSON/XML formatted data with client or service end.And after getting data, each equipment can not directly use, often need to carry out a series of message format conversion, be adjusted to the information that each application apparatus needs the form received.
Application apparatus A as shown in Figure 1, B, data interaction ideograph between C, wherein, application apparatus A, B, the message format that C supports is respectively XML, Java, ASN.1, the type of service received owing to defining application apparatus A is that the service message of increase equipment needs by application apparatus B, C monitors, application apparatus A can realize the conversion of XML format and Java form, the conversion of XML format and ASN.1 form, then when to receive message format be the service message of increase equipment of XML to application apparatus A, application apparatus A needs respectively this service message to be converted to Java form by XML format and sends to application program B, this service message is converted to ASN.1 form by XML format and sends to application program C.
In this process, application A needs the format conversion of carrying out twice, and, as application apparatus B, when C needs this service message to be sent to other application apparatuss, also message format message format being converted to message recipient support is needed, namely, each application apparatus will have the function of format conversion, and want moment perception message to need the form of conversion, and application apparatus A can only realize the conversion of XML format and the Java form provided, the conversion of XML format and ASN.1 form, when there being other application apparatuss of support message format JSON also to need monitoring service type to be the service message of increase equipment, then application apparatus A can not realize the conversion of service message by XML format and JSON form.
Realizing in process of the present invention, inventor finds to there is following problem in prior art:
(1) message format transfer process is loaded down with trivial details: each application apparatus needs when receiving message to carry out format conversion, and also will carry out format conversion when sending message, and need the form that moment perception needs are changed, format conversion process is loaded down with trivial details.
(2) the mutual conversion of multiple message format can not be strained, the conversion between the form that provides can only be realized, the mutual conversion of multipart can not be met.
(3) be unfavorable for safeguarding: message is once change, and each assembly needs and then variation, and maintenance is very large, and easily makes the mistake.
Summary of the invention
This application provides a kind of message format conversion method and equipment, utilize intermediate form, automatically the service message of different-format is converted to the receipt message form of each application apparatus receiving this service message, and according to the type of message of service message, service message is pushed to corresponding application apparatus, simplify the process of the data interaction of different-format between application apparatus.
For achieving the above object, this application provides a kind of message format conversion method, be applied to and include format conversion equipment and multiple application apparatus carries out in the network management system of interacting message, the method comprises:
Described format conversion equipment receives the service message that application apparatus sends;
Described format conversion equipment finds corresponding destination application apparatus and the receipt message form of described destination application apparatus according to the type of message of described service message;
The message format of described service message is converted to intermediate form by described format conversion equipment, then is described receipt message form by described intermediate format conversion;
The described service message being converted to receipt message form is sent to described destination application apparatus by described format conversion equipment.
Wherein, described format conversion equipment finds corresponding destination application apparatus and the receipt message form of described destination application apparatus according to the type of message of described service message, specifically comprise: described format conversion equipment finds device identification corresponding to described type of message and receipt message form according to the type of message of described service message in the corresponding relation preset, and finds destination application apparatus according to the device identification of described correspondence.
Wherein, described default corresponding relation, generates especially by with under type:
Described format conversion equipment receives the registration message of application apparatus, carries the device identification of each application apparatus, the type of message of described each application apparatus and the receipt message form of described each application apparatus in wherein said registration message;
Described format conversion equipment generates the corresponding relation preset according to described device identification, described type of message and described receipt message form.
Wherein, after described format conversion equipment receives the registration message of application apparatus, described format conversion equipment determines the receipt message form of described application apparatus and the transformation rule of intermediate form;
The message format of described service message is converted to intermediate form by described format conversion equipment, be described receipt message form by described intermediate format conversion again, specifically comprise: the message format of described service message is converted to intermediate form according to described transformation rule by described format conversion equipment, then be described receipt message form by described intermediate format conversion.
Wherein, after described format conversion equipment receives the registration message of new application apparatus transmission, receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates the corresponding relation preset, and determines the receipt message form of described new application apparatus and the transformation rule of intermediate form.
Present invention also provides a kind of format conversion equipment, be applied to and include format conversion equipment and multiple application apparatus carries out, in the network management system of interacting message, comprising:
Receiver module, for receiving the service message that application apparatus sends;
Search module, for finding corresponding destination application apparatus and the receipt message form of other application apparatuss described according to the type of message of described service message;
Modular converter for the message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion;
Sending module, for sending to described destination application apparatus by the described service message being converted to receipt message form.
Wherein, describedly search module, in the corresponding relation preset, find device identification corresponding to described type of message and receipt message form specifically for the type of message according to described service message, and find destination application apparatus according to the device identification of described correspondence.
Wherein, described receiver module, also for receiving the registration message of application apparatus, carries the device identification of each application apparatus, the type of message of described each application apparatus and the receipt message form of described each application apparatus in wherein said registration message;
Described format conversion equipment also comprises: generation module, for receive application apparatus at described receiver module registration message after, generate the corresponding relation preset according to the described device identification of carrying in described registration message, described type of message and described receipt message form.
Wherein, described format conversion equipment also comprises:
Determination module, after receiving the registration message of application apparatus at described receiver module, determines the receipt message form of described application apparatus and the transformation rule of intermediate form;
Described modular converter specifically for the message format of described service message being converted to intermediate form according to described transformation rule, then is described receipt message form by described intermediate format conversion.
Wherein, described generation module, also for after receiving the registration message that new application apparatus sends, the receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates corresponding relation;
Described determination module, also for the transformation rule of the receipt message form and intermediate form of determining described new application apparatus.
Compared with prior art, the present invention has the following advantages:
By applying technical scheme of the present invention, format conversion equipment receives the service message that application apparatus sends; Corresponding destination application apparatus and the receipt message form of described destination application apparatus is found according to the type of message of described service message; The message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion; The described service message being converted to receipt message form is sent to described destination application apparatus by described format conversion equipment.Utilize intermediate form, the service message of different-format is converted to the receipt message form of the application apparatus receiving this service message, receive and send the application apparatus of service message without the need to carrying out the conversion of message format, and according to the type of message of service message, service message is pushed to corresponding application apparatus, and improve the maintainability of type of message and format conversion, simplify the process of the data interaction of different-format between application apparatus.
Accompanying drawing explanation
Fig. 1 be in prior art between application apparatus A, B, C according to interactive mode figure;
Fig. 2 is the schematic flow sheet of a kind of message format conversion method proposed by the invention;
Fig. 3 is the data interaction ideograph between application apparatus A, B, C, D being applicable to message format conversion method provided by the invention;
Fig. 4 is a kind of structural representation comprising the network management system of format conversion equipment proposed by the invention;
Fig. 5 is the structure chart of a kind of format conversion equipment proposed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in embodiments of the invention, carry out clear, complete description to the technical scheme in embodiments of the invention, obviously, the embodiments described below are only the present invention's part embodiments, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not paying the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiments of the invention protection.
As shown in Figure 2, be the schematic flow sheet of a kind of message format conversion method that embodiment one proposes, the method is applied to and includes format conversion equipment and multiple application apparatus carries out in the network management system of interacting message.
Below the method is described in detail.
The method, specifically comprises the following steps:
Step S201, format conversion equipment receive the service message that application apparatus sends.
Receive the service message of application apparatus transmission at format conversion equipment before, each application apparatus is registered on format conversion equipment, registration message is sent to format conversion equipment, carry the receipt message form sending the device identification of application apparatus of this registration message, the type of message of described application apparatus and described application apparatus in registration message, type of message refers to the various types of message for realizing network management and account management.As increased equipment message, sweep equipment message, failure message, the type of messages such as the message of account creation, amendment, deletion.Such as, Fig. 3 is application apparatus A, B, C, the ideograph of interacting message between D and between format conversion equipment, format conversion equipment receives application apparatus A, B, C, the registration message that D sends, wherein carry the device identification A of application apparatus A, the type of message received is newly added equipment, receipt message form is XML, the device identification B of application apparatus B, the type of message received is newly added equipment, receipt message form is Java, the device identification C of application apparatus C, the type of message received is newly added equipment, receipt message form is ASN.1, the device identification D of application apparatus D, the type of message received is failure message, receipt message form is Java.
Wherein, according to carrying various source code in log-on message, the receipt message form of each application apparatus can be known according to source code information:
(1) be <device> when including root element in code, when property element is respectively <id>, <label>, <ip>, support XML format data, namely receipt message form is XML;
(3) when attribute every in code is identical with Java object attribute, such as { " id ": " 1 ", " label ": " CoreSwitch ", " ip ": " 192.168.0.2 " }, then support JSON formatted data, namely receipt message form is JSON;
(3) when including AsnDeviceInfo entity in code, three attributes are Wei dev_id, dev_label, dev_ip, then support ASN.1 formatted data, namely receipt message form is ASN.1.
When after the registration message receiving application apparatus, format conversion equipment generates the corresponding relation preset according to the receipt message form of the device identification of described application apparatus, the type of message of described each application apparatus and described each application apparatus, such as, according to example above, corresponding relation as shown in table 1 can be set up:
Table 1
Device identification Type of message Receipt message form
Device identification A Newly added equipment message XML
Device identification B Newly added equipment message Java
Device identification C Newly added equipment message ASN.1
Device identification D Failure message Java
It should be noted that, add to come in when there being new application apparatus, also need to register to format conversion equipment, send registration message, after format conversion equipment receives the registration message that new application apparatus sends, the receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates the corresponding relation preset.The corresponding relation preset dynamically upgrades, and when there being new application apparatus to add, then generates the new corresponding relation preset, follow-up, when the service message received is that when deleting certain equipment, default corresponding relation also can upgrade accordingly.
Format conversion equipment receives the service message that application apparatus sends, wherein, the device identification of the application apparatus sending this service message is comprised in service message, and the type of message of service message, and message format, such as, application apparatus A have sent a newly added equipment message to format conversion equipment, and form is XML.Type of message can comprise: the message such as newly added equipment message, failure message, sweep equipment message, amendment account information, establishment account information.It should be noted that the type of message that each application apparatus can be monitored can be multiple.
After format conversion equipment receives the registration message of all application apparatuss, determine the receipt message form of all application apparatuss and the transformation rule of intermediate form.
Particularly, format conversion equipment can determine the receipt message form of all application apparatuss and the transformation rule of intermediate form by the following two kinds mode:
Mode one, format conversion equipment according to the receipt message form in the registration message received and intermediate form, can configure the bi-directional conversion rule of all receipt message forms and intermediate form.
Mode two, format conversion equipment store the transformation rule of all forms, after receiving registration message, find receipt message form in registration message regular with the bi-directional conversion of intermediate form from the transformation rule of all forms stored.
Format conversion equipment can select suitable mode to determine the receipt message form of all application apparatuss and the transformation rule of intermediate form according to concrete application scenarios.
Below in mode two, the method for the transformation rule of the receipt message form and intermediate form of determining all application apparatuss is described in detail.Such as, in Fig. 3, after format conversion equipment receives the registration message of application apparatus A, B, C, D transmission, wherein the receipt message form of application apparatus A is XML, the receipt message form of application apparatus B is Java, and the receipt message form of application apparatus C is ASN.1, and the receipt message form of application apparatus D is Java, intermediate form is Java, then format conversion equipment is configured with the format conversion rule of XML and Java, Java and XML, ASN.1 and Java, Java and ASN.1.
It should be noted that if new application apparatus adds, what this new application apparatus received is other message formats, and so format conversion equipment needs the bi-directional conversion rule determining these other message formats and intermediate form.
Step S202, find corresponding destination application apparatus and the receipt message form of described destination application apparatus according to the type of message of described service message.
Type of message according to described service message finds device identification corresponding to described type of message and receipt message form in described default corresponding relation, and finds destination application apparatus according to the device identification of described correspondence.Destination application apparatus is exactly and other application apparatuss outside the transmitting terminal application apparatus of described service message corresponding to service message type received.Such as, when the form that format conversion equipment receives application apparatus A transmission is the newly added equipment message of XML, according to the type of message of newly added equipment, device identification A, B, C is found from table 1, and the receipt message form that device identification A, B, C are corresponding respectively: XML, Java, ASN.1, owing to carrying the device identification A of sender's application apparatus A of this newly added equipment message in this newly added equipment message, so remover apparatus identifies A in the device identification found from table 1, and receipt message form that device identification A is corresponding.
The message format of described service message is converted to intermediate form by step S203, described format conversion equipment, then is described receipt message form by described intermediate format conversion.
It should be noted that, format conversion equipment advanced can be about to the message format of described service message and be converted to intermediate form, also first can carry out the receipt message form finding other application apparatuss outside application apparatus described in default corresponding relation and other application apparatuss described according to the type of message of described service message in step S102, above-mentioned two processes do not have sequencing.
Intermediate form is Java form is a kind of optimal way that the application proposes, and intermediate form can be also extended formatting, in the intermediate format for Java form is that example is described in the application.
After format conversion equipment receives service message, according to the format conversion rule of configuration, first this service message is converted to intermediate form, i.e. Java form, then according to the receipt message form searched from corresponding relation, the service message this being converted to intermediate form converts corresponding receipt message form again to.Wherein, if when receiving service message, its form is identical with intermediate form, then no longer carry out the conversion of intermediate form, if the receipt message form that needs convert to is identical with intermediate form, then no longer carry out the conversion of receipt message form, such as, format conversion equipment finds corresponding with the type of message of the newly added equipment of this service message, device identification B outside the device identification of sender's application apparatus A of described service message, C, and each self-corresponding receipt message form Java, ASN.1, and after this service message is converted to intermediate form Java by XML, convert this service message to ASN.1 form, because receipt message form is identical with intermediate form, so need not again change.Namely format conversion equipment is by as follows for this service message format conversion process: XML-Java and XML-Java-ASN.1.
Wherein, format conversion equipment can according to the receipt message form of the device identification that finds and correspondence, realizes by the conversion of the service message of the service message received and multiple format accordingly.
Intermediate form is utilized in the application, after the service message of reception is first converted to intermediate form, be converted to receipt message form again, simplify the conversion of message format, such as, if the form of the service message that format conversion equipment receives has 5 kinds, the receipt message form finally converted to also has 5 kinds, intermediate form is extended formatting, among the service message form received, also not included among the receipt message form finally converted to, then in the application, format conversion equipment only needs the service message form that realizes receiving to 5 kinds of format conversion of intermediate form, and intermediate form just can realize the conversion between this intrasystem all form to 5 kinds of format conversion of the receipt message form finally converted to, reduce the triviality of format conversion, and, if type of message or the form of application apparatus or service message change, only to need in format conversion equipment more new registration message, other application apparatuss do not need to adjust thereupon, if add the application apparatus receiving extended formatting, only need the registration message according to the application apparatus increased, configure corresponding format conversion rule, other application apparatuss do not need to adjust thereupon yet, reduce the complexity of system maintenance.
The described service message being converted to receipt message form is sent to described destination application apparatus by step S204, format conversion equipment.
The service message being converted to receipt message form is sent to respectively find from corresponding relation, with described receipt message form corresponding, the destination application apparatus that identical with the type of message of service message received, described device identification is corresponding.Such as, in example above, the service message being converted to Java form is sent to destination application apparatus B, the service message being converted to ASN.1 form is sent to destination application apparatus C.
It should be noted that, each application apparatus in system is carrying out the mutual of data with other application apparatuss, when there is format conversion, needs service message to send to format conversion equipment, after completing format conversion by format conversion equipment, service message is sent.
In the application, format conversion equipment outwards provides Message Queuing Services compatibility interface (as AMQP, Advanced Message Queuing Protocol), for upper strata user provides the functional interface consistent with standard message queue service, and in conjunction with general messenger service middleware (as ActiveMQ, RabbitMQ etc.), the service message of different-format is converted to the receipt message form of the application apparatus receiving this service message.
By applying technical scheme of the present invention, format conversion equipment receives the service message that application apparatus sends; The receipt message form of other application apparatuss outside corresponding described application apparatus and other application apparatuss described is found according to the type of message of described service message; The message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion; The described service message being converted to receipt message form is sent to other application apparatuss described.Utilize intermediate form, the service message of different-format is converted to the receipt message form of the application apparatus receiving this service message, receive and send the application apparatus of service message without the need to carrying out the conversion of message format, and according to the type of message of service message, service message is pushed to corresponding application apparatus, and improve the maintainability of type of message and format conversion, simplify the process of the data interaction of different-format between application apparatus.
Below in conjunction with concrete application scenarios, the above-described embodiment in the application is described in detail.
As shown in Figure 4, network management device, log collection equipment, message informing equipment and account management equipment is comprised in network management server, suppose that intermediate form is Java, according to the message format of the device identification in the registration message of each application apparatus and type of message and reception, the corresponding relation preset of generation is as shown in table 2:
Table 2
Device identification Type of message Receipt message form
Network management device Newly added equipment message; Account creation message XML
Log collection equipment Newly added equipment message; Account creation message Java
Message informing equipment Newly added equipment message; Account creation message ASN.1
Account management equipment Account creation message Java
As seen from the above table, network management device, log collection equipment and message informing equipment can monitor newly added equipment message and account creation message, and account management equipment can only monitor account creation message.
After network management device to have sent the message of a newly added equipment to format conversion equipment, format conversion equipment can obtain destination application apparatus according to table 2, i.e. daily record collecting device and message informing equipment, and receipt message form Java corresponding to log collection equipment and receipt message form ASN.1 corresponding to message informing equipment.Then the format conversion of the message of the newly added equipment of reception is intermediate form Java by format conversion equipment, receipt message form due to log collection equipment is Java, therefore after being converted to intermediate form Java, directly be pushed to log collection equipment, after converting the message of described newly added equipment to ASN.1 form by intermediate form Java again, be pushed to message informing equipment simultaneously.
After network management device to have sent the message of an account creation to format conversion equipment, format conversion equipment can obtain destination application apparatus according to table 2, i.e. daily record collecting device, message informing equipment and account management equipment, and receipt message form ASN.1 corresponding to receipt message form Java corresponding to log collection equipment, message informing equipment and receipt message form Java corresponding to account management equipment.Then the format conversion of the message of the account creation of reception is intermediate form Java by format conversion equipment, because the receipt message form of log collection equipment and account management equipment is Java, therefore after being converted to intermediate form Java, directly this message is pushed to log collection equipment and account management equipment respectively, after converting this message to ASN.1 by intermediate form Java again, is pushed to message informing equipment simultaneously.
By applying technical scheme of the present invention, format conversion equipment receives the service message that application apparatus sends; The receipt message form of other application apparatuss outside corresponding described application apparatus and other application apparatuss described is found according to the type of message of described service message; The message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion; The described service message being converted to receipt message form is sent to other application apparatuss described.Utilize intermediate form, the service message of different-format is converted to the receipt message form of the application apparatus receiving this service message, receive and send the application apparatus of service message without the need to carrying out the conversion of message format, and according to the type of message of service message, service message is pushed to corresponding application apparatus, and improve the maintainability of type of message and format conversion, simplify the process of the data interaction of different-format between application apparatus.
Based on the design identical with embodiment one, a kind of format conversion equipment is additionally provided in the application, be applied to and include format conversion equipment and multiple application apparatus carries out in the network management system of interacting message, as shown in Figure 5, for the structural representation of a kind of format conversion equipment that embodiment two proposes
This format conversion equipment, specifically comprises:
Receiver module 51, for receiving the service message that application apparatus sends;
Search module 52, for finding corresponding destination application apparatus and the receipt message form of other application apparatuss described according to the type of message of described service message;
Modular converter 53 for the message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion;
Sending module 54, for sending to described destination application apparatus by the described service message being converted to receipt message form.
Wherein, describedly search module 52, in the corresponding relation preset, find device identification corresponding to described type of message and receipt message form specifically for the type of message according to described service message, and find destination application apparatus according to the device identification of described correspondence.
Wherein, described receiver module 51, also for receiving the registration message of application apparatus, carries the device identification of described application apparatus, the type of message of described application apparatus and the receipt message form of described application apparatus in wherein said registration message,
Further, this format conversion equipment also comprises generation module, for after described receiver module 41 receives the registration message of application apparatus, generate the corresponding relation preset according to the described device identification of carrying in described registration message, described type of message and described receipt message form.
Further, this format conversion equipment also comprises determination module, after receiving the registration message of all application apparatuss at described receiver module, determines the receipt message form of described application apparatus and the transformation rule of intermediate form;
Described modular converter specifically for the message format of described service message being converted to intermediate form according to described transformation rule, then is described receipt message form by described intermediate format conversion.
Further, described generation module, also for after receiving the registration message that new application apparatus sends, the receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates corresponding relation.
Described determination module, also for the transformation rule of the receipt message form and intermediate form of determining described new application apparatus.
By applying technical scheme of the present invention, format conversion equipment receives the service message that application apparatus sends; The receipt message form of other application apparatuss outside corresponding described application apparatus and other application apparatuss described is found according to the type of message of described service message; The message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion; The described service message being converted to receipt message form is sent to other application apparatuss described.Utilize intermediate form, the service message of different-format is converted to the receipt message form of the application apparatus receiving this service message, receive and send the application apparatus of service message without the need to carrying out the conversion of message format, and according to the type of message of service message, service message is pushed to corresponding application apparatus, and improve the maintainability of type of message and format conversion, simplify the process of the data interaction of different-format between application apparatus.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform each method implementing described in scene of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram preferably implementing scene, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device implemented in scene can carry out being distributed in the device of enforcement scene according to implementing scene description, also can carry out respective change and being arranged in the one or more devices being different from this enforcement scene.The module of above-mentioned enforcement scene can merge into a module, also can split into multiple submodule further.
The invention described above sequence number, just to describing, does not represent the quality implementing scene.
Be only several concrete enforcement scene of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. a message format conversion method, be applied in the network management system including format conversion equipment and multiple application apparatus, it is characterized in that, the method comprises:
Described format conversion equipment receives the service message that application apparatus sends;
Described format conversion equipment finds corresponding destination application apparatus and the receipt message form of described destination application apparatus according to the type of message of described service message;
The message format of described service message is converted to intermediate form by described format conversion equipment, then is described receipt message form by described intermediate format conversion;
The described service message being converted to receipt message form is sent to described destination application apparatus by described format conversion equipment.
2. the method for claim 1, is characterized in that, described format conversion equipment finds corresponding destination application apparatus and the receipt message form of described destination application apparatus according to the type of message of described service message, specifically comprises:
Described format conversion equipment finds device identification corresponding to described type of message and receipt message form according to the type of message of described service message in the corresponding relation preset, and finds destination application apparatus according to the device identification of described correspondence.
3. method as claimed in claim 2, it is characterized in that, described default corresponding relation, generates especially by with under type:
Described format conversion equipment receives the registration message of application apparatus, carries the device identification of each application apparatus, the type of message of described each application apparatus and the receipt message form of described each application apparatus in wherein said registration message;
Described format conversion equipment generates the corresponding relation preset according to described device identification, described type of message and described receipt message form.
4. method as claimed in claim 3, is characterized in that,
After described format conversion equipment receives the registration message of application apparatus, described format conversion equipment determines the receipt message form of described application apparatus and the transformation rule of intermediate form;
The message format of described service message is converted to intermediate form by described format conversion equipment, be described receipt message form by described intermediate format conversion again, specifically comprise: the message format of described service message is converted to intermediate form according to described transformation rule by described format conversion equipment, then be described receipt message form by described intermediate format conversion.
5. method as claimed in claim 4, it is characterized in that, described method also comprises:
After described format conversion equipment receives the registration message of new application apparatus transmission, receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates the corresponding relation preset, and determines the receipt message form of described new application apparatus and the transformation rule of intermediate form.
6. a format conversion equipment, is applied to and includes format conversion equipment and multiple application apparatus carries out, in the network management system of interacting message, it is characterized in that, comprising:
Receiver module, for receiving the service message that application apparatus sends;
Search module, for finding corresponding destination application apparatus and the receipt message form of other application apparatuss described according to the type of message of described service message;
Modular converter for the message format of described service message is converted to intermediate form, then is described receipt message form by described intermediate format conversion;
Sending module, for sending to described destination application apparatus by the described service message being converted to receipt message form.
7. format conversion equipment as claimed in claim 6, is characterized in that,
Describedly search module, in the corresponding relation preset, find device identification corresponding to described type of message and receipt message form specifically for the type of message according to described service message, and find destination application apparatus according to the device identification of described correspondence.
8. format conversion equipment as claimed in claim 7, is characterized in that,
Described receiver module, also for receiving the registration message of application apparatus, carries the device identification of each application apparatus, the type of message of described each application apparatus and the receipt message form of described each application apparatus in wherein said registration message;
Described format conversion equipment also comprises: generation module, for receive application apparatus at described receiver module registration message after, generate the corresponding relation preset according to the described device identification of carrying in described registration message, described type of message and described receipt message form.
9. format conversion equipment as claimed in claim 8, it is characterized in that, described format conversion equipment also comprises:
Determination module, after receiving the registration message of application apparatus at described receiver module, determines the receipt message form of described application apparatus and the transformation rule of intermediate form;
Described modular converter specifically for the message format of described service message being converted to intermediate form according to described transformation rule, then is described receipt message form by described intermediate format conversion.
10. format conversion equipment as claimed in claim 9, is characterized in that,
Described generation module, also for after receiving the registration message that new application apparatus sends, the receipt message form according to the device identification of the described new application apparatus carried in described registration message, the type of message of described new application apparatus and described new application apparatus generates corresponding relation;
Described determination module, also for the transformation rule of the receipt message form and intermediate form of determining described new application apparatus.
CN201510283123.5A 2015-05-28 2015-05-28 Message format conversion method and equipment Pending CN104935499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510283123.5A CN104935499A (en) 2015-05-28 2015-05-28 Message format conversion method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510283123.5A CN104935499A (en) 2015-05-28 2015-05-28 Message format conversion method and equipment

Publications (1)

Publication Number Publication Date
CN104935499A true CN104935499A (en) 2015-09-23

Family

ID=54122474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510283123.5A Pending CN104935499A (en) 2015-05-28 2015-05-28 Message format conversion method and equipment

Country Status (1)

Country Link
CN (1) CN104935499A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553832A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Message sending and receiving method and device
CN106452839A (en) * 2016-09-05 2017-02-22 杭州华为数字技术有限公司 Message report method and device
CN106649428A (en) * 2016-08-09 2017-05-10 广州视睿电子科技有限公司 Analyzing method and apparatus of storage files
CN106897185A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of method and device of output abnormality
CN108231130A (en) * 2016-12-15 2018-06-29 北京兆易创新科技股份有限公司 A kind of eMMC test methods and device
CN108363737A (en) * 2018-01-19 2018-08-03 深圳市宏电技术股份有限公司 A kind of conversion method of data format, device and equipment
CN109542647A (en) * 2018-11-21 2019-03-29 泰康保险集团股份有限公司 Information transmitting administrative method and device, electronic equipment, storage medium
CN110196778A (en) * 2019-05-09 2019-09-03 中国航空工业集团公司西安航空计算技术研究所 A kind of message conversion method and device
CN110727646A (en) * 2019-10-10 2020-01-24 京东数字科技控股有限公司 Format conversion method and device for system log, electronic equipment and computer medium
CN111447257A (en) * 2020-03-09 2020-07-24 中国建设银行股份有限公司 Message conversion method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172484A1 (en) * 2000-04-04 2004-09-02 Gudmundur Hafsteinsson Device-specific communicating between a transmitting device and a receving device
CN101453710A (en) * 2008-12-24 2009-06-10 中国移动通信集团北京有限公司 Method and apparatus for message conversion between heterogeneous service systems
CN101771960A (en) * 2009-01-04 2010-07-07 中国移动通信集团公司 Service invoking method for mobile network, and service gateway, service platform and system thereof
CN104391826A (en) * 2014-10-31 2015-03-04 北京思特奇信息技术股份有限公司 Data format conversion method and data format converter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172484A1 (en) * 2000-04-04 2004-09-02 Gudmundur Hafsteinsson Device-specific communicating between a transmitting device and a receving device
CN101453710A (en) * 2008-12-24 2009-06-10 中国移动通信集团北京有限公司 Method and apparatus for message conversion between heterogeneous service systems
CN101771960A (en) * 2009-01-04 2010-07-07 中国移动通信集团公司 Service invoking method for mobile network, and service gateway, service platform and system thereof
CN104391826A (en) * 2014-10-31 2015-03-04 北京思特奇信息技术股份有限公司 Data format conversion method and data format converter

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553832A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Message sending and receiving method and device
CN106897185B (en) * 2016-07-08 2020-04-24 阿里巴巴集团控股有限公司 Method and device for outputting abnormity
CN106897185A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of method and device of output abnormality
CN106649428A (en) * 2016-08-09 2017-05-10 广州视睿电子科技有限公司 Analyzing method and apparatus of storage files
CN106452839A (en) * 2016-09-05 2017-02-22 杭州华为数字技术有限公司 Message report method and device
CN108231130A (en) * 2016-12-15 2018-06-29 北京兆易创新科技股份有限公司 A kind of eMMC test methods and device
CN108363737A (en) * 2018-01-19 2018-08-03 深圳市宏电技术股份有限公司 A kind of conversion method of data format, device and equipment
CN108363737B (en) * 2018-01-19 2022-04-12 深圳市宏电技术股份有限公司 Data format conversion method, device and equipment
CN109542647B (en) * 2018-11-21 2020-11-24 泰康保险集团股份有限公司 Information transmission management method and device, electronic device and storage medium
CN109542647A (en) * 2018-11-21 2019-03-29 泰康保险集团股份有限公司 Information transmitting administrative method and device, electronic equipment, storage medium
CN110196778A (en) * 2019-05-09 2019-09-03 中国航空工业集团公司西安航空计算技术研究所 A kind of message conversion method and device
CN110727646A (en) * 2019-10-10 2020-01-24 京东数字科技控股有限公司 Format conversion method and device for system log, electronic equipment and computer medium
CN110727646B (en) * 2019-10-10 2021-05-04 京东数字科技控股有限公司 Format conversion method and device for system log, electronic equipment and computer medium
CN111447257A (en) * 2020-03-09 2020-07-24 中国建设银行股份有限公司 Message conversion method and device
CN111447257B (en) * 2020-03-09 2022-10-21 中国建设银行股份有限公司 Message conversion method and device

Similar Documents

Publication Publication Date Title
CN104935499A (en) Message format conversion method and equipment
EP3399715B1 (en) Protocol conversion method, platform, and protocol conversion gateway
CN102845123B (en) Virtual private cloud connection method and tunnel proxy server
CN110839084B (en) Session management method, device, equipment and medium
CN102821109A (en) Method, associated equipment and system for realizing data sharing in instant communication application
CN102098330A (en) Method, device and system for asynchronous transmission based on json data format
CN109729115B (en) Method, device, proxy server and terminal equipment for realizing distributed computation
CN104144098A (en) Information pushing method and system and pushing server equipment
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
EP2905938A1 (en) Method for acquiring locating information, terminal and mobile broadband interface model (mbim) device
CN105120002A (en) Information processing method and information processing device
CN105656643A (en) Method and equipment for performing compatible management based on network configuration protocol
US8978048B2 (en) Information processing system, control method, and non-transitory computer readable medium storing program
CN106936937B (en) Method and device for realizing universal interface for internet service interaction
CN104994333A (en) Medical image transfer device, client terminal, transmission system and transmission method thereof
US20160100021A1 (en) Information processing device, destination information updating method, and record medium
CN112422565B (en) Message processing method and device, storage medium and electronic device
CN103795810A (en) Data distribution system and method and central server of data distribution system
CN110716524B (en) WEB-based ESOP system
US20190306073A1 (en) Method and device for enhancing the throughput between smart meter and server
CN113419745A (en) Application instance number management method and device, electronic equipment and computer readable medium
CN113760482A (en) Task processing method, device and system
US10834541B2 (en) Method for setting MCPTT group, device, and system
CN111402044A (en) Data configuration system and data configuration method thereof
CN105263127A (en) Short message communication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150923