CN106528823A - Message configuration and output method and device - Google Patents

Message configuration and output method and device Download PDF

Info

Publication number
CN106528823A
CN106528823A CN201611027224.7A CN201611027224A CN106528823A CN 106528823 A CN106528823 A CN 106528823A CN 201611027224 A CN201611027224 A CN 201611027224A CN 106528823 A CN106528823 A CN 106528823A
Authority
CN
China
Prior art keywords
message
data item
data
length
type
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
CN201611027224.7A
Other languages
Chinese (zh)
Other versions
CN106528823B (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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201611027224.7A priority Critical patent/CN106528823B/en
Publication of CN106528823A publication Critical patent/CN106528823A/en
Application granted granted Critical
Publication of CN106528823B publication Critical patent/CN106528823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a message configuration and output method and device. The method comprises the steps that an XML file is used for performing message configuration, the lengths and the sequence of message data items are defined; according to the lengths and the sequence of the message data items, messages are output. According to the message configuration and output method and device, an existing System.array copy mode is abandoned, workloads of developers are reduced, various messages are supported, the application range is wide, and the development efficiency is improved; in addition, a position reading method is abandoned, the sequential message output method is adopted, the error position can be rapidly positioned, the error searching time can be shortened, the message testing time can be shortened, and the message testing efficiency can be improved.

Description

A kind of message configuration and output intent and device
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of configuration of message and output intent and device.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description is not because just recognize it is prior art in being included in this part.
Current conventional message collocation method, is all assembling message, to exist using System.arraycopy methods The shortcomings of technical sophistication, easy error, inefficiency.
By taking a following assembling message operation as an example:
System.arraycopy (retBytes, msgCdeOffset, msgCde, msgCdeStart, msgCdeLength);// byte arrays are put into by first 9 of backstage return code;
RetBytes is source byte arrays message, and msgCdeOffset is the position that source byte arrays start to intercept, MsgCde is target byte array message, and msgCdeStart is the position that target byte array starts, and msgCdeLength is will The length of intercepting.
The implication of the method for System.arraycopy above is, from the msgCdeOffset of byte arrays retBytes Position starts, and intercepts the byte of msgCdeLength length, is put into the msgCdeStart starting positions of msgCde byte arrays.
The method of this assembling message is sufficiently complex, and operation is also troublesome, is very easy to out in the use of developer Mistake, and doing over again for developer is easily caused, because message is all the assembling of, if middle any one Error, will be from proceeding by investigation, debug item by item, if Section 1 is problematic, then all of message item is all Rewrite one time.
In addition, current message method of testing is also very original, expend the muscle power of developer, waste developer when Between.By taking following 5 message contents as an example, 123.56 yuan of Payment Amount, message format is as shown in table 1 below:
Table 1
Message data item-parameter Length Message data item-implication Data type Remarks
payerAcct 9(17) Payment account number Numeric type
payeeAcct 9(17) Shroff account number Numeric type
currency X(3) Payment currency type Character type CNY
tranAmount 9(15) Payment Amount Amount of money type
tranDate X(10) The date of payment Date type yyyy-MM-dd
Send message content as follows:
0000010111234567800000101356789012CNY000000000123562016-03-21
If the Payment Amount message of the 4th is wrong, developer will enter according to the length of message data item in investigation Row read bit, is investigated one by one:
Payment account number 17:00000101112345678
Shroff account number 17:00000101356789012
Payment currency type 3:CNY
Payment Amount 15:000000000123562
The date of payment 10:016-03-21
Operate through read bit, it is found that the date has lacked 1, the message of the amount of money is not also right, through comparing 123.56 yuan of the amount of money, send out The down payment amount of money has lacked one 0.
Therefore, the position of message error how is quickly positioned, and message is fast and efficiently tested, and be badly in need of The big problem for solving.
The content of the invention
The present invention provides a kind of message configuration and output intent, to solve existing System.arraycopy methods band The drawbacks of coming.
In order to solve the above problems, the embodiment of the present invention provides a kind of message configuration and output intent, including:
Message configuration is carried out using XML file, the length and sequencing of each message data item is defined;According to the report The length and sequencing outgoing message of literary data item.
Further, in one embodiment, message configuration is carried out using XML file, define the length of each message data item Degree and sequencing, including:Heading and message body are defined respectively using XML file;Using different keyword definition message numbers According to the data type of item;The data type composition data of the heading, message body and message data item after according to definition Stream.
Further, in one embodiment, heading and message body are defined respectively using XML file, including:Definition is described Heading, including define message length, transaction code and product information;The message body is defined, including fixed according to the transaction code The length and sequencing of adopted message data item.
Further, in one embodiment, using the data type of different keyword definition message data items, including:Make With the data type of String keyword definition message data items, then the message data item is just according to character type assembling message; Using the data type of Number keyword definition message data items, then the message data item is just according to numeric type assembling report Text;Using the data type of Date keyword definition message data items, then the message data item is just according to date type assembling report Text, and according to pattern define pattern date data item is formatted;Using Amount keyword definition message numbers According to the data type of item, then the message data item just assembles message, and the pattern defined according to decimal according to amount of money type Value data item is increased or arithmetic point is deducted.
Further, in one embodiment, the length and sequencing outgoing message according to the message data item, bag Include:The debug attributes that message format defines factory transformFactory are arranged to into true, then according to the message data The length and sequencing outgoing message of item.
In order to solve the above problems, the embodiment of the present invention also provides a kind of message configuration and output device, including:Message is matched somebody with somebody Module is put, and for message configuration being carried out using XML file, defines the length and sequencing of each message data item;Output mould Block, for length and sequencing outgoing message according to the message data item.
Further, in one embodiment, the message configuration module is for carrying out message configuration using XML file, fixed The length and sequencing of adopted each message data item, which specifically includes:Message format definition unit, for using XML file Heading and message body are defined respectively;Dtd--data type definition unit, for using the number of different keyword definition message data items According to type;Data flow component units, for the data class of the heading, message body and message data item after according to definition Type composition data stream.
Further, in one embodiment, the message format definition unit is used to define message respectively using XML file Head and message body, which specifically includes:Heading definition unit, for defining the heading, including defines message length, transaction Code and product information;Message body definition unit, for defining the message body, defines message data including according to the transaction code The length and sequencing of item.
Further, in one embodiment, the dtd--data type definition unit is used for using different keyword definition messages The data type of data item, including:Using the data type of String keyword definition message data items, then the message data Item just assembles message according to character type;Using the data type of Number keyword definition message data items, then the message number Just message is assembled according to numeric type according to item;Using the data type of Date keyword definition message data items, then the message number Just message is assembled according to date type according to item, and the pattern defined according to pattern is formatted to date data item;Use The data type of Amount keyword definition message data items, then the message data item just according to amount of money type assemble message, and And the pattern defined according to decimal increases to value data item or deducts arithmetic point.
Further, in one embodiment, the output module is for the length and priority according to the message data item Sequential output message, including:The debug attributes that message format defines factory transformFactory are arranged to into true, then According to the length and sequencing outgoing message of the message data item.
The message configuration of the embodiment of the present invention and output intent and device, have abandoned existing System.arraycopy side Formula, reduces developer's workload, and supports various messages, be widely used, improve development efficiency;In addition, the present invention gets rid of The method for having abandoned read bit, using the method for Sequential output message, can quick alignment error position, reduce the wrong lookup time, The message testing time is reduced, message testing efficiency is improved.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those skilled in the art, without having to pay creative labor, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Message configuration and the process chart of output intent of the Fig. 1 for the embodiment of the present invention;
Message configuration and the structural representation of output device of the Fig. 2 for the embodiment of the present invention;
Structural representations of the Fig. 3 for the message configuration module in embodiment illustrated in fig. 2.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment, Method or computer program.Therefore, the disclosure can be implemented as following form, i.e.,:Completely hardware, completely soft Part (includes firmware, resident software, microcode etc.), or the form that hardware and software is combined.
Below with reference to some representative embodiments of the present invention, the in detail principle and spirit of the explaination present invention.
Message proposed by the present invention configuration with the main thought of output intent is:Message configuration is carried out using XML file, The length and sequencing of each message data item defined in XML file, message definition are clear, simple;To different data class Type, defines different keywords, supports the data item such as character type, numeric type, date type, amount of money type, crucial using include Word, heading and message body can be defined respectively, and message configuration is convenient, can greatly reduce the workload of developer, reduce artificial Work;Also, the present invention support fixed length message, become long message, XML message, 8583 messages, mixing message (fixed length+elongated+ XML configuration) and test, covering scope are wide, and developer can be helped to carry out the configuration and test of various messages, exploitation is improved Efficiency.
In addition, the order that the present invention is provided prints the technology of message configuration item, can be according to the sequencing of message definition Message is printed with length, it is open-and-shut allow developer to see all of message item, being capable of quick alignment error message Position, improves the efficiency of message test.Therefore, if there is query to the correctness of message between two systems, on message Send mistake, the present invention provide the message of transmission, for the message exception for receiving, the message for receiving can be parsed, in technology The definition of conceptual level docking port carries out technical identification.When obtaining the DCO information such as debug, the present invention can be surveyed Examination, the exception (message abnormal ending, the problem of message overlength, message dislocation, message data item are illegal) of inspection production message.
Message configuration and the process chart of output intent of the Fig. 1 for the embodiment of the present invention.As shown in figure 1, including:
Step S101, carries out message configuration using XML file, defines the length and sequencing of each message data item; Step S102, according to the length and sequencing outgoing message of the message data item.
In in the present embodiment the step of S101, message configuration is carried out using XML file, define each message data item Length and sequencing, including:Step S1011, defines heading and message body respectively using XML file;Step S1012, makes With the data type of different keyword definition message data items;Step S1013, according to definition after the heading, message body And the data type composition data stream of message data item.
Wherein, step S1011 and step S1012 do not have sequencing relation, and two steps can be performed simultaneously.
In in the present embodiment the step of S1011, heading and message body are defined respectively using XML file, including:Definition The heading, including define message length, transaction code and product information;And the message body is defined, including according to described Transaction code defines the length and sequencing of message data item.
General System can all define heading and message body, and heading generally comprises message length, transaction code, product information Etc. public information, information of the message body comprising concrete certain transaction.
So that following heading defines file DemoFormatPacket.xml as an example, for heading is defined, such as 2 institute of table Show, it is including message length+transaction code, and for message body is defined, different with specific reference to transaction code:
Table 2
In message configuration above, DATA_LEN represents message length, and program can calculate transaction code length+message body Length is put in the corresponding data fields of DATA_LEN, and TRAN_CODE represents transaction code, when transaction code is D0002, is passed through Include keywords and prefix DemoFormat will find message body and define file DemoFormatD0002.xml, DemoFormatD0002.xml is that message body defines file, has corresponded to D0002 transaction:
In superincumbent XML message configuration file, " above the sending message format to define " of correspondence Table 3 below, program is first Heading DemoFormatPacket.xml configuration files are read, message body DemoFormatD0002.xml messages are then read Configuration file, in two configuration files, defines the sequencing and length of message data item, and program is according to message data item Sequencing and length assembling message, or by taking following 5 message contents as an example, 123.56 yuan of Payment Amount.
Table 3
Message data item-parameter Length Message data item-implication Data type Remarks
payerAcct 9(17) Payment account number Numeric type
payeeAcct 9(17) Shroff account number Numeric type
currency X(3) Payment currency type Character type CNY
tranAmount 9(15) Payment Amount Amount of money type
tranDate X(10) The date of payment Date type yyyy-MM-dd
Definition of the program according to XML file, assembling message are as follows:
If one of which there occurs change, as long as modification XML file configuration, simple, developer is also easy In understanding, the efficiency of exploitation is greatly improved.It is changed into as a example by 16 by the amount of money:
In in the present embodiment the step of S1012, using the data type of different keyword definition message data items, i.e.,: To different data types, different keywords are defined, in the present invention, support the number such as character type, numeric type, date type, amount of money type According to item.
1st, character type is String keywords, the definition of either elongated or fixed length, as long as comprising String keywords, This data item just assembles message according to character type;
2nd, numeric type is Number keywords, the definition of either elongated or fixed length, as long as comprising Number keywords, This data item just assembles message according to numeric type, if data item content is nonnumeric type, program will report an error and point out exploitation Personnel;
3rd, date type is Date keywords, the definition of either elongated or fixed length, as long as comprising Date keywords, this Data item just assembles message according to date type, and the pattern defined according to pattern can enter row format to date data item Change;
4th, amount of money type is Amount keywords, the definition of either elongated or fixed length, as long as comprising Amount keywords, This data item just assembles message according to amount of money type, and the pattern defined according to decimal can increase to value data item Or deduct arithmetic point.
In the step of the present embodiment S1013, complete heading, message body and data item with postponing, then according to fixed The data type composition data stream of the heading, message body and message data item after justice.
The present invention supports fixed length message, becomes long message, XML message, 8583 messages, mixing message (fixed length+elongated+XML).
1st, fixed length Message processing
It is fixed that fixed length message is exactly the length of message as its name suggests, not because the change message of each transaction content is long Spend and change.For example interface definition is as shown in table 4 below, input:
Table 4
The message for then generating is as follows:
0057D0001F1234567890 R1234567890 CNY000000000010000
After account and amount of money change, message length is constant:
0057D0001F2345678901 R1234567890 CNY000000000020000
The advantage of fixed length message be form fix, length it is controllable, have the disadvantage to produce the redundancies such as space, waste communication empty Between.
For the setting of fixed length message, in XML file started with fix, for example,<FixStringname=" PayerAcct " length=" 17 "/>The account message of 17 regular lengths is represented, program reads the definition of XML file, if FixString is run into just according to fixed length Message processing.
2nd, elongated Message processing
Become the change message length that long message is exactly each transaction content to change.Becoming long message has two kinds of forms, a kind of It is that each data item defines length and content, another is that separators are used between data item.
The message of the first form is as follows:
0051005D0001010F1234567890010R1234567890003CNY005010000
The message of second form is as follows:
0041$D0001$F1234567890$R1234567890$CNY$010000
The advantage for becoming long message is that form is flexible, saves data space, has the disadvantage that the content to message is uncontrollable.
For the setting for becoming long message, in XML file started with var, for example,<VarStringname=" KEY " type=" LL "></varString>The change long message that representative is represented with two tens,【0512345】Represent that KEY is The message for receiving, 05 represents the length of message, and 12345 represent the value of KEY, and program reads the definition of XML file, if run into VarString is just according to elongated Message processing.
3rd, XML message is processed
It is XML document form that XML message is exactly the content of message.
For the setting of XML message, in XML file started with xmlTag, for example,<<xmlTagformat =" true "><Number name=" AC_CNT " length=" 4 " option=" false "></Number></xmlTag> Represent this message data item to be assembled according to XML message standard, assembling form is numeric type, the name of xmlTag is AC_CNT, after assembling be<AC_CNT>0123456789</AC_CNT>;Program reads the definition of XML file, if run into XmlTag is just according to XML message process.
<XmlTag format=" true ">
<Number name=" AC_CNT " length=" 4 " option=" false "></Number>
</xmlTag><!-- customer ID -->
It is upper send data when, it may appear that above send the situation of XML file format data, data press the definition of XML reference formats, Increase the definition of XML message head and XML message tail before and after message, XML message is defined as follows:
XML message head definition+XML message body definition+XML message tail is defined.
4th, ISO8583 Message processings
For the setting of iso8583 messages, in XML file started with iso8583Fields, such as following report Text definition, bitMap define which domain of this section of message comprising 8583 messages, in the subset of iso8583Fields definition The concrete form in each 8583 message domain is defined just.
<7,39,63,70 " beginOffset=" 0 of iso8583Fields bitMap=" ">
Foregoing represents such message as ISO8583 messages, comprising BITMAP be 7,39,63,70 grade 4;
<!-- 7-Transmission Date&Time N10 (MMDDhhmmss) exchange hours -->
<FixBullBCD name=" TIME " length=" 10 "></fixBullBCD>
Foregoing represents this message as the 7th domain in ISO8583 messages, is the time data item of 10;
</iso8583Fields>
5th, mix Message processing
For the process of mixing message (fixed length+elongated+XML) is arranged, it is exactly the data that Baffle baffle system treasured is received The message format for being divided into heading and message body two parts, heading and bag problem can be with difference, and their compound mode can be with For:1) heading (fixed length message)+message body (change long message);2) heading (fixed length message)+message body (XML message);1) Heading (change long message)+message body (XML message).
In in the present embodiment the step of S103, according to the length and sequencing outgoing message of the message data item, Its method is:The debug attributes that message format defines factory transformFactory are arranged to into true, it is possible to support suitable Sequence prints the content such as message configuration item and message length:
<TransformerFactory id=" TransformerFactory ">
<Param name=" debug ">true</param>
</transformerFactory>
The present invention puies forward the technology of supplied Sequential output message configuration item, can be according to the sequencing of message definition and length Degree prints message, open-and-shut to allow developer to see all of message item, is capable of the position of quick alignment error message, Improve the efficiency of message test.
Program can read debug flag bits, and if true, program will be suitable according to the priority of XML configuration file definition The sequence and length outgoing message content on control station is as follows:
In test or production environment, often an outgoing message content, the content without exporting each message configuration item.Such as There is query to the correctness of message between fruit two systems, for message up sending mistake, the present invention can provide the message of transmission, For the message exception for receiving, the message for receiving can be parsed.When the DCO information such as debug cannot be obtained, as long as carrying For message content, the present invention just can quickly position illegal data item.
For client have sent message, server end also have received message, but server end returned packet is illegally wrong By mistake, client will provide the message of transmission to server end, quickly position illegal data item.
For example, there is provided message content is as follows:
The present invention is defined as follows according to message:
Test packet data item is as follows:
Two such system just can be investigated according to the output result of test, find out rapidly position and the report of error Literary data item.
The present invention can also test, check the exception (such as message abnormal ending, the problem of message overlength) of production message.
Because the present invention can outgoing message length, as long as output message length carry out with the length that message is defined it is right Than, it is possible to find message abnormal ending, the problem of message overlength.
For example message is defined as follows, and normal length should be changed to 67, as shown in table 5 below:
Table 5
Outgoing message is as follows:
sendDatas:0068D00020000010111234567800000101356789012CNY0000000000012 3562016-03-21;Message length is 0068, illustrates message overlength.
Although it should be noted that describe the operation of the inventive method in the accompanying drawings with particular order, this does not require that Or hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize the phase The result of prestige.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step to perform, and/or will One step is decomposed into execution of multiple steps.
After the method for describing exemplary embodiment of the invention, next, with reference to Fig. 2 to exemplary reality of the invention The message configuration and output device for applying mode is introduced.The enforcement of the device may refer to the enforcement of said method, repetition Place repeats no more.Term " module " used below and " unit ", can be the software and/or hardware for realizing predetermined function. Although the module described by following examples is preferably with software realizing, hardware, or the combination of software and hardware Realize being also what is may and be contemplated.
Message configuration and the structural representation of output device of the Fig. 2 for the embodiment of the present invention.As shown in Fig. 2 including:
Message configuration module 101, for carrying out message configuration using XML file, defines the length of each message data item And sequencing;Output module 102, for length and sequencing outgoing message according to the message data item.
Further, in the present embodiment, as shown in figure 3, the message configuration module 101 is for being entered using XML file Row message is configured, and defines the length and sequencing of each message data item, and which specifically includes:
Message format definition unit 1011, for defining heading and message body respectively using XML file;
Dtd--data type definition unit 1012, for using the data type of different keyword definition message data items;
Data flow component units 1013, for the heading after according to definition, message body and message data item Data type composition data stream.
Further, in the present embodiment, the message format definition unit 1011 is used to defined using XML file respectively Heading and message body, which specifically includes:Heading definition unit, for defining the heading, including define message length, Transaction code and product information;And message body definition unit, for defining the message body, including according to transaction code definition The length and sequencing of message data item.
Further, in the present embodiment, the dtd--data type definition unit 1012 is used for using different keyword definitions The data type of message data item, including:Using the data type of String keyword definition message data items, then the message Data item just assembles message according to character type;Using the data type of Number keyword definition message data items, then the report Literary data item just assembles message according to numeric type;Using the data type of Date keyword definition message data items, then the report Literary data item just assembles message according to date type, and the pattern defined according to pattern is formatted to date data item; Using the data type of Amount keyword definition message data items, then the message data item is just according to amount of money type assembling report Text, and according to decimal define pattern to value data item increase or deduct arithmetic point.
Further, in the present embodiment, the output module 103 is for the length according to the message data item and elder generation Sequential output message afterwards, including:The debug attributes that message format defines factory transformFactory are arranged to into true, Then according to the length and sequencing outgoing message of the message data item.
Message configuration and output intent that the embodiment of the present invention is proposed, carry out message configuration using XML file, literary in XML The length and sequencing of each message data item defined in part, message definition are clear, simple;It is to different data types, fixed The different keyword of justice, supports the data item such as character type, numeric type, date type, amount of money type, using include keywords, message Head and message body can be defined respectively, and message configuration is convenient, can greatly reduce the workload of developer, reduces hand labor;And And, the present invention supports fixed length message, becomes long message, XML message, 8583 messages, the configuration of mixing message (fixed length+elongated+XML) And test, covering scope is wide, and developer can be helped to carry out the configuration and test of various messages, development efficiency is improved.In addition, The method that the order that the present invention is provided prints message configuration item, can print report according to the sequencing of message definition and length Text, it is open-and-shut to allow developer to see all of message item, it is capable of the position of quick alignment error message, improves message The efficiency of test.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be using the computer for wherein including computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) is produced The form of product.
The present invention be with reference to method according to embodiments of the present invention, equipment (system), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Apply specific embodiment to be set forth the principle and embodiment of the present invention in the present invention, above example Explanation be only intended to help and understand the method for the present invention and its core concept;Simultaneously for one of ordinary skill in the art, According to the thought of the present invention, will change in specific embodiments and applications, in sum, in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of message is configured and output intent, it is characterised in that included:
Message configuration is carried out using XML file, the length and sequencing of each message data item is defined;
According to the length and sequencing outgoing message of the message data item.
2. message according to claim 1 is configured and output intent, it is characterised in that is carried out message using XML file and is matched somebody with somebody Put, define the length and sequencing of each message data item, including:
Heading and message body are defined respectively using XML file;
Using the data type of different keyword definition message data items;
The data type composition data stream of the heading, message body and message data item after according to definition.
3. message according to claim 2 is configured and output intent, it is characterised in that define report respectively using XML file Literary head and message body, including:
The heading is defined, including defines message length, transaction code and product information;
The message body is defined, including length and sequencing that message data item is defined according to the transaction code.
4. message according to claim 2 is configured and output intent, it is characterised in that using different keyword definition messages The data type of data item, including:
Using the data type of String keyword definition message data items, then the message data item is just according to character type assembling Message;
Using the data type of Number keyword definition message data items, then the message data item is just according to numeric type assembling Message;
Using the data type of Date keyword definition message data items, then the message data item is just according to date type assembling report Text, and according to pattern define pattern date data item is formatted;
Using the data type of Amount keyword definition message data items, then the message data item is just according to the assembling of amount of money type Message, and according to decimal define pattern to value data item increase or deduct arithmetic point.
5. message according to claim 1 is configured and output intent, it is characterised in that according to the length of the message data item Degree and sequencing outgoing message, including:
The debug attributes that message format defines factory transformFactory are arranged to into true, then according to the message number According to the length and sequencing outgoing message of item.
6. a kind of message is configured and output device, it is characterised in that included:
Message configuration module, for carrying out message configuration using XML file, the length and priority for defining each message data item is suitable Sequence;
Output module, for length and sequencing outgoing message according to the message data item.
7. message according to claim 6 is configured and output device, it is characterised in that the message configuration module is used to make Message configuration is carried out with XML file, the length and sequencing of each message data item is defined, which specifically includes:
Message format definition unit, for defining heading and message body respectively using XML file;
Dtd--data type definition unit, for using the data type of different keyword definition message data items;
Data flow component units, for the data type of the heading, message body and message data item after according to definition Composition data stream.
8. message according to claim 7 is configured and output device, it is characterised in that the message format definition unit is used In heading and message body is defined respectively using XML file, which specifically includes:
Heading definition unit, for defining the heading, including defines message length, transaction code and product information;
Message body definition unit, for defining the message body, including the length that message data item is defined according to the transaction code And sequencing.
9. message according to claim 7 is configured and output device, it is characterised in that the dtd--data type definition unit is used In the data type using different keyword definition message data items, including:
Using the data type of String keyword definition message data items, then the message data item is just according to character type assembling Message;
Using the data type of Number keyword definition message data items, then the message data item is just according to numeric type assembling Message;
Using the data type of Date keyword definition message data items, then the message data item is just according to date type assembling report Text, and according to pattern define pattern date data item is formatted;
Using the data type of Amount keyword definition message data items, then the message data item is just according to the assembling of amount of money type Message, and according to decimal define pattern to value data item increase or deduct arithmetic point.
10. message according to claim 6 is configured and output device, it is characterised in that the output module is used for basis The length and sequencing outgoing message of the message data item, including:
The debug attributes that message format defines factory transformFactory are arranged to into true, then according to the message number According to the length and sequencing outgoing message of item.
CN201611027224.7A 2016-11-18 2016-11-18 A kind of configuration of message and output method and device Active CN106528823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611027224.7A CN106528823B (en) 2016-11-18 2016-11-18 A kind of configuration of message and output method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027224.7A CN106528823B (en) 2016-11-18 2016-11-18 A kind of configuration of message and output method and device

Publications (2)

Publication Number Publication Date
CN106528823A true CN106528823A (en) 2017-03-22
CN106528823B CN106528823B (en) 2019-08-30

Family

ID=58352777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611027224.7A Active CN106528823B (en) 2016-11-18 2016-11-18 A kind of configuration of message and output method and device

Country Status (1)

Country Link
CN (1) CN106528823B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633214A (en) * 2019-09-19 2019-12-31 中国银行股份有限公司 Configuration method and device of internal test message
CN111049813A (en) * 2019-12-04 2020-04-21 中国银行股份有限公司 Message assembling method, message analyzing method, message assembling device, message analyzing device and storage medium
CN112000332A (en) * 2020-07-09 2020-11-27 惠州市德赛西威汽车电子股份有限公司 Automatic generating method and system of bus panel
CN112187761A (en) * 2020-09-22 2021-01-05 中国建设银行股份有限公司 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
CN114040008A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Message processing method and device
CN115190055A (en) * 2022-07-08 2022-10-14 武汉众邦银行股份有限公司 TCP message customized conversion method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697546A (en) * 2009-10-30 2010-04-21 南京中兴软创科技股份有限公司 Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes
US8392561B1 (en) * 2008-06-20 2013-03-05 Arrayent, Inc. Wireless internet product system
CN104572122A (en) * 2015-01-28 2015-04-29 中国工商银行股份有限公司 Software application data generating device and method
CN106027330A (en) * 2016-05-23 2016-10-12 中国银行股份有限公司 Message testing method for front-end system, and simulation baffle system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8392561B1 (en) * 2008-06-20 2013-03-05 Arrayent, Inc. Wireless internet product system
CN101697546A (en) * 2009-10-30 2010-04-21 南京中兴软创科技股份有限公司 Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes
CN104572122A (en) * 2015-01-28 2015-04-29 中国工商银行股份有限公司 Software application data generating device and method
CN106027330A (en) * 2016-05-23 2016-10-12 中国银行股份有限公司 Message testing method for front-end system, and simulation baffle system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633214A (en) * 2019-09-19 2019-12-31 中国银行股份有限公司 Configuration method and device of internal test message
CN110633214B (en) * 2019-09-19 2023-12-08 中国银行股份有限公司 Configuration method and device for internal test message
CN111049813A (en) * 2019-12-04 2020-04-21 中国银行股份有限公司 Message assembling method, message analyzing method, message assembling device, message analyzing device and storage medium
CN112000332A (en) * 2020-07-09 2020-11-27 惠州市德赛西威汽车电子股份有限公司 Automatic generating method and system of bus panel
CN112000332B (en) * 2020-07-09 2024-05-31 惠州市德赛西威汽车电子股份有限公司 Automatic generation method and system of bus panel
CN112187761A (en) * 2020-09-22 2021-01-05 中国建设银行股份有限公司 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
CN112187761B (en) * 2020-09-22 2022-12-13 中国建设银行股份有限公司 Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
CN114040008A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Message processing method and device
CN115190055A (en) * 2022-07-08 2022-10-14 武汉众邦银行股份有限公司 TCP message customized conversion method, device and storage medium

Also Published As

Publication number Publication date
CN106528823B (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN106528823A (en) Message configuration and output method and device
CN111813963B (en) Knowledge graph construction method and device, electronic equipment and storage medium
Travis et al. LabVIEW for everyone: Graphical programming made easy and fun (National instruments virtual instrumentation series)
US20060048107A1 (en) Enhanced compiled representation of transformation formats
CN106503268B (en) Data comparison methods, devices and systems
CN111950239B (en) Schema document generation method, device, computer equipment and medium
CN103631783B (en) A kind of generation method and system of front end page
CN109298861A (en) A kind of method and device automatically generating file according to interface document
CN111428451B (en) Text online editing method and device, electronic equipment and storage medium
JP4890869B2 (en) A mechanism for transferring raw data between data structures that represent the same item
CN115408399A (en) Blood relationship analysis method, device, equipment and storage medium based on SQL script
CN105824647A (en) Form page generating method and device
CN110134596A (en) The generation method and terminal device of test document
CN113238929A (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN107391528B (en) Front-end component dependent information searching method and equipment
US8904354B2 (en) Rule based syntax software test case generator
CN108319466A (en) A kind of restoration methods and device of configuration information
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN109408092A (en) Method and device, storage medium and the electronic equipment of front end version publication
CN104111917A (en) Data processing device, data processing method and electronic device
US20100057704A1 (en) Automatic Test Map Generation for System Verification Test
CN115794621A (en) Code coverage test method, device, equipment and storage medium
CN115168778A (en) Website page generation method and system, electronic equipment and readable storage medium
US10817661B2 (en) System architecture framework
CN103577170A (en) Construction method and construction device for web application

Legal Events

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