CN104378362A - Method and device for carrying out conversion of message interfaces - Google Patents

Method and device for carrying out conversion of message interfaces Download PDF

Info

Publication number
CN104378362A
CN104378362A CN201410593348.6A CN201410593348A CN104378362A CN 104378362 A CN104378362 A CN 104378362A CN 201410593348 A CN201410593348 A CN 201410593348A CN 104378362 A CN104378362 A CN 104378362A
Authority
CN
China
Prior art keywords
file
interface
service
message interface
message
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.)
Granted
Application number
CN201410593348.6A
Other languages
Chinese (zh)
Other versions
CN104378362B (en
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 Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410593348.6A priority Critical patent/CN104378362B/en
Publication of CN104378362A publication Critical patent/CN104378362A/en
Application granted granted Critical
Publication of CN104378362B publication Critical patent/CN104378362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/08Protocols for interworking; Protocol conversion
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method and device for carrying out conversion of message interfaces. The method comprises the steps that message interface files are read, wherein the message interface files comprise the content of at least one message interface; according to the content of all the message interfaces in the message interface files, service catalog interface files, corresponding to the message interfaces, of an xsd format are generated respectively; for each service catalog interface file, to be processed, selected by a user from the generated service catalog interface files, processing steps that according to the service catalog interface files to be processed and a pre-configured configuration file generator list corresponding to the service catalog interface files to be processed, configuration files, of an xml format, corresponding to the service catalog interface files to be processed are generated are carried out. By the adoption of the method and device for carrying out the conversion of the message interfaces, batch conversion of the message interfaces can be achieved automatically, operation is convenient to carry out, accuracy is high, and working efficiency is improved effectively. In addition, the accuracy of the generated configuration files can be guaranteed through configuration conflict inspection.

Description

For carrying out method and the device of message interface conversion
Technical field
The present invention relates to data processing field, more specifically, relating to a kind of method for carrying out message interface conversion and device.
Background technology
In existing banking system, ESB (Enterprise Service Bus, ESB) message interface of the excel form each transaction system provided is needed to change into the message of corresponding form, various types of message such as communication packet, streaming communication packet of such as xml form.
In order to realize the format conversion of message interface, usually existing IDE (a kind of Integrated Development Tool for exploitation code on ESB, configuration) instrument is utilized, according to the message interface of the excel form that other system provides, the mode that manually field is added one by one is adopted field contents to be added to BIPBuilder (ESB platform development instrument, be used as IDE developing instrument) in, then directly generate the message format of demand.But message interface needs amendment regularly, needs so again again the amendment message of field one by one, wastes time and energy and easily make mistakes.And existing mode can only process single transaction message interface, batch process message interface easily of having no idea, makes operating efficiency low.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of method for carrying out message interface conversion and device, automatically can realize the Batch conversion of message interface, convenient and accuracy rate is high, effectively increase work efficiency.
Embodiments providing a kind of method for carrying out message interface conversion, comprising:
Read message interface file, described message interface file comprises the content of at least one message interface;
According to the content of each message interface in described message interface file, generate the service catalogue interface document of xsd form corresponding with each message interface respectively;
The each pending service catalogue interface document selected from the described service catalogue interface document generated for user carries out following process:
According to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
Correspondingly, the embodiment of the present invention also provides a kind of device for carrying out message interface conversion, comprising:
File read module, for reading message interface file, described message interface file comprises the content of at least one message interface;
First file generating module, for the content according to each message interface in described message interface file, generates the service catalogue interface document of xsd form corresponding with each message interface respectively;
Second file generating module, carry out following process for each pending service catalogue interface document selected from the described service catalogue interface document generated for user:
According to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
The embodiment of the present invention method and the device for the carrying out message interface conversion that provide being provided, automatically can realizing the Batch conversion of message interface, convenient and accuracy rate is high, effectively increase work efficiency.In addition, by being configured conflicting inspection, the accuracy of the configuration file generated can be guaranteed.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method for carrying out message interface conversion according to the embodiment of the present invention;
Fig. 2 A is the schematic diagram of the partial content of a kind of message interface according to the embodiment of the present invention;
Fig. 2 B is the schematic flow sheet of a kind of method according to message interface file generated xsd file according to the embodiment of the present invention;
Fig. 3 A is a kind of schematic flow sheet obtaining the method for the content of single message interface according to the embodiment of the present invention;
Fig. 3 B is a kind of schematic flow sheet realizing the method for step 38 according to Fig. 3 A illustrated embodiment;
Fig. 4 is a kind of schematic flow sheet generating the method for xml configuration file according to service catalogue interface document according to the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the method checked according to a kind of configuration conflict of the embodiment of the present invention;
Fig. 6 is the calcspar of a kind of device for carrying out message interface conversion according to the embodiment of the present invention;
Fig. 7 is the calcspar according to a kind of first file generating module 62 embodiment illustrated in fig. 6;
Fig. 8 A is the calcspar according to a kind of second file generating module 63 embodiment illustrated in fig. 6;
Fig. 8 B is the calcspar according to a kind of second file generating module 63 embodiment illustrated in fig. 6.
Embodiment
Below in conjunction with accompanying drawing, clear, complete description is carried out to the technical scheme in the embodiment of the present invention.
Fig. 1 is the schematic flow sheet of a kind of method for carrying out message interface conversion according to the embodiment of the present invention, and with reference to Fig. 1, described method comprises:
11: read message interface file, described message interface file comprises the content of at least one message interface.
Alternatively, in a kind of implementation of the present embodiment, the path of message interface file can be specified by user, then carry out read operation according to the path of message interface file.Described message interface file can be excel (electrical form) file.
12: according to the content of each message interface in described message interface file, generate the service catalogue interface document of xsd form corresponding with each message interface respectively.
Alternatively, in a kind of implementation of the present embodiment, according to the beginning line number of each message interface and the content that line number obtains each field of each message interface can be terminated, that is, obtain the content of each message interface.Then described service catalogue interface document corresponding with each message interface is respectively generated according to the content of each field obtained.Further alternatively, determine the beginning line number of each message interface according to the position of keyword in described message interface file of each message interface, determine the end line number of preceding message interface according to the beginning line number of posterior message interface in described message interface file.Wherein, described keyword can be the field representing that message interface starts, such as, and type of service field mentioned below.
13: carry out the process in 14 for user's each pending service catalogue interface document of selecting from the described service catalogue interface document generated.
14: according to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
Alternatively, in a kind of implementation of the present embodiment, before 13, determine pending service catalogue interface document according to the selection operation of user in the list of service catalogue interface document.
Alternatively, in a kind of implementation of the present embodiment, configuration file generator can form based on Freemarker (a kind of template engine) mould plate technique and according to characteristic (form of such as configuration file, the name of general structure, specifically label and the attribute definition etc.) customization of configuration file, such as, can comprise: service end message configuration file generator, channel end message configuration file generator, service profiles maker, data dictionary configuration file generator, channel data dictionary configuration file generator etc.It will be appreciated by those skilled in the art that configuration file generator can be expanded according to demand.
The method for carrying out message interface conversion that theres is provided of the embodiment of the present invention being provided, automatically can realizing the Batch conversion of message interface, convenient and accuracy rate is high, effectively increase work efficiency.
Alternatively, in a kind of implementation of the present embodiment, in 12, message interface file can be that band maps, and also can be not with mapping, be described respectively below.
If described message interface file is the message interface file not with mapping, then the described service catalogue interface document generated in 12 comprises the xsd file of not containment mapping information.Now, 14 can be realized by following process: according to the xsd file generated service interface object of described not containment mapping information; Call configuration file generator to process described service interface object according to the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
If described message interface file is the message interface file that band maps, then the described service catalogue interface document generated comprises the service end xsd file of not containment mapping information and the channel end xsd file of containment mapping information.Now, 14 can be realized by following process: according to described service end xsd file generated service end service interface object; According to described channel end xsd file generated channel end service interface object, and according to the map information that described channel end xsd file comprises, mapping ruler is set in described channel end service interface object; Call configuration file generator to process described channel end service interface object according to pre-configured channel end configuration file generator list, generate the channel configuration file of the xml form corresponding with described pending service catalogue interface document; Call configuration file generator to process described service end service interface object according to pre-configured service end configuration file generator list, generate the service system configuration file of the xml form corresponding with described pending service catalogue interface document.
Wherein, in " not the xsd file of containment mapping information " and " not the service end xsd file of containment mapping information ", only comprise the content of message interface and not containment mapping information; In " containment mapping information xsd file " and " the channel end xsd file of containment mapping information ", comprise content and the map information of message interface simultaneously.
Alternatively, in a kind of implementation of the present embodiment, when generating service catalogue interface document according to the content of message interface, generate information on services, described information on services comprises the file path name of service catalogue interface document, carries out file reading process so that follow-up according to file path name.
Fig. 2 A is the schematic diagram of the partial content of a kind of message interface according to the embodiment of the present invention, and Fig. 2 B is the schematic flow sheet of a kind of method according to message interface file generated xsd file according to the embodiment of the present invention, and with reference to Fig. 2 A and Fig. 2 B, described method comprises:
21: component result object.
22: read message interface file (excel file).
23: obtain according to keyword the line number that all message interfaces start, and generate and start line number list.
As shown in Figure 2 A, " COS " field is positioned at the starting position of message interface, therefore, can " COS " as described keyword.In other embodiments, also can other field as described keyword, this is determined by the content of message interface itself, and the present invention does not do concrete restriction to this.
Be only a part for a message interface in message interface file as shown in Figure 2 A, multiple message interface can be had in a message interface file, therefore, can determine according to described keyword the line number that each message interface starts.
24: judge that whether start line number list travels through end, if terminated, then returns results object, otherwise performs 25.
25: the end line number obtaining message interface.Such as, determine the end line number of preceding message interface adjacent with it according to the beginning line number of posterior message interface, the line number terminated according to message interface determines the line number of last message interface.
26: according to starting line number and terminating the content that line number obtains excel, namely the content of each field of current message interface is obtained, and generate xsd file and the service information object of single service, wherein, described information on services object can comprise the pathname of xsd file, in addition, the success of xsd file generated or failed status indicator etc. can also be comprised.Described single service refers to the service corresponding to current message interface.
27: add information on services object to result object, and perform 24.
In the present embodiment, start line number list by traversal, then start line number for each, obtain the content of the message interface of its correspondence and generate xsd file.Like this, can in bulk for all message interfaces in message interface file generate corresponding xsd file after traversal terminates.
In the present embodiment, by Mass production xsd file, select basis for user provides, make user can select the xsd file carrying out changing as required.
In the embodiment depicted in figure 2b the method being xsd file by the message interface file transform not with mapping is illustrated, on this basis, in conjunction with in embodiment illustrated in fig. 1 for the explanation not with the message interface file of mapping and the service catalogue interface document of correspondence, how those skilled in the art's easy understand is changed the message interface file that band maps, and does not repeat herein.
Fig. 3 A is a kind of schematic flow sheet obtaining the method for the content of single message interface according to the embodiment of the present invention, and still composition graphs 2A is illustrated in the present embodiment.As shown in Figure 3A, described method comprises:
31: obtain transaction code (as shown in Figure 2 A, the 4th row of begin column); Obtain backstage transaction code (as shown in Figure 2 A, the 6th row of begin column).
32: obtain system type.Described system type refers to the Platform Type providing message interface file, the platform that this platform can be to provide general message interface, the platform etc. the platform of P6 (P6 is a kind of host services platform) message interface being provided, CCBS (CCBS is Construction Bank's core banking system) message interface is provided, correspondingly, excel file can be general message interface document, P6 message interface file or CCBS message interface file, and the present invention does not do concrete restriction to this.
In a kind of specific implementation, can name message interface file by system type, such as, with system type name sheet (list) title, the name then by reading message interface file obtains described system type.Or adopt the mode of artificial input to obtain described system type.
33: system type is added in xsd data.
34: judge whether all row travel through end, if terminated, then generate xsd end data, export xsd file, and return service information object; If do not terminated, then perform 35.
35: whether what judge current traversal is request message, if it is perform 36, otherwise perform 39.
36: format checking is carried out to request message.Such as, travel through each row to judge whether to lack necessary field etc.
37: obtain field project name, if project name is sky, skip this step.
38: other attribute obtaining field, and add xsd data to.Then 34 are performed.
39: format checking is carried out to response message.
40: obtain field project name, if project name is sky, skip this step.
41: other attribute obtaining field, and add xsd data to.Then 34 are performed.
It will be appreciated by those skilled in the art that Fig. 3 A illustrated embodiment can as a kind of specific implementation of the step 26 of Fig. 2 B illustrated embodiment.
Fig. 3 B is a kind of schematic flow sheet realizing the method for step 38 according to Fig. 3 A illustrated embodiment, and still composition graphs 2A is illustrated in the present embodiment.As shown in Figure 3 B, described method comprises:
381: judge whether current field project name belongs to according to current field project name and quote message fragment.If so, then 382 are performed; Otherwise perform 383.Wherein, can the form of historically field project name and attribute thereof, judge whether field project name belongs to and quote message fragment.
382: generate field object and name, length, the attribute in territory are set.Then 386 are performed.
383: the property value obtaining " Chinese ", " input length ", " field attribute ", " whether necessary ", " mark " and " supplementary notes ".
384: generate field object, the above-mentioned property value obtained is set in field object.
385: escape process is carried out to the property value of Chinese; Type and length are changed; Escape process is carried out to the property value of supplementary notes.Type wherein refers to thresholding type (comprising: int, double, string etc.)
386: whether will must be converted to nillable (attribute).
387: judge whether field type is array, if it is perform 389, otherwise perform 388.
388: generate array field xsd data.
389: generate simple field xsd data.
Fig. 4 is a kind of schematic flow sheet generating the method for xml configuration file according to service catalogue interface document according to the embodiment of the present invention, and with reference to Fig. 4, described method comprises:
401: build xml configuration file and generate result.
402: the type obtaining service catalogue interface document according to information on services.Such as, if service catalogue interface document comprises the file in two different paths, then for supporting the type mapped, if comprise a file, then for not supporting the type mapped.
403: judge whether it supports to map, if do not supported, then performs 404 according to the type of service catalogue interface document; Otherwise perform 406.
404: obtain service end xsd file path name, read xsd file and generate service interface object.
405: according to configuration file generator list and the service interface object of configuration, generate all configuration files.After 405, return xml configuration file and generate result.
406: obtain service end xsd file path name, read xsd file and generate service end service interface object.
407: obtain channel end xsd file path name, read xsd file and generate channel end service interface object.
408: request and response mapping ruler are set to channel end service interface object.
409: according to the configuration file generator list of channel end and the channel end service interface object of configuration, generate all channel configuration files.
410: according to the list of service end configuration file generator and the service end service interface object of configuration, generate all service system configuration files.After 410, return xml configuration file and generate result.
Alternatively, in various embodiments of the present invention, after generation xml configuration file, conflicting inspection can be configured according to the configuration file of the configuration file of the xml form generated to the xml form of current generation.Fig. 5 is the schematic flow sheet of the method checked according to a kind of configuration conflict of the embodiment of the present invention, the method may be used for, after generation xml configuration file, being configured conflicting inspection according to the xml configuration file (being hereafter called target xml configuration file) of the xml configuration file generated before (being hereafter called original xml configuration file) to current generation.With reference to Fig. 5, described method comprises:
51: resolve original xml configuration file and target xml configuration file to xml object.
52: whether traversal target xml node (that is, the label node in target xml configuration file) terminates.If do not terminated, then perform 53, otherwise echo check result.
53: judge whether current goal xml node repeats with the node contrasted in node listing, if do not repeated, then performs 54; Otherwise return 52.Wherein, two nodes repeat to refer to that the attribute (such as: title, length etc.) of two nodes is identical.
54: judge that whether current goal xml node is of the same name with the node contrasted in node listing, if not of the same name, then perform 55; Otherwise perform 59.
55: current goal xml node is added to and contrasts in node listing.
56: obtain the original xpath that need carry out contrasting.
57: obtain the original xml node that need carry out contrasting.
It will be appreciated by those skilled in the art that 56 and 57 can obtain according to original xml configuration file, do not repeat herein.
58: current goal xml node and original xml node are contrasted, whether other attribute (attribute outside title) of both judgements is identical, if identical, then returns 52; If different, then perform 59.
59: current goal xml node is added in check result.
In the present embodiment, xml node in original xml configuration file is carried out attribute contrast as comparison other to the target xml node in target xml configuration file, if there is property contradictories, then the target xml node that there is property contradictories is added in check result, the process of message interface and so on of modifying so that follow-up.
Below by reference to the accompanying drawings embodiment of the method for the present invention is illustrated, below in conjunction with accompanying drawing, device embodiment of the present invention is described.
Fig. 6 is the calcspar of a kind of device for carrying out message interface conversion according to the embodiment of the present invention, with reference to Fig. 6, message interface conversion equipment 6 comprises file read module 61, first file generating module 62 and the second file generating module 63, is described respectively below.
File read module 61, for reading message interface file, described message interface file comprises the content of at least one message interface.
Alternatively, in a kind of implementation of the present embodiment, the path of message interface file can be specified by user, then carry out read operation according to the path of message interface file.Described message interface file can be excel (electrical form) file.
First file generating module 62, for the content according to each message interface in described message interface file, generates the service catalogue interface document of xsd form corresponding with each message interface respectively.
Second file generating module 63, each pending service catalogue interface document for selecting from the described service catalogue interface document generated for user carries out following process: according to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
Alternatively, in a kind of implementation of the present embodiment, described device can also comprise for the module according to the pending service catalogue interface document of the selection operation acknowledgement of user to service catalogue interface document.
The message interface conversion equipment that theres is provided of the embodiment of the present invention is provided, automatically can realizes the Batch conversion of message interface, convenient and accuracy rate is high, effectively increase work efficiency.
Fig. 7 is the calcspar according to a kind of first file generating module 62 embodiment illustrated in fig. 6, and with reference to Fig. 7, the first file generating module 62 can comprise:
Field contents obtains submodule 621, for according to the beginning line number of each message interface with terminate the content that line number obtains each field of each message interface.
File generated submodule 622, generates described service catalogue interface document corresponding with each message interface respectively for the content according to each field obtained.
Alternatively, in a kind of implementation of the present embodiment, when described message interface file is the message interface file not with mapping, the described service catalogue interface document that the first file generating module 62 generates comprises the xsd file of not containment mapping information.
Alternatively, in a kind of implementation of the present embodiment, when described message interface file is the message interface file of band mapping, the described service catalogue interface document that the first file generating module 62 generates comprises the service end xsd file of not containment mapping information and the channel end xsd file of containment mapping information.
Fig. 8 A is the calcspar according to a kind of second file generating module 63 embodiment illustrated in fig. 6, and with reference to Fig. 8 A, the second file generating module 63 comprises:
Service interface object generates submodule 631, for when described message interface file is the message interface file not with mapping, according to the xsd file generated service interface object of described not containment mapping information.
Configuration file generates submodule 632, for calling configuration file generator to process described service interface object according to the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
Fig. 8 B is the calcspar according to a kind of second file generating module 63 embodiment illustrated in fig. 6, and with reference to Fig. 8 B, the second file generating module 63 comprises:
Service end object generates submodule 633, for being when being with the message interface file mapped at described message interface file, according to described service end xsd file generated service end service interface object.
Channel end object generates submodule 634, during for being the message interface file being with mapping at described message interface file, according to described channel end xsd file generated channel end service interface object, and according to the map information that described channel end xsd file comprises, mapping ruler is set in described channel end service interface object.
Service end file generated submodule 635, for calling configuration file generator according to pre-configured service end configuration file generator list to process described service end service interface object, generate the service system configuration file of the xml form corresponding with described pending service catalogue interface document.
Channel end file generated submodule 636, for calling configuration file generator according to pre-configured channel end configuration file generator list to process described channel end service interface object, generate the channel configuration file of the xml form corresponding with described pending service catalogue interface document.
Alternatively, in each device embodiment of the present invention, conflicting checking module can also be comprised, for being configured conflicting inspection according to the configuration file of configuration file to the xml form of current generation of the xml form generated.
For the function declaration of each module of device embodiment of the present invention and the detailed of submodule, please refer to the explanation in embodiment of the method, repeat no more herein.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform, can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Above disclosedly be only the preferred embodiments of the present invention; certainly protection scope of the present invention can not be limited with this; therefore according to the equivalent variations that the instruction of the claims in the present invention is done above-described embodiment, still belong in scope that the claims in the present invention contain.

Claims (12)

1. for carrying out a method for message interface conversion, it is characterized in that, described method comprises:
Read message interface file, described message interface file comprises the content of at least one message interface;
According to the content of each message interface in described message interface file, generate the service catalogue interface document of xsd form corresponding with each message interface respectively;
The each pending service catalogue interface document selected from the described service catalogue interface document generated for user carries out following process:
According to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
2. the method for claim 1, is characterized in that, according to the content of each message interface in described message interface file, generates the service catalogue interface document of xsd form corresponding with each message interface respectively, comprising:
According to the beginning line number of each message interface with terminate the content that line number obtains each field of each message interface;
Content according to each field obtained generates described service catalogue interface document corresponding with each message interface respectively.
3. the method for claim 1, is characterized in that, according to the content of each message interface in described message interface file, generates the service catalogue interface document of xsd form corresponding with each message interface respectively, comprising:
If described message interface file is the message interface file not with mapping, then the described service catalogue interface document generated comprises the xsd file of not containment mapping information; Or,
If described message interface file is the message interface file that band maps, then the described service catalogue interface document generated comprises the service end xsd file of not containment mapping information and the channel end xsd file of containment mapping information.
4. method as claimed in claim 3, it is characterized in that, according to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document, comprising:
Following process is carried out when described message interface file is the message interface file not with mapping:
According to the xsd file generated service interface object of described not containment mapping information;
Call configuration file generator to process described service interface object according to the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
5. method as claimed in claim 3, it is characterized in that, according to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document, comprising:
Following process is carried out when described message interface file is the message interface file of band mapping:
According to described service end xsd file generated service end service interface object;
According to described channel end xsd file generated channel end service interface object, and according to the map information that described channel end xsd file comprises, mapping ruler is set in described channel end service interface object;
Call configuration file generator to process described channel end service interface object according to pre-configured channel end configuration file generator list, generate the channel configuration file of the xml form corresponding with described pending service catalogue interface document;
Call configuration file generator to process described service end service interface object according to pre-configured service end configuration file generator list, generate the service system configuration file of the xml form corresponding with described pending service catalogue interface document.
6. the method for claim 1, is characterized in that, described method also comprises: the configuration file of configuration file to the xml form of current generation according to the xml form generated is configured conflicting inspection.
7. for carrying out a device for message interface conversion, it is characterized in that, described device comprises:
File read module, for reading message interface file, described message interface file comprises the content of at least one message interface;
First file generating module, for the content according to each message interface in described message interface file, generates the service catalogue interface document of xsd form corresponding with each message interface respectively;
Second file generating module, carry out following process for each pending service catalogue interface document selected from the described service catalogue interface document generated for user:
According to described pending service catalogue interface document and the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
8. device as claimed in claim 7, it is characterized in that, described first file generating module comprises:
Field contents obtains submodule, for according to the beginning line number of each message interface with terminate the content that line number obtains each field of each message interface;
File generated submodule, generates described service catalogue interface document corresponding with each message interface respectively for the content according to each field obtained.
9. device as claimed in claim 7, is characterized in that,
When described message interface file is the message interface file not with mapping, the described service catalogue interface document that described first file generating module generates comprises the xsd file of not containment mapping information; Or,
When described message interface file is the message interface file of band mapping, the described service catalogue interface document that described first file generating module generates comprises the service end xsd file of not containment mapping information and the channel end xsd file of containment mapping information.
10. device as claimed in claim 9, it is characterized in that, described second file generating module comprises:
Service interface object generates submodule, for when described message interface file is the message interface file not with mapping, according to the xsd file generated service interface object of described not containment mapping information;
Configuration file generates submodule, for calling configuration file generator to process described service interface object according to the pre-configured configuration file generator list corresponding with described pending service catalogue interface document, generate the configuration file of the xml form corresponding with described pending service catalogue interface document.
11. devices as claimed in claim 9, it is characterized in that, described second file generating module comprises:
Service end object generates submodule, for being when being with the message interface file mapped at described message interface file, according to described service end xsd file generated service end service interface object;
Channel end object generates submodule, during for being the message interface file being with mapping at described message interface file, according to described channel end xsd file generated channel end service interface object, and according to the map information that described channel end xsd file comprises, mapping ruler is set in described channel end service interface object;
Service end file generated submodule, for calling configuration file generator according to pre-configured service end configuration file generator list to process described service end service interface object, generate the service system configuration file of the xml form corresponding with described pending service catalogue interface document;
Channel end file generated submodule, for calling configuration file generator according to pre-configured channel end configuration file generator list to process described channel end service interface object, generate the channel configuration file of the xml form corresponding with described pending service catalogue interface document.
12. devices as claimed in claim 7, it is characterized in that, described device also comprises:
Conflicting checking module, for being configured conflicting inspection according to the configuration file of configuration file to the xml form of current generation of the xml form generated.
CN201410593348.6A 2014-10-29 2014-10-29 For carrying out the method and device of message interface conversion Active CN104378362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410593348.6A CN104378362B (en) 2014-10-29 2014-10-29 For carrying out the method and device of message interface conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410593348.6A CN104378362B (en) 2014-10-29 2014-10-29 For carrying out the method and device of message interface conversion

Publications (2)

Publication Number Publication Date
CN104378362A true CN104378362A (en) 2015-02-25
CN104378362B CN104378362B (en) 2018-05-08

Family

ID=52557019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410593348.6A Active CN104378362B (en) 2014-10-29 2014-10-29 For carrying out the method and device of message interface conversion

Country Status (1)

Country Link
CN (1) CN104378362B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878378A (en) * 2016-12-26 2017-06-20 贵州银行股份有限公司 Scatterplot processing method in network service management
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN111818175A (en) * 2020-07-24 2020-10-23 南方电网数字电网研究院有限公司 Enterprise service bus configuration file generation method, device, equipment and storage medium
CN114629807A (en) * 2020-12-11 2022-06-14 中国移动通信集团湖南有限公司 Work order processing method, device and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499002A (en) * 2008-02-02 2009-08-05 阿里巴巴集团控股有限公司 Method, system and apparatus for generating interface document

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
白仲贵: "Excel到XML数据自动转换组件的研究与应用", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878378A (en) * 2016-12-26 2017-06-20 贵州银行股份有限公司 Scatterplot processing method in network service management
CN106878378B (en) * 2016-12-26 2020-02-21 贵州银行股份有限公司 Scatter processing method in network communication management
CN110716870A (en) * 2019-09-23 2020-01-21 中国建设银行股份有限公司 Automatic service testing method and device
CN111818175A (en) * 2020-07-24 2020-10-23 南方电网数字电网研究院有限公司 Enterprise service bus configuration file generation method, device, equipment and storage medium
CN114629807A (en) * 2020-12-11 2022-06-14 中国移动通信集团湖南有限公司 Work order processing method, device and equipment

Also Published As

Publication number Publication date
CN104378362B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
KR101999409B1 (en) Formatting data by example
CN102201009B (en) Form generating method and device
CN101763255B (en) Format conversion method and device of special interface tool
CN109558525B (en) Test data set generation method, device, equipment and storage medium
CN106293664A (en) Code generating method and device
CN102012954B (en) Subsystem integration method and subsystem integration system for integration design of system-on-chip
CN104123227A (en) Method for automatically generating testing cases
CN109460219A (en) The method of rapid serial Interface Control File
CN110888842A (en) File storage method, file query method, file storage device, file query device and file query equipment
CN104378362A (en) Method and device for carrying out conversion of message interfaces
CN108762808A (en) The generation method and system of interface document
CN100498787C (en) Report generating method, equipment and system
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
CN107391357A (en) Application crashes replay method, device and mobile terminal
CN108415708A (en) Processing method, device, equipment and the storage medium of application program installation kit size
CN108776592A (en) A kind of method, apparatus of page makeup, equipment and storage medium
CN101201833A (en) System and method for filling PDF document data
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN107797823A (en) Business Rule Management method, apparatus, storage medium and computer equipment
CN108241503A (en) The generation method and device of explanatory notes
CN104898991A (en) Automatic-RAL-based register access method and system
CN106776266A (en) The collocation method and terminal device of testing tool
CN110308907A (en) Data transfer device, device, storage medium and electronic equipment
CN110058849A (en) Generation method, device, computer equipment and the storage medium of flow chart
CN105867886A (en) Method and device for writing table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant