CN104378362B - For carrying out the method and device of message interface conversion - Google Patents

For carrying out the method and device of message interface conversion Download PDF

Info

Publication number
CN104378362B
CN104378362B CN201410593348.6A CN201410593348A CN104378362B CN 104378362 B CN104378362 B CN 104378362B CN 201410593348 A CN201410593348 A CN 201410593348A CN 104378362 B CN104378362 B CN 104378362B
Authority
CN
China
Prior art keywords
file
interface
message interface
message
service
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.)
Active
Application number
CN201410593348.6A
Other languages
Chinese (zh)
Other versions
CN104378362A (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 kind of method and device for being used to carry out message interface conversion, wherein, the described method includes:Message interface file is read, message interface file includes the content of at least one message interface;According to the content of each message interface in message interface file, the service catalogue interface document of generation xsd forms corresponding with each message interface respectively;The each pending service catalogue interface document selected for user from the service catalogue interface document of generation carries out following processing:According to pending service catalogue interface document and pre-configured configuration file generator list corresponding with pending service catalogue interface document, the configuration file of generation xml forms corresponding with pending service catalogue interface document.Using the present invention, the Batch conversion of message interface can be automatically realized, convenient and accuracy rate is high, effectively improves work efficiency.In addition, by carrying out configuration conflict inspection, it can be ensured that the accuracy of the configuration file of generation.

Description

For carrying out the method and device of message interface conversion
Technical field
The present invention relates to data processing field, more particularly, to a kind of method for being used to carry out message interface conversion and Device.
Background technology
In existing banking system, Enterprise Service Bus (Enterprise Service Bus, ESB) needs will be each The message interface for the excel forms that transaction system provides changes into the message of corresponding form, such as the communication report of xml forms Various types of messages such as text, streaming communication packet.
In order to realize the format conversion of message interface, usually using existing IDE (one kind be used on ESB exploitation code, The Integrated Development Tool of configuration) instrument, the message interface of the excel forms provided according to other systems, using manually one by one Field contents are added to BIPBuilder (ESB platform development instruments, be used as IDE developing instruments) by the mode of field addition In, then directly generate the message format of demand.But message interface needs to change regularly, so again need again by The modification message of a field, time-consuming and laborious and easy error.Moreover, existing way can only handle single transaction message interface, Have no idea easily batch processing message interface so that work efficiency is low.
The content of the invention
In order to solve the above technical problems, be used to carry out the method and device of message interface conversion the present invention provides a kind of, It can automatically realize the Batch conversion of message interface, convenient and accuracy rate is high, effectively improves work efficiency.
An embodiment of the present invention provides a kind of method for carrying out message interface conversion, including:
Message interface file is read, the message interface file includes the content of at least one message interface;
According to the content of each message interface in the message interface file, xsd corresponding with each message interface respectively is generated The service catalogue interface document of form;
The each pending service catalogue interface text selected for user from the service catalogue interface document of generation Part carries out following processing:
According to the pending service catalogue interface document and pre-configured with the pending service catalogue interface document Corresponding configuration file generator list, generates the configuration of xml forms corresponding with the pending service catalogue interface document File.
Correspondingly, the embodiment of the present invention also provides a kind of device for being used to carry out message interface conversion, including:
File read module, for reading message interface file, the message interface file connects comprising at least one message The content of mouth;
First file generating module, for the content according to each message interface in the message interface file, generation difference The service catalogue interface document of xsd forms corresponding with each message interface;
Second file generating module, it is each for being selected for user from the service catalogue interface document of generation Pending service catalogue interface document carries out following processing:
According to the pending service catalogue interface document and pre-configured with the pending service catalogue interface document Corresponding configuration file generator list, generates the configuration of xml forms corresponding with the pending service catalogue interface document File.
The method and device for being used to carry out message interface conversion provided using the embodiment of the present invention, can be automatically Realize the Batch conversion of message interface, convenient and accuracy rate is high, effectively improves work efficiency.In addition, by carrying out configuration conflict Property inspection, it can be ensured that the accuracy of the configuration file of generation.
Brief description of the drawings
Fig. 1 is a kind of flow diagram of method for being used to carry out message interface conversion according to embodiments of the present invention;
Fig. 2A is a kind of schematic diagram of the partial content of message interface according to embodiments of the present invention;
Fig. 2 B are that a kind of flow of method according to message interface file generated xsd files according to embodiments of the present invention is shown It is intended to;
Fig. 3 A are a kind of flow diagrams of the method for the content of the single message interface of acquisition according to embodiments of the present invention;
Fig. 3 B are the flow diagrams according to a kind of method for realizing step 38 of Fig. 3 A illustrated embodiments;
Fig. 4 is a kind of method that xml configuration files are generated according to service catalogue interface document according to embodiments of the present invention Flow diagram;
Fig. 5 is a kind of flow diagram of the method for configuration conflict inspection according to embodiments of the present invention;
Fig. 6 is a kind of block diagram of device for being used to carry out message interface conversion according to embodiments of the present invention;
Fig. 7 is the block diagram according to a kind of first file generating module 62 of embodiment illustrated in fig. 6;
Fig. 8 A are the block diagrams according to a kind of second file generating module 63 of embodiment illustrated in fig. 6;
Fig. 8 B are the block diagrams according to a kind of second file generating module 63 of embodiment illustrated in fig. 6.
Embodiment
Clear, complete description is carried out to the technical solution in the embodiment of the present invention below in conjunction with attached drawing.
Fig. 1 is a kind of flow diagram of method for being used to carry out message interface conversion according to embodiments of the present invention, is joined According to Fig. 1, the described method includes:
11:Message interface file is read, the message interface file includes 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, so It is read afterwards according to the path of message interface file.The message interface file can be excel (electrical form) texts Part.
12:It is corresponding with each message interface respectively according to the content of each message interface in the message interface file, generation The service catalogue interface document of xsd forms.
Alternatively, can be according to the beginning line number of each message interface and end in a kind of implementation of the present embodiment Line number obtains the content of each field of each message interface, i.e. obtains the content of each message interface.Then according to each of acquisition The content of field generates the service catalogue interface document corresponding with each message interface respectively.Still optionally further, according to each The beginning line number of location determination each message interface of the keyword of message interface in the message interface file, according to the report The beginning line number of posterior message interface determines the end line number of preceding message interface in literary interface document.Wherein, the pass Key word can represent the field that message interface starts, for example, type of service field mentioned below.
13:The each pending service catalogue interface selected for user from the service catalogue interface document of generation File carries out the processing in 14.
14:According to the pending service catalogue interface document and pre-configured with the pending service catalogue interface text The corresponding configuration file generator list of part, generation are matched somebody with somebody with the pending corresponding xml forms of service catalogue interface document Put file.
Alternatively, in a kind of implementation of the present embodiment, before 13, according to user in service catalogue interface document Selection operation in list determines pending service catalogue interface document.
Alternatively, in a kind of implementation of the present embodiment, it is (a kind of that configuration file generator can be based on Freemarker Template engine) mould plate technique and according to the characteristic of configuration file (such as the form of configuration file, overall structure, specific label Name and attribute definition etc.) customization form, for example, can include:Server-side message configuration file generator, channel end message are matched somebody with somebody Put file generator, service profiles maker, data dictionary configuration file generator, the life of channel data dictionary configuration file Grow up to be a useful person.It will be appreciated by those skilled in the art that configuration file generator can be extended according to demand.
Using the method provided in an embodiment of the present invention for carrying out message interface conversion, message can be automatically realized The Batch conversion of interface, convenient and accuracy rate is high, effectively improves work efficiency.
Alternatively, in a kind of implementation of the present embodiment, in 12, message interface file can be band mapping, It can also be without mapping, illustrate separately below.
If the message interface file is the message interface file without mapping, the service mesh generated in 12 Recording interface document includes the xsd files not comprising map information.At this time, 14 can be realized by following processing:According to it is described not The xsd file generated service interface objects of containment mapping information;According to pre-configured literary with the pending service catalogue interface The corresponding configuration file generator list of part calls configuration file generator to handle the service interface object, generates The configuration file of xml forms corresponding with the pending service catalogue interface document.
If the message interface file is the message interface file with mapping, the service catalogue interface generated is literary Part includes the channel end xsd files of server-side xsd files and containment mapping information not comprising map information.At this time, 14 can be with Realized by following processing:According to the server-side xsd file generateds server-side service interface object;According to the channel end Xsd file generated channels end service interface object, and the map information included according to the channel end xsd files is in the canal Mapping ruler is set in the service interface object of road end;Configuration text is called according to pre-configured channel end configuration file generator list Part maker is to handle the channel end service interface object, generation and the pending service catalogue interface document pair The channel configuration file for the xml forms answered;Configuration file life is called according to pre-configured server-side configuration file generator list Grow up to be a useful person to handle the server-side service interface object, generation is corresponding with the pending service catalogue interface document The service system configuration file of xml forms.
Wherein, in " the xsd files for not including map information " and " the server-side xsd files for not including map information ", Only the content comprising message interface is without containment mapping information;At " containment mapping information xsd files " and " containment mapping information In channel end xsd files ", while content and map information comprising message interface.
Alternatively, in a kind of implementation of the present embodiment, connect generating service catalogue according to the content of message interface During mouth file, information on services is generated, the information on services includes the file path name of service catalogue interface document, so as to follow-up root File reading process is carried out according to file path name.
Fig. 2A is a kind of schematic diagram of the partial content of message interface according to embodiments of the present invention, and Fig. 2 B are according to this hair The flow diagram of a kind of method according to message interface file generated xsd files of bright embodiment, with reference to Fig. 2A and Fig. 2 B, institute The method of stating includes:
21:Component result object.
22:Read message interface file (excel files).
23:The line number started according to all message interfaces of keyword acquisition, and generate and start line number list.
As shown in Figure 2 A, " service type " field is located at the starting position of message interface, therefore, can " service type " work For the keyword.In other embodiments, can also other fields as the keyword, this by message interface in itself in Hold and determine, the present invention is not specifically limited this.
It is only a part for a message interface in message interface file as shown in Figure 2 A, in a message interface text There can be multiple message interfaces in part, therefore, the line number that each message interface starts can be determined according to the keyword.
24:Judge whether beginning line number list travels through to terminate, if terminated, return the result object, otherwise perform 25.
25:Obtain the end line number of message interface.For example, phase therewith is determined according to the beginning line number of posterior message interface The end line number of adjacent preceding message interface, the line number terminated according to message interface determine the row of last message interface Number.
26:According to each field for the content, i.e. acquisition current message interface for starting line number and end line number acquisition excel Content, and generate single service xsd files and service information object, wherein, the information on services object can include xsd The pathname of file, in addition, it can include status indicator of xsd file generated success or failures etc..The single service is Refer to the service corresponding to current message interface.
27:Information on services object is added to result object, and performs 24.
In the present embodiment, start line number list by traveling through, then start line number for each, it is corresponding to obtain its The content of message interface simultaneously generates xsd files.In this way, can be all in message interface file in bulk after the traversal Message interface generates corresponding xsd files.
In the present embodiment, by Mass production xsd files, selection basis has been provided to the user so that user can root According to the xsd files for needing selection to be changed.
In the embodiment depicted in figure 2b to the method that xsd files are converted to without the message interface file of mapping is carried out Illustrate, on this basis, with reference in embodiment illustrated in fig. 1 for the message interface file without mapping and corresponding service catalogue The explanation of interface document, skilled addressee readily understands that how to be changed to the message interface file with mapping, herein Do not repeat.
Fig. 3 A are a kind of flow diagrams of the method for the content of the single message interface of acquisition according to embodiments of the present invention, It is illustrated in the present embodiment still with Fig. 2A.As shown in Figure 3A, the described method includes:
31:Obtain transaction code (as shown in Figure 2 A, the 4th row of starting row);Backstage transaction code is obtained (such as Fig. 2A institutes Show, the 6th row of starting row).
32:Obtain system type.The system type refers to the Platform Type for providing message interface file, which can be with The platform for being to provide general message interface, platform, offer CCBS that a kind of P6 (P6 is host services platform) message interface is provided Platform of (CCBS is Construction Bank's core banking system) message interface etc., correspondingly, excel files can be that general message connects Mouth file, P6 message interfaces file or CCBS message interface files, the present invention are not particularly limited this.
In a kind of specific implementation, message interface file can be named with system type, for example, being named with system type Sheet (list) title, then obtains the system type by reading the name of message interface file.Or using manually defeated The mode entered obtains the system type.
33:System type is added in xsd data.
34:Judge whether all rows travel through to terminate, if terminated, generation xsd terminates data, exports xsd files, and return Return information on services object;If it has not ended, then perform 35.
35:Whether judge currently to travel through is request message, if it is performs 36, otherwise performs 39.
36:Format checking is carried out to request message.Judge whether to lack necessary field etc. for example, traveling through each row.
37:Field project name is obtained, this step is skipped if project name is sky.
38:Other attributes of field are obtained, and are added to xsd data.Then 34 are performed.
39:Format checking is carried out to response message.
40:Field project name is obtained, this step is skipped if project name is sky.
41:Other attributes of field are obtained, and are added to xsd data.Then 34 are performed.
It will be appreciated by those skilled in the art that Fig. 3 A illustrated embodiments can be as the step 26 of Fig. 2 B illustrated embodiments A kind of specific implementation.
Fig. 3 B are according to a kind of flow diagram of method for realizing step 38 of Fig. 3 A illustrated embodiments, in the present embodiment In be illustrated still with Fig. 2A.As shown in Figure 3B, the described method includes:
381:Judge whether current field project name belongs to according to current field project name and quote message fragment.If It is then to perform 382;Otherwise 383 are performed.Wherein it is possible to the historically form of field project name and its attribute, judges field Whether project name, which belongs to, is quoted message fragment.
382:Generation field object simultaneously sets the name, length, attribute in domain.Then 386 are performed.
383:Obtain " Chinese ", " input length ", " field attribute ", " whether must ", " mark " and " add It is bright " property value.
384:Field object is generated, the above-mentioned property value of acquisition is set into field object.
385:Escape processing is carried out to the property value of Chinese;Type and length are changed;To supplementary notes Property value carries out escape processing.Type therein refer to thresholding type (including:Int, double, string etc.)
386:Whether nillable (attribute) will be must be converted into.
387:Judge whether field type is array, if it is performs 389, otherwise performs 388.
388:Generate array field xsd data.
389:Generate simple field xsd data.
Fig. 4 is a kind of method that xml configuration files are generated according to service catalogue interface document according to embodiments of the present invention Flow diagram, with reference to Fig. 4, the described method includes:
401:Build xml configuration files generation result.
402:The type of service catalogue interface document is obtained according to information on services.If for example, service catalogue interface document The file in two different paths is included, then to support the type of mapping, if comprising a file, not support the class of mapping Type.
403:Judge whether it supports to map according to the type of service catalogue interface document, if it does not, then performing 404;Otherwise 406 are performed.
404:Server-side xsd file path names are obtained, xsd files is read and generates service interface object.
405:According to the configuration file generator list of configuration and service interface object, all configuration files are generated.405 Afterwards, xml configuration files generation result is returned.
406:Server-side xsd file path names are obtained, xsd files is read and generates server-side service interface object.
407:Channel end xsd file path names are obtained, xsd files is read and generates channel end service interface object.
408:It will ask and response mapping ruler is set to channel end service interface object.
409:According to the channel end configuration file generator list of configuration and channel end service interface object, all canals are generated Road configuration file.
410:According to the server-side configuration file generator list of configuration and server-side service interface object, all clothes are generated Business system configuration file.After 410, xml configuration files generation result is returned.
Alternatively, in various embodiments of the present invention, can be according to having generated after xml configuration files are generated The configuration file of xml form of the configuration file of xml forms to being currently generated carries out configuration conflict inspection.Fig. 5 is according to this A kind of flow diagram of the method for configuration conflict inspection of inventive embodiments, this method can be used in generation xml configurations After file, the xml being currently generated is matched somebody with somebody according to the xml configuration files (hereinafter referred to as original xml configuration files) generated before Put file (hereinafter referred to as target xml configuration files) and carry out configuration conflict inspection.Reference Fig. 5, the described method includes:
51:Original xml configuration files and target xml configuration files are parsed to xml objects.
52:Whether traversal target xml nodes (that is, the label node in target xml configuration files) terminate.If do not tie Beam, then perform 53, otherwise return to inspection result.
53:Judge whether current goal xml nodes repeat with having contrasted the node in node listing, if do not repeated, Perform 54;Otherwise 52 are returned.Wherein, two nodes repeat to refer to two nodes attribute (such as:Title, length etc.) complete phase Together.
54:Judge whether current goal xml nodes are of the same name with having contrasted the node in node listing, if not of the same name, Perform 55;Otherwise 59 are performed.
55:Current goal xml nodes are added to and have been contrasted in node listing.
56:Obtain the original xpath that need to be contrasted.
57:Obtain the original xml nodes that need to be contrasted.
It will be appreciated by those skilled in the art that 56 and 57 can obtain according to original xml configuration files, do not repeat herein.
58:Current goal xml nodes and original xml nodes are contrasted, judge the other attributes (category outside title of the two Property) whether identical, if identical, return to 52;If it is different, then perform 59.
59:Current goal xml nodes are added in inspection result.
In the present embodiment, text is configured to target xml using the xml nodes in original xml configuration files as comparison other Target xml nodes in part carry out attribute contrast, and if there is property contradictories, then there will be the target xml nodes of property contradictories It is added in inspection result, so as to the processing for message interface etc of subsequently modifying.
The embodiment of the method for the present invention is illustrated above in association with attached drawing, below in conjunction with the accompanying drawings to the device of the invention Embodiment illustrates.
Fig. 6 is a kind of block diagram of device for being used to carry out message interface conversion according to embodiments of the present invention, with reference to figure 6, message interface conversion equipment 6 includes file read module 61, the first file generating module 62 and the second file generating module 63, Illustrate separately below.
File read module 61, for reading message interface file, the message interface file includes at least one message The content of interface.
Alternatively, in a kind of implementation of the present embodiment, the path of message interface file can be specified by user, so It is read afterwards according to the path of message interface file.The message interface file can be excel (electrical form) texts Part.
First file generating module 62, for the content according to each message interface in the message interface file, generation point The service catalogue interface document of xsd forms not corresponding with each message interface.
Second file generating module 63, it is every for being selected for user from the service catalogue interface document of generation A pending service catalogue interface document carries out following processing:According to the pending service catalogue interface document and pre-configured Configuration file generator list corresponding with the pending service catalogue interface document, generation and the pending service catalogue The configuration file of the corresponding xml forms of interface document.
Alternatively, in a kind of implementation of the present embodiment, described device can also include being used for according to user to clothes The selection operation of business directory interface file confirms the module of pending service catalogue interface document.
Using message interface conversion equipment provided in an embodiment of the present invention, the batch of message interface can be automatically realized Conversion, convenient and accuracy rate is high, effectively improves work efficiency.
Fig. 7 is according to a kind of block diagram of first file generating module 62 of embodiment illustrated in fig. 6, with reference to Fig. 7, the first text Part generation module 62 can include:
Field contents acquisition submodule 621, for the beginning line number according to each message interface and terminates each report of line number acquisition The content of each field of literary interface.
File generated submodule 622, for each field according to acquisition content generation respectively with each message interface pair The service catalogue interface document answered.
Alternatively, in a kind of implementation of the present embodiment, when the message interface file is the message without mapping During interface document, the service catalogue interface document of the first file generating module 62 generation is included not comprising map information Xsd files.
Alternatively, in a kind of implementation of the present embodiment, when the message interface file is that the message with mapping connects During mouth file, the service catalogue interface document of the first file generating module 62 generation includes the service not comprising map information Hold xsd files and the channel end xsd files of containment mapping information.
Fig. 8 A be according to a kind of block diagram of second file generating module 63 of embodiment illustrated in fig. 6, with reference to Fig. 8 A, second File generating module 63 includes:
Service interface object generates submodule 631, for being the message interface without mapping in the message interface file During file, according to the xsd file generated service interface objects not comprising map information.
Configuration file generates submodule 632, for according to pre-configured with the pending service catalogue interface document pair The configuration file generator list answered calls configuration file generator to handle the service interface object, generation and institute State the configuration file of the corresponding xml forms of pending service catalogue interface document.
Fig. 8 B be according to a kind of block diagram of second file generating module 63 of embodiment illustrated in fig. 6, with reference to Fig. 8 B, second File generating module 63 includes:
Server-side object generates submodule 633, for being the message interface file with mapping in the message interface file When, according to the server-side xsd file generateds server-side service interface object.
Channel end object generation submodule 634, for being the message interface file with mapping in the message interface file When, included according to channel end xsd file generated channels end service interface object, and according to the channel end xsd files Map information mapping ruler is set in the channel end service interface object.
Server-side file generated submodule 635, for according to pre-configured server-side configuration file generator list calling Configuration file generator is to handle the server-side service interface object, generation and the pending service catalogue interface The service system configuration file of the corresponding xml forms of file.
Channel end file generated submodule 636, for being called according to pre-configured channel end configuration file generator list Configuration file generator is to handle the channel end service interface object, generation and the pending service catalogue interface The channel configuration file of the corresponding xml forms of file.
Alternatively, in each device embodiment of the present invention, conflicting can also be included and check module, for according to The configuration file of xml form of the configuration file of the xml forms of generation to being currently generated carries out configuration conflict inspection.
For the module of each device embodiment and the detailed function declaration of submodule of the present invention, method implementation refer to Explanation in example, details are not described herein again.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by The mode of software combination hardware platform is realized, naturally it is also possible to is all implemented by hardware.Based on such understanding, this hair What bright technical solution contributed background technology can be embodied in the form of software product in whole or in part, the meter Calculation machine software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that one Platform computer equipment (can be personal computer, server, either network equipment etc.) perform each embodiment of the present invention or Method described in some parts of embodiment.
It is above disclosed to be merely a preferred embodiment of the present invention, the protection of the present invention cannot be limited with this certainly Scope, therefore according to the equivalent variations made to above-described embodiment of teaching of the claims in the present invention, still falling within right of the present invention will Ask in the range of being covered.

Claims (10)

  1. A kind of 1. method for carrying out message interface conversion, it is characterised in that the described method includes:
    Message interface file is read, the message interface file includes the content of at least one message interface;
    According to the content of each message interface in the message interface file, xsd forms corresponding with each message interface respectively are generated Service catalogue interface document;
    The each pending service catalogue interface document selected for user from the service catalogue interface document of generation into The following processing of row:
    According to the pending service catalogue interface document and pre-configured corresponding with the pending service catalogue interface document Configuration file generator list, generate the configuration files of xml forms corresponding with the pending service catalogue interface document;
    Wherein, according to the content of each message interface in the message interface file, xsd corresponding with each message interface respectively is generated The service catalogue interface document of form, including:
    If the message interface file is the message interface file without mapping, the service catalogue interface document generated Including the xsd files not comprising map information;Or,
    If the message interface file is the message interface file with mapping, the service catalogue interface document bag generated Include the channel end xsd files of server-side xsd files and containment mapping information not comprising map information.
  2. 2. the method as described in claim 1, it is characterised in that according in the message interface file in each message interface Hold, generate the service catalogue interface document of xsd forms corresponding with each message interface respectively, including:
    According to the beginning line number of each message interface and the content for each field for terminating each message interface of line number acquisition;
    The service catalogue interface document corresponding with each message interface respectively is generated according to the content of each field of acquisition.
  3. 3. the method as described in claim 1, it is characterised in that according to the pending service catalogue interface document and pre-configured Configuration file generator list corresponding with the pending service catalogue interface document, generation and the pending service mesh The configuration file of the corresponding xml forms of interface document is recorded, including:
    Following processing is carried out when the message interface file is the message interface file without mapping:
    According to the xsd file generated service interface objects not comprising map information;
    Called and configured according to pre-configured configuration file generator list corresponding with the pending service catalogue interface document For file generator to handle the service interface object, generation is corresponding with the pending service catalogue interface document The configuration file of xml forms.
  4. 4. the method as described in claim 1, it is characterised in that according to the pending service catalogue interface document and pre-configured Configuration file generator list corresponding with the pending service catalogue interface document, generation and the pending service mesh The configuration file of the corresponding xml forms of interface document is recorded, including:
    Following processing is carried out when the message interface file is the message interface file with mapping:
    According to the server-side xsd file generateds server-side service interface object;
    Included according to channel end xsd file generated channels end service interface object, and according to the channel end xsd files Map information mapping ruler is set in the channel end service interface object;
    Configuration file generator is called according to pre-configured channel end configuration file generator list to service the channel end Interface object is handled, and generates the channel configuration file of xml forms corresponding with the pending service catalogue interface document;
    Configuration file generator is called with to the server-side service according to pre-configured server-side configuration file generator list Interface object is handled, the service system configuration of generation xml forms corresponding with the pending service catalogue interface document File.
  5. 5. the method as described in claim 1, it is characterised in that the method further includes:According to the xml forms generated The configuration file of xml form of the configuration file to being currently generated carries out configuration conflict inspection.
  6. 6. a kind of device for being used to carry out message interface conversion, it is characterised in that described device includes:
    File read module, for reading message interface file, the message interface file includes at least one message interface Content;
    First file generating module, for the content according to each message interface in the message interface file, generation respectively with respectively The service catalogue interface document of the corresponding xsd forms of message interface;
    Second file generating module, for for user selected from the service catalogue interface document of generation it is each treat from Manage service catalogue interface document and carry out following processing:
    According to the pending service catalogue interface document and pre-configured corresponding with the pending service catalogue interface document Configuration file generator list, generate the configuration files of xml forms corresponding with the pending service catalogue interface document;
    Wherein, when the message interface file is the message interface file without mapping, the first file generating module life Into the service catalogue interface document include not comprising map information xsd files;Or,
    When the message interface file is the message interface file with mapping, first file generating module generates described Service catalogue interface document includes the channel end xsd texts of server-side xsd files and containment mapping information not comprising map information Part.
  7. 7. device as claimed in claim 6, it is characterised in that first file generating module includes:
    Field contents acquisition submodule, for the beginning line number according to each message interface and terminates each message interface of line number acquisition The content of each field;
    File generated submodule, described in content generation for each field according to acquisition is corresponding with each message interface respectively Service catalogue interface document.
  8. 8. device as claimed in claim 6, it is characterised in that second file generating module includes:
    Service interface object generate submodule, for the message interface file be without mapping message interface file when, According to the xsd file generated service interface objects not comprising map information;
    Configuration file generates submodule, for according to pre-configured configuration corresponding with the pending service catalogue interface document File generator list calls configuration file generator to handle the service interface object, generation with it is described pending The configuration file of the corresponding xml forms of service catalogue interface document.
  9. 9. device as claimed in claim 6, it is characterised in that second file generating module includes:
    Server-side object generate submodule, for the message interface file be band map message interface file when, according to The server-side xsd file generateds server-side service interface object;
    Channel end object generation submodule, for when the message interface file is the message interface file that band maps, according to Channel end xsd file generated channels end service interface object, and the mapping included according to the channel end xsd files is believed Breath sets mapping ruler in the channel end service interface object;
    Server-side file generated submodule, for calling configuration file according to pre-configured server-side configuration file generator list For maker to handle the server-side service interface object, generation is corresponding with the pending service catalogue interface document Xml forms service system configuration file;
    Channel end file generated submodule, for calling configuration file according to pre-configured channel end configuration file generator list For maker to handle the channel end service interface object, generation is corresponding with the pending service catalogue interface document Xml forms channel configuration file.
  10. 10. device as claimed in claim 6, it is characterised in that described device further includes:
    Conflicting checks module, for the matching somebody with somebody to the xml forms that are currently generated according to the configuration file of xml forms generated Put file and carry out configuration conflict inspection.
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 CN104378362A (en) 2015-02-25
CN104378362B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878378B (en) * 2016-12-26 2020-02-21 贵州银行股份有限公司 Scatter processing method in network communication management
CN110716870B (en) * 2019-09-23 2023-01-31 中国建设银行股份有限公司 Automatic service testing method and device
CN111818175B (en) * 2020-07-24 2023-06-30 南方电网数字电网研究院有限公司 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数据自动转换组件的研究与应用;白仲贵;《中国优秀硕士学位论文全文数据库》;20090115;正文第10、11、18-26、54-57、62页 *

Also Published As

Publication number Publication date
CN104378362A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
US5459827A (en) Layout method for structured documents
US8176003B2 (en) Automatic designation of XBRL taxonomy tags
US20020103835A1 (en) Methods and apparatus for constructing semantic models for document authoring
CN104378362B (en) For carrying out the method and device of message interface conversion
CN107273122A (en) Based on decoupling mechanism can iteration set up operation system method and its terminal
US7428484B2 (en) Apparatus and method for modeling and analyzing network simulation for network simulation package
CN103294652B (en) A kind of data transfer device and system
CN108829647A (en) A kind of data transfer device and device
CN107423061A (en) A kind of list generation method based on ISON data
US9229920B1 (en) Compound undo/redo manager for mixed model edits
CN109460219A (en) The method of rapid serial Interface Control File
CN111741019A (en) Communication protocol analysis method and system based on field description
CN109558525A (en) A kind of generation method of test data set, device, equipment and storage medium
CN107741935A (en) Data lead-in method and data importing device
CN106528823B (en) A kind of configuration of message and output method and device
CN108845942A (en) Product feature management method, device, system and storage medium
CN106933887A (en) A kind of data visualization method and device
CN105488210A (en) Batch data matching method and device
CN108959230A (en) A kind of method and apparatus generating report template
CN108241503A (en) The generation method and device of explanatory notes
CN110020412B (en) Method and device for generating IMIX standard message and electronic equipment
US20150081672A1 (en) Automatic conversion of units of measure during data stream processing
CN106649108A (en) Generation method and device of test data
CN107506339B (en) Character offset-based SCD node verification error positioning method and device
CN113949749B (en) XML message processing 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
GR01 Patent grant
GR01 Patent grant