CN101848148B - Data transmission processing system, device and method applied to financial message language - Google Patents

Data transmission processing system, device and method applied to financial message language Download PDF

Info

Publication number
CN101848148B
CN101848148B CN2010101575826A CN201010157582A CN101848148B CN 101848148 B CN101848148 B CN 101848148B CN 2010101575826 A CN2010101575826 A CN 2010101575826A CN 201010157582 A CN201010157582 A CN 201010157582A CN 101848148 B CN101848148 B CN 101848148B
Authority
CN
China
Prior art keywords
data
financial message
message language
module
district
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
CN2010101575826A
Other languages
Chinese (zh)
Other versions
CN101848148A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN2010101575826A priority Critical patent/CN101848148B/en
Publication of CN101848148A publication Critical patent/CN101848148A/en
Application granted granted Critical
Publication of CN101848148B publication Critical patent/CN101848148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data transmission processing system applied to a financial message language. The system comprises a channel access layer, a gateway, an interactive control layer and a service processing layer which are connected in turn; a financial message language processing device is collocated on a channel access terminal server, the gateway, an application server and a host member; the financial message language processing device processes and forwards communication data packets between the channel access terminal server and the gateway, between the gateway and the application server and between the application server and the host member so as to realize data transmission of the financial message language. The invention discloses a data transmission processing device and a data transmission processing method applied to the financial message language at the same time. The system overcomes the technical defects of the conventional XML message language and a resolver thereof, has the characteristics of efficient packing and unpacking, low CPU consumption and the like, and balances the high-performance requirements of an application service member for an interface loose coupling and a host on-line core application.

Description

Be applied to data transmission processing system, the device and method of financial message language
Technical field
The present invention relates to financial message language (IFML) data transmission and processing technical field, especially a kind of data transmission processing system, device and method that is applied to financial message language.
Background technology
Serviceization, componentization, loose coupling are the development trends of on-line Application system of current enterprise programming; And normally adopt XML (eXtensible Markup Language) as message language, with the XML resolver of each platform as serviceization, basis of components back-up system.
The XML message that the XML resolver generates is a kind of DDL; Have characteristics such as opening, legibility, extensibility, terseness (for female standard SGML of XML), self-described, these characteristics make XML become general in the world, be widely used in the application program service interface.The resolver that XML is also arranged on the IBM host computer system, but if in serviceization and the componentization of main frame on-line Application member based on XML resolver realization on-line Application, the following difficulty that can't overcome is just arranged:
1) consumption of XML resolver cpu resource is very big, the processing time is long.
With respect to main frame on-line transaction program; No matter which kind of the XML analysis program bag or method of employing; Conciliate to wrap at XML group bag and all will consume a large amount of CPU running time, 1 host transaction possibly call more than 10 host application member, technological member, if adopt XML; The performance of using transaction especially has the very high concurrent core online transaction system that requires with real-time to financial industry with unacceptable.
2) the XML message is oversize.
The XML message that the XML resolver generates is a kind of text, and usage flag encapsulates data, and the COPYBOOK interface that the mainframe program of comparing is traditional is much lower on expression efficiency, and the data than COPYBOOK type increase about 5-10 times usually.And when the main frame component program is called mutually, especially stride CICS through the program DPL that VTAM accomplishes, the restriction in 32K communication district is arranged.
Consider the development trend of Application Design serviceization, componentization and loose coupling, press for a kind of data transmission and processing device and come efficient support to be provided service, the member of host application system.
Summary of the invention
The technical problem that (one) will solve
In view of this; In order to overcome the technical disadvantages of existing XML message language and resolver thereof; The invention provides a kind of data transmission processing system, device and method that is applied to financial message language; The data transmission and processing device is deployed on channel server, gateway and the main frame, and characteristics such as efficient group of bag unpacks, low CPU consumption are arranged, and has taken into account docking port loose coupling of application program service member and the high performance requirement of the online core application of main frame.
(2) technical scheme
For achieving the above object, the technical scheme that the present invention adopts is following:
A kind of data transmission processing system that is applied to financial message language; This system comprises channel Access Layer 1, gateway 3, mutual key-course 4 and the Business treatment 5 that connects successively; Wherein, Channel Access Layer 1 comprises that multiple support channels access terminal and a plurality of channel that this channel accesses terminal server that accesses terminal that is disposed at; Mutual key-course 4 comprises a plurality of application servers; Business treatment 5 comprises a plurality of main frame members; This channel server that accesses terminal is transmitted to corresponding application server in the mutual key-course 4 with this channel data that receive that access terminal through gateway 3, calls main frame member corresponding in the Business treatment 5 by this application server these data are handled, and on this channel accesses terminal server, gateway 3, application server and main frame member, all disposes financial message language processing unit 2; The communication data packets that 2 pairs of channels of this financial message language processing unit access terminal between server and gateway 3, gateway 3 and application server, application server and the main frame member is handled and is transmitted, and realizes the transfer of data of financial message language.
In the such scheme, this financial message language is self-described, comprises packet header 100, self-described district and data field 400, and wherein, data field 400 is the pure business datums of closely discharging, and the detailed description to the data field is realized with the self-described district in packet header 100.
In the such scheme; This self-described district adopts double-layer structure; Comprise structure description district 200 and concrete parameter region 300, concrete parameter is belonged in the two-dimensional array structure, realize expressing array data with message; And regard communication district record segment as have only 1 element two-dimensional array, and then single parameter is belonged under certain bar communication district record segment.
In the such scheme, financial message language self-described adopts following scheme to realize in this system:
1) the pure communication district data of the reality deposited of data field 400 have no between data and the data at interval, are tight dischargings; And utilization structure volume description district 200,300 pairs of data fields, concrete parametric description district carry out self-described;
2) packet header 100: the size of structure description district 200, concrete parametric description district 300, data field 400 in the financial message language packet is described in packet header;
A) structure is counted the 101:2 byte, the number of structure in the expression data, and just structure is described has describe for what structures in the district 200, determined the size in structure volume description district 200; Data Source: provide by called side during the packing of communication district;
B) write down number 102:2 byte, represent the number of concrete parameter, in the just concrete parametric description district 300 what parametric descriptions are arranged, determined the size in concrete parametric description district 300; Data Source: provide by called side in the time of the packing of communication district;
C) data field data length 103:2 byte, the size of expression data field 400; Data Source: provide by called side during the packing of communication district;
3) structure is described district 1: structrual description is carried out in the data field, the data field is described as several two-dimensional arrays, wherein certain structure is described and is comprised:
A) structure identifies the 201:8 byte, representes the title of this structure; Data Source: provided by called side during the packing of communication district, the data in structure description district are arranged by structure sign ascending order during the group bag;
B) record number 202:2 byte representes how many bar records are this structure correspondence have in the data field, and the record number equals the unirecord structure of 1 representative, and the record number is greater than the structure of the many records of 1 expression; Data Source: provide by called side during the packing of communication district;
C) parameter region bias internal amount 203:2 byte is represented the original position of the affiliated parameter of this structure in concrete parametric description district 300; Data Source: structure number of parameters sum calculates before the communication district wrapper basis;
D) number of parameters 204:2 byte is represented the number of parameters of this structure in concrete parametric description district 300; Data Source: provide by called side during the packing of communication district;
E) data field bias internal amount 205:2 byte is represented the original position of this structure in the data field; Data Source: communication district wrapper calculates according to structure data length sum before;
F) structure data length 206:2 byte is represented the data length of this structure in the data field; Data Source: provide by called side during the packing of communication district;
4) parametric description district 2: describe the concrete parameter below the structure, wherein certain concrete parametric description comprises:
A) parameter name 301:12 byte, the specifically name of certain parameter; Data Source: provided by called side in the time of the packing of communication district, arrange by structure name, parameter name ascending order in the parametric description district during group bag;
B) decoding type 302:2 byte representes how this parameter is deciphered on gateway; Data Source: provide by called side during the packing of communication district;
C) structure bias internal amount 303:2 byte is represented the original position of this parameter in this structure; Data Source: communication district wrapper calculates according to supplemental characteristic length sum before;
D) supplemental characteristic length 304:2 byte is represented the length of this parameter; Data Source: provide by called side during the packing of communication district.
In the such scheme; This financial message language processing unit 2 comprises parallel financial message language group bag module that connects 20 and financial message language parse module 30; The wherein data of 20 pairs of receptions of this financial message language group bag module processing that packages generates financial message language packet and output; The financial message language packet of 30 pairs of receptions of this financial message language parse module unpacks processing, extracts data and output in the financial message language packet.
In the such scheme; This financial message language group bag module 20 comprises that successively the packet header generation module 21, the structure that connect describe district's generation module 23, parametric description district generation module 25, increase data field module 27 and group bag return information processing module 28, and the header data that is connected with packet header generation module 21 inspection module 22, with the structure description distinguish structure that generation module 23 is connected in the parameter region data field calculations of offset module 24, the parameter that is connected with parametric description district generation module 25 at structure bias internal computing module 26.
In the such scheme, this packet header generation module 21 reads the header data that financial message language group bag module 20 receives in the data, generates financial message language packet header 100, and joins in the financial message language packet of financial message language group bag module 20 outputs.
In the such scheme; Before generating financial message language packet header 100; This packet header generation module 21 calls 22 pairs of header data that receive in the data of header data inspection module and checks that 22 pairs of header data inspections of header data inspection module comprise following 3 aspects:
1), whether inspection structure number transfinites;
2), whether the inspection number of parameters transfinites; And
3), whether the inspection data field length transfinites.
In the such scheme; This structure is described 23 circulations of district's generation module and is read the structure data of description that financial message language group bag module 20 receives in the data; Obtain that structure sign 201, record are several 202, the number of parameters 204 and the structure data length 206 of structure; And call structure in the parameter region data field calculations of offset module 24 obtain this structure parameter region bias internal amount 203 and this structure in the data field bias internal amount 205; Generating structure volume description district 200, and the structure that generates described in the financial message language packet that district 200 joins 20 outputs of financial message language group bag module.
In the such scheme; Calculations of offset module 24 calculates this structure in parameter region bias internal amount 203 according to number of parameters 204 sums of this structure to this structure in the parameter region data field, according to these structure data length 206 sums calculate this structure in the data field bias internal amount 205.
In the such scheme; These parametric description district generation module 25 circulations are read financial message language group bag module 20 and are received the parametric description input data in the data; Obtain parameter identification 301, decoding type 302 and supplemental characteristic length 304; And call parameters is at structure bias internal computing module 26; Obtain this parameter in structure bias internal amount 303, generate parametric description district 300, and the parametric description district 300 that generates is joined in the financial message language packet of financial message language group bag module 20 outputs.
In the such scheme, this parameter structure bias internal computing module 26 according to structure in before supplemental characteristic length 304 sums of parameter, calculate this parameter in structure bias internal amount 303.
In the such scheme, this increase data field module 27 joins data field 400 in the financial message language packet of financial message language group bag module 20 outputs.
In the such scheme, this group bag return information processing module 28 is provided with the return code and the return information of group bag.
In the such scheme, this financial message language parse module 30 comprises unpacking input data formatting module 31, structure data extraction module 32, supplemental characteristic extraction module 33, unpack communication district, back generation module 34 and unpacking return information processing module 35 of connecting successively.
In the such scheme, this header data that unpacks 31 pairs of financial message language packets of input data formatting module is checked, sees whether structure number, number of parameters, data field length transfinite; And with the aray variable that defines in advance to the input data carry out straightforward formatization.
In the such scheme; These input data comprise: the parametric description that structure that financial message language message, called side need be extracted is described and called side need be extracted, this unpacks aray variable that input data formatting module 31 usefulness define in advance, and the input data are carried out straightforward formatization is that these three types of data indirect assignments are given in the format aray variable well.
In the such scheme, this structure data extraction module 32 is described search in the district according to the structure name of input at structure, if match, then the recall parameter data extraction module 33, and circulation primary like this is up to the extraction of accomplishing all structure data; If do not match, the structure data that need of the side of unpacking not in the financial message language packet are then called and are unpacked return information processing module 35 and carry out fault processing and withdraw from.
In the such scheme, this supplemental characteristic extraction module 33 is searched in the parametric description district according to the parameter name of input, if match, then directly extracts data from the data field through side-play amount, data length; If do not match, then this parameter not in the financial message language packet is composed default value; So circulation primary is accomplished all Parameter Extraction under certain structure.
In the such scheme, after communication district generation module 34 had obtained the concrete numerical value of parameter at supplemental characteristic extraction module 33 after this unpacked, structure, the parameter information according to the called side input generated the communication district after unpacking again.
In the such scheme, this unpacks return information processing module 35 return code and the return information that unpacks is set.
In the such scheme, access terminal at least a in terminal channel, self-aided terminal, ATM terminal, POS terminal, Net silver terminal and the telephone bank terminal of this channel; Main frame member in this Business treatment 5 adopts the traditional COPYBOOK communication district of mainframe program.
A kind of financial message language processing unit; This processing unit comprises parallel financial message language group bag module that connects 20 and financial message language parse module 30; The processing that packages of the data of 20 pairs of receptions of this financial message language group bag module generates financial message language packet and output; The financial message language packet of 30 pairs of receptions of this financial message language parse module unpacks processing, extracts data and output in the financial message language packet.
In the such scheme; This financial message language group bag module 20 comprises packet header generation module 21, structure description district generation module 23, parametric description district generation module 25, increase data field module 27 and the group bag return information processing module 28 that connects successively; And the header data that is connected with packet header generation module 21 inspection module 22, with structure describe distinguish structure that generation module 23 is connected in the parameter region data field calculations of offset module 24, the parameter that is connected with parametric description district generation module 25 at structure bias internal computing module 26, wherein:
This packet header generation module 21 reads the header data that financial message language group bag module 20 receives in the data, generates financial message language packet header 100, and joins in the financial message language packet of financial message language group bag module 20 outputs;
Before generating financial message language packet header 100; This packet header generation module 21 calls 22 pairs of header data that receive in the data of header data inspection module and checks that 22 pairs of header data inspections of header data inspection module comprise following 3 aspects: whether inspection structure number transfinites; Whether the inspection number of parameters transfinites; And whether the inspection data field length transfinites;
This structure is described 23 circulations of district's generation module and is read the structure data of description that financial message language group bag module 20 receives in the data; Obtain that structure sign 201, record are several 202, the number of parameters 204 and the structure data length 206 of structure; And call structure in the parameter region data field calculations of offset module 24 obtain this structure parameter region bias internal amount 203 and this structure in the data field bias internal amount 205; Generating structure volume description district 200, and the structure that generates described in the financial message language packet that district 200 joins 20 outputs of financial message language group bag module;
Calculations of offset module 24 calculates this structure in parameter region bias internal amount 203 according to number of parameters 204 sums of this structure to this structure in the parameter region data field, according to these structure data length 206 sums calculate this structure in the data field bias internal amount 205;
These parametric description district generation module 25 circulations are read financial message language group bag module 20 and are received the parametric description input data in the data; Obtain parameter identification 301, decoding type 302 and supplemental characteristic length 304; And call parameters is at structure bias internal computing module 26; Obtain this parameter in structure bias internal amount 303, generate parametric description district 300, and the parametric description district 300 that generates is joined in the financial message language packet of financial message language group bag module 20 outputs;
This parameter structure bias internal computing module 26 according to structure in before supplemental characteristic length 304 sums of parameter, calculate this parameter in structure bias internal amount 303;
This increase data field module 27 joins data field 400 in the financial message language packet of financial message language group bag module 20 outputs;
This group bag return information processing module 28 is provided with the return code and the return information of group bag.
In the such scheme; This financial message language parse module 30 comprises successively unpacking input data formatting module 31, structure data extraction module 32, supplemental characteristic extraction module 33, unpacking communication district, back generation module 34 and unpack return information processing module 35 of connecting, wherein:
This header data that unpacks 31 pairs of financial message language packets of input data formatting module is checked, sees whether structure number, number of parameters, data field length transfinite; And with the aray variable that defines in advance to the input data carry out straightforward formatization;
These input data comprise: the parametric description that structure that financial message language message, called side need be extracted is described and called side need be extracted, and this unpacks aray variable that input data formatting module 31 usefulness define in advance, and the input data are carried out straightforward formatization is that these three types of data indirect assignments are given in the format aray variable well;
This structure data extraction module 32 is described search in the district according to the structure name of input at structure, if match, then the recall parameter data extraction module 33, and circulation primary like this is up to the extraction of accomplishing all structure data; If do not match, the structure data that need of the side of unpacking not in the financial message language packet are then called and are unpacked return information processing module 35 and carry out fault processing and withdraw from;
This supplemental characteristic extraction module 33 is searched in the parametric description district according to the parameter name of input, if match, then directly extracts data from the data field through side-play amount, data length; If do not match, then this parameter not in the financial message language packet is composed default value; So circulation primary is accomplished all Parameter Extraction under certain structure;
After communication district generation module 34 had obtained the concrete numerical value of parameter at supplemental characteristic extraction module 33 after this unpacked, structure, the parameter information according to the called side input generated the communication district after unpacking again;
This unpacks return information processing module 35 return code and the return information that unpacks is set.
A kind of data transmission processing method that is applied to financial message language is applied to include the financial message language processing unit of financial message language group bag module and financial message language parse module, and this method comprises:
This financial message language group bag module is to the data that receive processings that package, and generates the financial message language packet and exports; And
This financial message language parse module unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet.
In the such scheme, this financial message language group bag module is to the data that receive processings that package, and generates the financial message language packet and exports, and comprising:
Step 600: the header data to input is checked;
Step 601: create header packet information, comprise structure number, number of parameters, data field length at least;
Step 602: side-play amount and structure the side-play amount in data field of parameter in the parametric description district under the computation structure body;
Step 603: create the data of description of structure, comprise side-play amount, structure data length in side-play amount in structure sign, record number, the parametric description district, number of parameters, the data field at least;
Step 604: repeating step 602,603, up to the description of accomplishing all structures, promptly accomplish the establishment that structure is described the district;
Step 605: the side-play amount of calculating parameter in structure;
Step 606: create the data of description of parameter, comprise side-play amount, supplemental characteristic length in parameter, decoding type, the structure at least;
Step 607: circulation step 605,606 is up to the processing of accomplishing all parameters;
Step 608: fill in the clear data district at last.
In the such scheme, this financial message language parse module unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet, comprising:
Step 500: the data to unpacking input format;
Step 501: describe the district by the structure name at structure and scan the searching structure body;
Step 502: the structure scanning result is judged if match, then execution in step 503, carried out concrete parameter scanning in this structure; If do not match, then there are not the structure data of needs in the communication district, forward step 508 to and carry out fault processing, and withdraw from;
Step 503: scan search parameter by parameter name in the parametric description district;
Step 504: the result judges to parameter scanning, if match, then directly extracts data from the data field through side-play amount, data length; If do not match, then this parameter not in the communication district forwards step 505 to and composes default value;
Step 505: compose default value;
Step 506: judge whether to accomplish searching of all parameters in certain structure;
Step 507: judge whether to accomplish the processing of all structures.
In the such scheme, described in the step 500 data that unpack input are formatd and comprise:
Financial message language packet header data is checked; Whether see transfinites; And directly data extract is carried out in the input of financial message language parse module with the mode of memory variable assignment; The input serial data is stored in the good memory variable of format, and this input comprises: the parametric description that the structure that financial message language message, called side need be extracted is described, called side need be extracted.
In the such scheme, compose default value described in the step 505, be realize loose coupling requirement in the development specifications to the non-assignment that must fail.
(3) beneficial effect
Can find out that from technique scheme the present invention has following beneficial effect:
1, the present invention has overcome the technical disadvantages of existing XML message language and resolver thereof; A kind of data transmission processing system, device and method that is applied to financial message language is provided; The data transmission and processing device is deployed on channel server, gateway and the main frame; Characteristics such as efficient group of bag unpacks, low CPU consumption are arranged, taken into account docking port loose coupling of application program service member and the high performance requirement of the online core application of main frame.
2, the present invention's development need of financial industry main frame core on-line Application of fitting has satisfied the requirement of main frame contact procedure serviceization, componentization, loose coupling, can guarantee the high-performance of packet parsing simultaneously, satisfies the harsh requirement of main frame on-line program to performance.
3, test according to reality; Adopt public financial message COBOL analysis program; Each packet parsing approximately consumes 70 microsecond host CPUs; With comparing with the typical CPU time of on-line transaction more than 7 milliseconds under the hosted environment is acceptable, if be rewritten as source module to analysis program, packet parsing CPU consumes and can be controlled at about 35 microseconds.
Description of drawings
Fig. 1 is the system construction drawing of IFML message process device;
Fig. 2 is the functional block diagram of IFML message process device;
Fig. 3-the 1st, the functional block diagram of IFML group bag module;
Fig. 3-the 2nd, the functional block diagram of IFML parse module;
Fig. 4 is the structure diagram of IFML message;
Fig. 5-the 1st, the structure chart in IFML message packet header;
Fig. 5-the 2nd, IFML message structure volume description plot structure figure;
Fig. 5-the 3rd, the concrete test description plot structure of IFML message figure;
Fig. 6 is that the IFML message process device unpacks flow chart;
Fig. 7 is an IFML message process device group bag flow chart.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, to further explain of the present invention.
The invention provides a kind of data transmission processing system, device and method that is applied to financial message language; The high efficiency that is particluarly suitable for realization service, member in the main frame core on-line Application system is called; Be financial message language (hereinafter to be referred as IFML) processing unit, this device comprises IFML group bag module and IFML parse module.
IFML of the present invention is the data of self-described; For the high efficiency of processing unit, IFML at most only supports the two-dimensional array data, but in financial core application system; The two-dimensional array data are enough to express many return recordings that from database table, inquire, and IFML is enough.
To contrast accompanying drawing below, technical scheme of the present invention will be carried out detailed explanation.
The structure chart of the data transmission processing system that is applied to IFML provided by the invention is as shown in Figure 1, and this system comprises channel Access Layer 1, gateway 3, mutual key-course 4 and the Business treatment 5 that connects successively.Wherein, Channel Access Layer 1 comprises that multiple support channels access terminal and a plurality of channel that this channel accesses terminal server that accesses terminal that is disposed at; Mutual key-course 4 comprises a plurality of application servers; Business treatment 5 comprises a plurality of main frame members; This channel server that accesses terminal is transmitted to corresponding application server in the mutual key-course 4 with this channel data that receive that access terminal through gateway 3; Calling main frame member corresponding in the Business treatment 5 by this application server handles these data; On this channel accesses terminal server, gateway 3, application server and main frame member, all dispose financial message language processing unit 2, the communication data packets that 2 pairs of channels of this financial message language processing unit access terminal between server and gateway 3, gateway 3 and application server, application server and the main frame member is handled and is transmitted, and realizes the transfer of data of financial message language.
The access server that various channels are arranged in the channel Access Layer 1 among Fig. 1, as: be responsible for the terminal channel server that teller terminal inserts, be responsible for ATM channel server of ATM access or the like.
All disposed the processing unit 2 of XML or IFML of the present invention at each channel server of channel Access Layer 1.
Between channel Access Layer 1 server and gateway 3, can select the XML message also can select the IFML message that the present invention relates to.Also disposed IFML processing unit 2 of the present invention on the gateway 3, be responsible for IFML communication bag and handle.
Between the application service 4 that gateway 3 and main frame externally provide, adopt the IFML message that the present invention relates to; The main frame core application system is deployed with IFML processing unit 2 of the present invention, and host application service 4 need be called IFML processing unit 2 of the present invention and carried out the processing of communication bag.
Host application service 4 need call host service or technological member 5 is realized concrete function, and IFML message of the present invention is also adopted in communication between the two, and main frame member 5 also need call IFML processing unit 2 of the present invention and carry out the processing of communication bag.
Adopt the traditional COPYBOOK communication district of mainframe program at component inside.
As shown in Figure 2: IFML processing unit provided by the invention comprises IFML group bag module 20 and IFML parse module 30.
Shown in Fig. 3-1, IFML group bag module 20 comprises: packet header generation module 21, header data inspection module 22, structure describe district's generation module 23, structure in the parameter region data field calculations of offset module 24, parametric description district generation module 25, parameter at structure bias internal computing module 26, increase data field module 27 and group bag return information processing module 28.
The function of packet header generation module 21 is to read the header data that IFML group bag module 20 obtains from called side, generates IFML packet header 100, and joins in the IFML bag of group bag module 20 outputs.Before generation, to call header data inspection module 22, the header data that IFML group bag called side provides is checked.
The function of header data inspection module 22 is that the header data that IFML group bag module 20 obtains is checked that inspection comprises 3 aspects: whether (1), inspection structure several 101 transfinite, as: 300; (2), the inspection number of parameters 102 whether transfinite, as: 1500; (3) whether inspection data field length 103 transfinites, as: 32000 bytes.
The function that structure is described district's generation module 23 is that circulation is read each structure that IFML group bag module 20 obtains and described input data: structure sign 201, record are several 202, structure intrinsic parameter number 204, structure data length 206, and call structure in the parameter region data field calculations of offset module 24 obtain this structure parameter region bias internal amount 203, this structure in the data field bias internal amount 205.Accomplish structure and describe the generation in district 200, and join in the IFML bag of group bag module 20 outputs.
The function of structure calculations of offset module 24 in the parameter region data field be according to before number of parameters 204 sums of structure calculate this structure in parameter region bias internal amount 203, according to before structure data length 206 sums calculate this structure in the data field bias internal amount 205.
The function of parametric description district generation module 25 is that each parametric description input data that IFML group bag module 20 obtains are read in circulation: parameter identification 301, decoding type 302, supplemental characteristic length 304; And call parameters obtains this parameter in structure bias internal amount 303 at structure bias internal computing module 26.Accomplish the generation in parametric description district 300, and join in the IFML bag of group bag module 20 outputs.
Parameter the function of structure bias internal computing module 26 be according to structure in before parameter length 304 sums of parameter, calculate this parameter in structure bias internal amount 303.
The function that increases data field module 27 is in wrapping the IFML that data field 400 joins the output of the program of unpacking.
The function of group bag return information processing module 28 is return code, return informations that the group bag is set.
Shown in Fig. 3-2, IFML parse module 30 comprises: unpack input data formatting module 31, structure data extraction module 32, supplemental characteristic extraction module 33, unpack communication district, back generation module 34 and unpack return information processing module 35.
The function that unpacks input data formatting module 31 has 2: (1), be that IFML header data 100 is checked; See structure number, number of parameters, data field length whether transfinite (2) be the input data carry out straightforward formatizations with the aray variable that defines in advance; The input of IFML message process device parse module comprises: the parametric description that the structure that IFML message, called side need be extracted is described, called side need be extracted; Be given to these three types of data indirect assignments in the good aray variable of format; This data extraction method is the assign operation of internal memory level, can obtain peak efficiency.
The function of structure data extraction module 32 is to describe search in the district according to the structure name of input at structure, if match, then the recall parameter data extraction module 33, and circulation primary like this is up to the extraction of accomplishing all structure data.If the structure of certain input does not match when unpacking, the not structure data of the side of unpacking needs are described in the IFML bag, then call the return information processing module and carry out fault processing and withdraw from.
The function of supplemental characteristic extraction module 33 is to search in the parametric description district according to the parameter name of input, and the fruit coupling is then directly extracted data from the data field through side-play amount, data length.If do not match, not this parameter is described in the IFML communication district, compose default value.So circulation primary is accomplished all Parameter Extraction under certain structure.
The function that unpacks communication district, back generation module 34 is after supplemental characteristic extraction module 33 has obtained the concrete numerical value of parameter, and structure, the parameter information according to the input of IFML parse module called side generates the communication district after unpacking again.
The function that unpacks return information processing module 35 is that return code, the return information that unpacks is set.
Below map 4, Fig. 5-1, Fig. 5-2 and Fig. 5-3 pair financial message language (IFML) are described in detail, and main group of bag of 6,7 pairs of IFML processing unit of map, unpack flow process and be described in detail.
Financial message language is self-described, and packet header 100, structure description district 200, concrete parameter region 300 and the data field 400 of mainly containing as shown in Figure 4 formed.Data field 400 is the pure business datums of closely discharging, the detailed description that packet header 100, structure description district 200, concrete parameter region 300 are realized the data field.
Double-layer structure has been adopted in self-described; Be divided into structure and concrete parameter; Just all be classified as two-dimensional array structure the inside to concrete parameter; Message just can be expressed array data like this, as: many Query Results of database table, and single General Parameters belongs to below certain bar communication district record segment---regard communication district record segment as have only 1 element two-dimensional array.
In the main frame core application the inside of financial industry, the data structure of two-dimensional array is enough used, and does not need too complicated more multi-layer data structure.
IFML the inside self-described in that IFML processing unit of the present invention relates to adopts following scheme to realize: (for conserve space, logarithm value all adopts the binary numeral storage except that the data field, is X ' FFFF ' to the maximum like 2 bytes)
1) the pure communication district data of data field 400 (DATA) reality of depositing have no at interval closely discharging between data and the data.
Self-described is carried out in utilization structure volume description district 200,300 pairs of data fields, concrete parametric description district.
2) packet header 100: the size of structure description district 200, concrete parametric description district 300, data field 400 in the IFML bag has been described in packet header.Fig. 5-1 has represented head-coating structure:
A) structure number (2 byte) 101: represented the number of structure in the data, just structure is described has the structure of what Fig. 5-2 expression to describe in the district 200, also just determined the size in structure volume description district 200.Data Source: provide by called side in the time of the packing of communication district.
B) record number (2 byte) 102: represented the number of concrete parameter, the parametric description of what Fig. 5-3 expression is arranged in the just concrete parametric description district 300, also just determined the size in concrete parametric description district 300.Data Source: provide by called side in the time of the packing of communication district.
C) data field data length (2 byte) 103: the size of having represented data field 400.Data Source: provide by called side in the time of the packing of communication district.
3) structure is described district 1: structure (two-dimensional array) is carried out in the data field describe, be described as several two-dimensional arrays to the data field, as: public communication block, trivial of public communication of application, array data or the like.Fig. 5-2 has represented that certain structure description comprises:
A) structure sign (8 byte) 201: the title of this structure.Data Source: provide by called side in the time of the packing of communication district.In the time of the group bag, structure is described the data in district and is arranged by structure sign ascending order.
B) record number (2 byte) 202: represent how many bar records are this structure correspondence have in the data field, the record number equals the unirecord structure of 1 representative, as: public communication block; The structures that the record number writes down greater than 1 expression more, as: many data base table recordings that inquire.Data Source: provide by called side in the time of the packing of communication district.
C) parameter region bias internal amount (2 byte) 203: represent the original position (which parameter begins) of the affiliated parameter of this structure in concrete parametric description district 300.Data Source: structure number of parameters sum calculates before the communication district wrapper basis.
D) number of parameters (2 byte) 204: represent the number of parameters of this structure in concrete parametric description district 300.Data Source: provide by called side in the time of the packing of communication district.
E) data field bias internal amount (2 byte) 205: represent the original position of this structure in the data field.Data Source: communication district wrapper calculates according to structure data length sum before.
F) structure data length (2 byte) 206: represent the data length (, then being the length of a record) of this structure in the data field as being array.Data Source: provide by called side in the time of the packing of communication district.
4) parametric description district 2: describe the concrete parameter below the structure, like position in structure of: parameter, parameter type, length or the like.Fig. 5-3 has represented that certain concrete parametric description comprises:
A) parameter name (12 byte) 301: the concrete name of certain parameter.Data Source: provide by called side in the time of the packing of communication district.Arrange by structure name, parameter name ascending order in the parametric description district in the time of the group bag.
B) decoding type (2 byte) 302: represent how this parameter is deciphered on gateway.Data Source: provide by called side in the time of the packing of communication district.
Decoding categorical data dictionary:
The decoding type character Terminal decoding type HEX numerical value Main frame decoding type HEX numerical value Describe
‘1’ X‘31’ X‘0031’ The HEX type comprises Chinese character, does not do transcoding
‘2’ X‘32’ X‘0032’ The char type, (ASCII), transcoding
‘3’ X‘33’ X‘0033’ The PACK type, the decimal symbol position
‘4’ X‘34’ X‘0034’ The NUM type, signed, transcoding
‘5’ X‘35’ X‘0035’ Short (the network bytes preface is not done transcoding)
‘6’ X‘36’ X‘0036’ Long (the network bytes preface is not done transcoding)
‘7’ X‘37’ X‘0037’ The memory field duplicates, not transcoding
‘8’ X‘38’ X‘0038’ PACK is applied, as: customer ID: 4B ground area code+10B sequence number
‘9’ X‘39’ X‘0039’ The PACK inverted value of decoding
‘a’ X‘61’ X‘0061’ The PACK decoding takes absolute value
‘b’ X‘62’ X‘0062’ The PACK type is with 3
‘c’ X‘63’ X‘0063’ Do not use
‘d’ X‘64’ X‘0064’ No symbol 0-F, PACK type, password
‘e’ X‘65’ X‘0065’ HEX EBCDIC type comprises Chinese character, does not do transcoding.Fill up with X ' 40 '
' z ' X ' 7A ' X ' 007A ' All use X ' 40 ' to fill
C) structure bias internal amount (2 byte) 303: represent the original position of this parameter in this structure.Data Source: communication district wrapper calculates according to supplemental characteristic length sum before.
D) supplemental characteristic length (2 byte) 304: the length of representing this parameter.Data Source: provide by called side in the time of the packing of communication district.
[instance] XML data and IFML data
Certain communication district is made up of communication block COMMSTAT and COMMCHTR, and its XML is expressed as:
<commarea>
<workarea?id=″COMMSTAT″counter=″1″>
<field?id=″TRANSOK″type=″4″length=″1″>
<value>0</value>
</field>
<field?id=″ERR_NO″type=″4″length=″4″>
<value>0000</value>
</field>
<field?id=″TSF_STAT″type=″4″length=″1″>
<value>9</value>
</field>
</workarea>
<workarea?id=″COMMCHTR″counter=″1″>
<field?id=″TRXSQNB″type=″3″length=″3″>
<value>74</value>
</field>
<field?id=″TRXCODE″type=″3″length=″3″>
<value>8883</value>
</field>
<field?id=″ZONENO″type=″3″length=″3″>
<value>00200</value>
</field>
<field?id=″BRNO″type=″3″length=″3″>
<value>00260</value>
</field>
<field?id=″TELLERNO″type=″3″length=″3″>
<value>10140</value>
</field>
<field?id=″SERVFACE″type=″3″length=″2″>
<value>001</value>
</field>
<field?id=″CURRTYPE″type=″3″length=″2″>
<value>001</value>
</field>
<field?id=″DRACCNO″type=″4″length=″17″>
<value>02000260090000001</value>
</field>
<field?id=″AMOUNT″type=″3″length=″9″>
<value>10000</value>
</field>
<field?id=″REVTRANF″type=″3″length=″1″>
<value>0</value>
</field>
<field?id=″WORKDATE″type=″2″length=″10″>
<value>2008-02-04</value>
</field>
</workarea>
</commarea>
The communication district that IFML representes is: (left side is the main frame EBCDIC, is character in the vertical line of the right)
0002000?E003EC3?D6D4D4E2 E3C1E300|.......COMMSTAT.|
01000100?0300010?006C3D6D4?D4C3C8E3|.........COMMCHT|
D9000100?04000B0?0070038E3?D9C1D5E2|R..........TRANS|
D6D24040?4040400?034000100?01C5D9D9|OK...........ERR|
6DD5D640?4040404?040003400?020004E3|_NO............T|
E2C66DE2?E3C1E34?040404000?34000600|SF_STAT.........|
01E3D9E7?E2D8D5C?240404040?40003300|.TRXSQNB........|
010003E3?D9E7C3D?6C4C54040?40404000|...TRXCODE......|
33000400?03E9D6D?5C5D5D640?40404040|.....ZONENO.....|
40003300?070003C?2D9D5D640?40404040|.......BRNO.....|
40404000?33000A0?003E3C5D3?D3C5D9D5|.........TELLERN|
D6404040?4000330?00D0003E2?C5D9E5C6|O..........SERVF|
C1C3C540?4040400?033001000?02C3E4D9|ACE..........CUR|
D9E3E8D7?C540404?040003300?120002C4|RTYPE..........D|
D9C1C3C3?D5D6404?040404000?34001400|RACCNO..........|
11C1D4D6?E4D5E34?040404040?40003300|.AMOUNT.........|
250009D9?C5E5E3D?9C1D5C640?40404000|...REVTRANF.....|
33002E00?01E6D6D?9D2C4C1E3?C5404040|.....WORKDATE...|
40003200?2F000AF?0F0F0F0F0?F900074C|.......000009..<|
08883C00?200C002?60C10140C?001C001C|.h..............|
F0F2F0F0?F0F2F6F?0F0F9F0F0?F0F0F0F0|0200026009000000|
F1000000?0000001?0000C0CF2?F0F0F860|1..........2008-|
F0F260F0?F4 |02-04
1) 6 byte 000200 0E003E that begin most are packet header, with reference to the head-coating structure of Fig. 5-1:
A) X ' 0002 ' represent in the communication district 2 structures are arranged, each structure description is 18 bytes among Fig. 5-2, is 18 * 2=36 byte so structure is described the district.
B) X ' 000E ' expression parametric description Qu always has 14 parameters; Each parametric description is 18 bytes among Fig. 5-3, and all parametric description districts are 18 * 14=252 bytes
C) X ' 003E ' representes that it is 62 bytes that data field length is arranged.
2) being right after is the description of the 1st structure COMMSTAT:
C3?D6D4D4E2?E3C1E300|.......COMMSTAT.|
010001000300010006 |.........
With reference to figure 5-2, resolve as follows:
D) structure sign (8 byte) 201:X ' C3D6D4D4E2E3C1E3 ', the COMMSTAT of EBCDIC;
E) record number (2 byte) 202:X ' 0001 ', this structure is 1 record in the data field.
F) parameter region bias internal amount (2 byte) 203:X ' 0001 ' representes the original position of this structure in concrete parametric description district 300: the 1st parameter.
G) number of parameters (2 byte) 204:X ' 0003 ' representes that this structure has 3 parameters in concrete parametric description district 300.
H) data field bias internal amount (2 byte) 205:X ' 0001 ' representes that the original position of this structure in the data field is the 1st byte.
I) structure data length (2 byte) 206:X ' 0006 ', the expression structure is 6 byte lengths in the data field.
3) according to information in the packet header, the parametric description district in packet header (6 byte), structure district's (36 byte) is described at the back, the data of description of the 1st parameter is:
E3D9C1D5E2|...........TRANS|
D6D24040404040003400010001|OK...........
With reference to figure 5-3, resolve as follows:
A) parameter name (12B) 301:X ' E3D9C1D5E2 D6D24040 404040 ', and the 1st the parameter name of expression structure COMMSTAT is TRANSOK, and full 5 space X ' 40 ' are mended to 12 bytes in the back.
B) decoding type (2B) 302:X ' 0034 ', represent that this parameter carries out the transcoding of ASCII to EBCDIC by the NUM type on gateway.
C) structure bias internal amount (2B) 303:X ' 0001 ' represent that the original position of this parameter in this structure is the 1st byte.
D) supplemental characteristic length (2B) 304:X ' 0001 ', represent that the length of this parameter in the data field is 1.
4) according to information in the packet header, the data field is 62 bytes that packet header (6 byte), structure are described district's (36 byte), back, parametric description district (252 byte):
F0?F0F0F0F0?F900074C|.......000009..<|
08883C00?200C0026?0C10140C?001C001C|.h..............|
F0F2F0F0?F0F2F6F0?F0F9F0F0?F0F0F0F0|0200026009000000|
F1000000?00000010?000C0CF2?F0F0F860|1..........2008-|
F0F260F0F4 |02-04
5) according to the 2nd) in parsing COMMSTAT be 6 bytes that the 1st byte begins in the data field: X ' F0 F0F0F0 '.
6) according to the 3rd) in the 1st parameter TRANSOK of parsing be that the 1st byte begins in the structure data, length is 1 byte, i.e. EBCDIC X ' F0 ', numerical value is 0
Like this; Adopt above-mentioned design just can realize the self-described of financial message language; Thereby make communication two party that data description and data content are transmitted simultaneously, exchanges data both sides do not need in advance the data form to be arranged, as long as adopt unified IFML processing unit.
Based on Fig. 2 and the data transmission and processing device that is applied to financial message language shown in Figure 3, this data transmission processing method that is applied to financial message language that the present invention also provides, this method comprises:
This financial message language group bag module is to the data that receive processings that package, and generates the financial message language packet and exports; And
This financial message language parse module unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet.
Below in conjunction with Fig. 6 the flow process that unpacks of IFML processing unit of the present invention is described:
Step 500: the data to unpacking input format; Major function is that IFML header data 100 is checked; Whether transfinite, and directly data extract is carried out in the input of IFML message process device parse module with the mode of memory variable assignment if seeing, input comprises: the parametric description that the structure that IFML message, called side need be extracted is described, called side need be extracted; Be stored in the input serial data in the good memory variable of format, this data extract can obtain peak efficiency.
Step 501: the searching structure body, owing to be the loose coupling design, possibly comprise than party in request more structural, parameter in the IFML data that data provider sends, in this step, describe the district at structure and scan by the structure name.
Step 502: the structure scanning result is judged, the scanning result of step 501 is judged.If coupling then to step 503, carry out concrete parameter scanning in this structure; If do not match, the structure data that do not have needs in the communication district are described, forward 508 to and carry out fault processing, and withdraw from, explain that the communication district does not match.
Step 503: search parameter, scan in the parametric description district by parameter name in this step.
Step 504: concrete parameter scanning result judges, the scanning result of step 503 is judged.If the coupling would directly extract data through side-play amount, data length from the data field.If do not match, not this parameter is described in the communication district, compose default value to step 505.
Step 505: compose default value.Realize that loose coupling requires in the development specifications to the non-assignment that must fail.
Step 506: judged whether to accomplish searching of all parameters in certain structure.
Step 507: judged whether to accomplish the processing of all structures.
Below in conjunction with Fig. 7 the pressure bag flow process of IFML processing unit of the present invention is described:
Step 600: the header data to input is checked.
Step 601: create header packet information), number of parameters, data field length like the structure number.
Step 602: the side-play amount (starting position) of parameter in the parametric description district under the computation structure body; The side-play amount (beginning byte number) of computation structure body in the data field.
Step 603: create the data of description of structure, as: structure sign, record number, node area 2 bias internal amounts (step 602 calculates), number of parameters, data field bias internal amount (step 602 calculates), structure data length.
Step 604: repeating step 602,603, up to the description of accomplishing all structures, promptly accomplish the establishment that structure is described the district.
Step 605: the side-play amount of calculating parameter in structure.
Step 606: create the data of description of parameter, as: parameter, decoding type, structure bias internal amount (step 605 calculates), supplemental characteristic length.
Step 607: circulation step 605,606 is up to the processing of accomplishing all parameters.
Step 608: fill in the clear data district at last.
This data transmission processing system, the device and method that is applied to financial message language provided by the invention; Can efficiently handle self-described communication plot structure; Especially be fit to realize in the main frame core on-line Application system that service, member high efficiency call, its advantage concrete manifestation in the following areas:
1, IFML processing unit high-performance designs
The IFML processing unit that the present invention disposes at host services, member inlet; In the host transaction flow process, called repeatedly; The IFML processing unit just must satisfy the harsh performance requirement of host transaction program, just must guarantee the high efficiency of resolving, low cpu resource consumption.
High performance message is handled through following design and is realized:
1) internal memory assignment level is else described district's parsing
Description to each structure during structure is described and distinguished all is fixed data structure (Fig. 5-2); Same concrete parametric description district also is fixed structure (Fig. 5-3) to the description of each parameter; Like this through structure number, number of parameters inside the packet header; Just can bar structure volume description district, concrete parametric description district indirect assignment gives format good aray variable, realizes that memory variable assignment level else describes the district and resolve.
2) circulation is resolved, need not to the single pass of data field
After structure is described district, the parsing of parametric description district, just can carry out 1 scanning to the data field of whole solid matter, parse all data.Avoided the XML valid data to disperse, resolve big, the inefficient shortcoming of cpu resource consumption.
3) last property generation is handled output, is avoided the scan round to data
Because the design of loose coupling; All data that called side need not be served or member returns; When calling IFML and unpacking program; Called side all sorts by ascending order to structure, the variable name that needs extract, and IFML group bag program has also been carried out ascending sort by structure, parameter name to structure description district, parametric description district in the group bag.Just accomplish the output of end product like this through single pass, avoided whole communication district is ceaselessly carried out variable name coupling, circulation.
2, the message length of IFML processing unit generation is controlled
Experiment through general measuring and calculating and actual message; Structure is described district and parametric description district and is added on the length almost with the data field mutually, that is to say and uses the IFML communication district of IFML processing unit generation only to increase by 1 times length than traditional mainframe program communication district COPYBOOK.And the main frame on-line program communication district of financial industry is all below several K, and increasing that 1 times of communication section length compares with the benefit that obtains loose coupling is acceptable, also in the 32K of host communication restriction.
Above-described specific embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely specific embodiment of the present invention; Be not limited to the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (26)

1. data transmission processing system that is applied to financial message language; This system comprises channel Access Layer (1), gateway (3), mutual key-course (4) and the Business treatment (5) that connects successively; Wherein, Channel Access Layer (1) comprises that multiple support channels access terminal and a plurality of channel that this channel accesses terminal server that accesses terminal that is disposed at; Mutual key-course (4) comprises a plurality of application servers, and Business treatment (5) comprises a plurality of main frame members, and this channel server that accesses terminal is transmitted to the middle corresponding application server of mutual key-course (4) with this channel data that receive that access terminal through gateway (3); Call main frame member corresponding in the Business treatment (5) by this application server these data handled, it is characterized in that:
, this channel all disposes financial message language processing unit (2) on accessing terminal server, gateway (3), application server and main frame member; This financial message language processing unit (2) is handled and is transmitted the communication data packets that channel accesses terminal between server and gateway (3), gateway (3) and application server, application server and the main frame member, realizes the transfer of data of financial message language;
Wherein, this financial message language is self-described, comprises packet header (100), self-described district and data field (400), and wherein, data field (400) are the pure business datums of closely discharging, and packet header (100) and self-described district realize the detailed description to the data field; This self-described district adopts double-layer structure; Comprise structure description district (200) and concrete parameter region (300); Concrete parameter is belonged in the two-dimensional array structure; Realization is expressed array data with message, and regards communication district record segment as have only 1 element two-dimensional array, and then single parameter is belonged under certain bar communication district record segment.
2. the data transmission processing system that is applied to financial message language according to claim 1 is characterized in that, financial message language self-described adopts following scheme to realize in this system:
1) the pure communication district data of data field (400) reality of depositing have no between data and the data at interval, are tight dischargings; And utilization structure volume description district (200), concrete parametric description district (300) carry out self-described to the data field;
2) packet header (100): the size of structure description district (200) in the financial message language packet, concrete parametric description district (300), data field (400) is described in packet header;
A) structure number (101): 2 bytes, the number of structure in the expression data, just structure is described has describe for what structures in the district (200), determined the size in structure volume description district (200); Data Source: provide by called side during the packing of communication district;
B) record number (102): 2 bytes, represent the number of concrete parameter, in the just concrete parametric description district (300) what parametric descriptions are arranged, determined the size in concrete parametric description district (300); Data Source: provide by called side in the time of the packing of communication district;
C) data field data length (103): 2 bytes, the size of expression data field (400); Data Source: provide by called side during the packing of communication district;
3) structure is described district (1): structrual description is carried out in the data field, the data field is described as several two-dimensional arrays, wherein certain structure is described and is comprised:
A) structure sign (201): 8 bytes, represent the title of this structure; Data Source: provided by called side during the packing of communication district, the data in structure description district are arranged by structure sign ascending order during the group bag;
B) record number (202): 2 bytes, represent how many bar records are this structure correspondence have in the data field, the record number equals the unirecord structure of 1 representative, and the record number is greater than the structure of the many records of 1 expression; Data Source: provide by called side during the packing of communication district;
C) parameter region bias internal amount (203): 2 bytes, represent the original position of the affiliated parameter of this structure in concrete parametric description district (300); Data Source: structure number of parameters sum calculates before the communication district wrapper basis;
D) number of parameters (204): 2 bytes, represent the number of parameters of this structure in concrete parametric description district (300); Data Source: provide by called side during the packing of communication district;
E) data field bias internal amount (205): 2 bytes, represent the original position of this structure in the data field; Data Source: communication district wrapper calculates according to structure data length sum before;
F) structure data length (206): 2 bytes, represent the data length of this structure in the data field; Data Source: provide by called side during the packing of communication district;
4) parametric description district (2): describe the concrete parameter below the structure, wherein certain concrete parametric description comprises:
A) parameter identification (301): 12 bytes, the specifically name of certain parameter; Data Source: provided by called side in the time of the packing of communication district, arrange by structure name, parameter identification ascending order in the parametric description district during group bag;
B) decoding type (302): 2 bytes, represent how this parameter is deciphered on gateway; Data Source: provide by called side during the packing of communication district;
C) structure bias internal amount (303): 2 bytes, represent the original position of this parameter in this structure; Data Source: communication district wrapper calculates according to supplemental characteristic length sum before;
D) supplemental characteristic length (304): 2 bytes, represent the length of this parameter; Data Source: provide by called side during the packing of communication district.
3. the data transmission processing system that is applied to financial message language according to claim 1; It is characterized in that; This financial message language processing unit (2) comprises parallel financial message language group bag module (20) and the financial message language parse module (30) that connects; Wherein this financial message language group bag module (20) is to the data that receive processings that package, and generates the financial message language packet and exports; This financial message language parse module (30) unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet.
4. the data transmission processing system that is applied to financial message language according to claim 3; It is characterized in that; This financial message language group bag module (20) comprises that successively the packet header generation module (21), the structure that connect describe district's generation module (23), parametric description district generation module (25), increase data field module (27) and group bag return information processing module (28), and the header data that is connected with packet header generation module (21) inspection module (22), with the structure description distinguish structure that generation module (23) is connected in the parameter region data field calculations of offset module (24), the parameter that is connected with parametric description district generation module (25) at structure bias internal computing module (26).
5. the data transmission processing system that is applied to financial message language according to claim 4; It is characterized in that; This packet header generation module (21) reads financial message language group bag module (20) and receives the header data in the data; Generate financial message language packet header (100), and join in the financial message language packet of financial message language group bag module (20) output.
6. the data transmission processing system that is applied to financial message language according to claim 5; It is characterized in that; Financial message language packet header (100) is preceding generating; This packet header generation module (21) calls header data inspection module (22) header data that receives in the data is checked, header data inspection module (22) comprises following 3 aspects to header data inspection:
1), whether inspection structure number transfinites;
2), whether the inspection number of parameters transfinites; And
3), whether the inspection data field length transfinites.
7. the data transmission processing system that is applied to financial message language according to claim 4; It is characterized in that; This structure is described district's generation module (23) circulation and is read the structure data of description in financial message language group bag module (20) the reception data; Obtain the number of parameters (204) and the structure data length (206) of structure sign (201), record number (202), structure; And call structure in the parameter region data field calculations of offset module (24) obtain this structure parameter region bias internal amount (203) and this structure in the data field bias internal amount (205); Generating structure volume description district (200), and the structure that generates described in the financial message language packet that district (200) joins financial message language group bag module (20) output.
8. the data transmission processing system that is applied to financial message language according to claim 7; It is characterized in that; Calculations of offset module (24) calculates this structure in parameter region bias internal amount (203) according to number of parameters (204) sum of this structure to this structure in the parameter region data field, according to this structure data length (206) sum calculate this structure in the data field bias internal amount (205).
9. the data transmission processing system that is applied to financial message language according to claim 4; It is characterized in that; This parametric description district generation module (25) circulation is read financial message language group bag module (20) and is received the parametric description input data in the data; Obtain parameter identification (301), decoding type (302) and supplemental characteristic length (304), and call parameters obtains this parameter in structure bias internal amount (303) at structure bias internal computing module (26); Generate parametric description district (300), and the parametric description district (300) that generates is joined in the financial message language packet of financial message language group bag module (20) output.
10. the data transmission processing system that is applied to financial message language according to claim 9; It is characterized in that; This parameter structure bias internal computing module (26) according to structure in before supplemental characteristic length (304) sum of parameter, calculate this parameter in structure bias internal amount (303).
11. the data transmission processing system that is applied to financial message language according to claim 4; It is characterized in that this increase data field module (27) joins data field (400) in the financial message language packet of financial message language group bag module (20) output.
12. the data transmission processing system that is applied to financial message language according to claim 4 is characterized in that, this group bag return information processing module (28) is provided with the return code and the return information of group bag.
13. the data transmission processing system that is applied to financial message language according to claim 3; It is characterized in that this financial message language parse module (30) comprises unpacking input data formatting module (31), structure data extraction module (32), supplemental characteristic extraction module (33), unpack back communication district's generation module (34) and unpacking return information processing module (35) of connecting successively.
14. the data transmission processing system that is applied to financial message language according to claim 13; It is characterized in that; This unpacks input data formatting module (31) header data of financial message language packet is checked, sees whether structure number, number of parameters, data field length transfinite; And with the aray variable that defines in advance to the input data carry out straightforward formatization.
15. the data transmission processing system that is applied to financial message language according to claim 14; It is characterized in that; These input data comprise: the parametric description that structure that financial message language message, called side need be extracted is described and called side need be extracted, this unpacks input data formatting module (31), and with the aray variable that defines in advance the input data to be carried out straightforward formatization be that these three types of data indirect assignments are given in the good aray variable of format.
16. the data transmission processing system that is applied to financial message language according to claim 13; It is characterized in that; This structure data extraction module (32) is described search in the district according to the structure name of input at structure, if match, and recall parameter data extraction module (33) then; Circulation primary like this is up to the extraction of accomplishing all structure data; If do not match, the structure data that need of the side of unpacking not in the financial message language packet are then called and are unpacked return information processing module (35) and carry out fault processing and withdraw from.
17. the data transmission processing system that is applied to financial message language according to claim 13; It is characterized in that; This supplemental characteristic extraction module (33) is searched in the parametric description district according to the parameter identification of input; If match, then directly extract data from the data field through side-play amount, data length; If do not match, then this parameter not in the financial message language packet is composed default value; So circulation primary is accomplished all Parameter Extraction under certain structure.
18. the data transmission processing system that is applied to financial message language according to claim 13; It is characterized in that; After communication district's generation module (34) had obtained the concrete numerical value of parameter at supplemental characteristic extraction module (33) after this unpacked, structure, the parameter information according to the called side input generated the communication district after unpacking again.
19. the data transmission processing system that is applied to financial message language according to claim 13 is characterized in that, this unpacks return code and return information that return information processing module (35) setting unpacks.
20. the data transmission processing system that is applied to financial message language according to claim 1 is characterized in that,
Access terminal at least a in terminal channel, self-aided terminal, ATM terminal, POS terminal, Net silver terminal and the telephone bank terminal of this channel;
Main frame member in this Business treatment (5) adopts the traditional COPYBOOK communication district of mainframe program.
21. a financial message language processing unit is characterized in that, this processing unit comprises parallel financial message language group bag module (20) and the financial message language parse module (30) that connects, wherein:
This financial message language group bag module (20) is to the data that receive processings that package, and generates the financial message language packet and exports;
This financial message language parse module (30) unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet;
Wherein, This financial message language group bag module (20) comprises that successively the packet header generation module (21), the structure that connect describe district's generation module (23), parametric description district generation module (25), increase data field module (27) and group bag return information processing module (28), and the header data that is connected with packet header generation module (21) inspection module (22), with the structure description distinguish structure that generation module (23) is connected in the parameter region data field calculations of offset module (24), the parameter that is connected with parametric description district generation module (25) at structure bias internal computing module (26);
This financial message language parse module (30) comprises unpacking input data formatting module (31), structure data extraction module (32), supplemental characteristic extraction module (33), unpack back communication district's generation module (34) and unpacking return information processing module (35) of connecting successively.
22. financial message language processing unit according to claim 21 is characterized in that,
This packet header generation module (21) reads financial message language group bag module (20) and receives the header data in the data, generates financial message language packet header (100), and joins in the financial message language packet of financial message language group bag module (20) output;
Financial message language packet header (100) is preceding generating; This packet header generation module (21) calls header data inspection module (22) header data that receives in the data is checked, header data inspection module (22) comprises following 3 aspects to header data inspection: whether inspection structure number transfinites; Whether the inspection number of parameters transfinites; And whether the inspection data field length transfinites;
This structure is described district's generation module (23) circulation and is read the structure data of description in financial message language group bag module (20) the reception data; Obtain the number of parameters (204) and the structure data length (206) of structure sign (201), record number (202), structure; And call structure in the parameter region data field calculations of offset module (24) obtain this structure parameter region bias internal amount (203) and this structure in the data field bias internal amount (205); Generating structure volume description district (200), and the structure that generates described in the financial message language packet that district (200) joins financial message language group bag module (20) output;
Calculations of offset module (24) calculates this structure in parameter region bias internal amount (203) according to number of parameters (204) sum of this structure to this structure in the parameter region data field, according to this structure data length (206) sum calculate this structure in the data field bias internal amount (205);
This parametric description district generation module (25) circulation is read financial message language group bag module (20) and is received the parametric description input data in the data; Obtain parameter identification (301), decoding type (302) and supplemental characteristic length (304); And call parameters is at structure bias internal computing module (26); Obtain this parameter in structure bias internal amount (303); Generate parametric description district (300), and the parametric description district (300) that generates is joined in the financial message language packet of financial message language group bag module (20) output;
This parameter structure bias internal computing module (26) according to structure in before supplemental characteristic length (304) sum of parameter, calculate this parameter in structure bias internal amount (303);
This increase data field module (27) joins data field (400) in the financial message language packet of financial message language group bag module (20) output;
This group bag return information processing module (28) is provided with the return code and the return information of group bag.
23. financial message language processing unit according to claim 21 is characterized in that,
This unpacks input data formatting module (31) header data of financial message language packet is checked, sees whether structure number, number of parameters, data field length transfinite; And with the aray variable that defines in advance to the input data carry out straightforward formatization;
These input data comprise: the parametric description that structure that financial message language message, called side need be extracted is described and called side need be extracted, and this unpacks input data formatting module (31), and with the aray variable that defines in advance the input data to be carried out straightforward formatization be that these three types of data indirect assignments are given in the good aray variable of format;
This structure data extraction module (32) is described search in the district according to the structure name of input at structure, if match, and recall parameter data extraction module (33) then, circulation primary like this is up to the extraction of accomplishing all structure data; If do not match, the structure data that need of the side of unpacking not in the financial message language packet are then called and are unpacked return information processing module (35) and carry out fault processing and withdraw from;
This supplemental characteristic extraction module (33) is searched in the parametric description district according to the parameter identification of input, if match, then directly extracts data from the data field through side-play amount, data length; If do not match, then this parameter not in the financial message language packet is composed default value; So circulation primary is accomplished all Parameter Extraction under certain structure;
After communication district's generation module (34) had obtained the concrete numerical value of parameter at supplemental characteristic extraction module (33) after this unpacked, structure, the parameter information according to the called side input generated the communication district after unpacking again;
This unpacks return code and return information that return information processing module (35) setting unpacks.
24. a data transmission processing method that is applied to financial message language is applied to include the financial message language processing unit of financial message language group bag module and financial message language parse module, it is characterized in that this method comprises:
This financial message language group bag module is to the data that receive processings that package, and generates the financial message language packet and exports; And
This financial message language parse module unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet;
Wherein, this financial message language group bag module is to the data that receive processings that package, and generates the financial message language packet and exports, and comprising:
Step 600: the header data to input is checked;
Step 601: create header packet information, comprise structure number, number of parameters, data field length at least;
Step 602: side-play amount and structure the side-play amount in data field of parameter in the parametric description district under the computation structure body;
Step 603: create the data of description of structure, comprise side-play amount, structure data length in side-play amount in structure sign, record number, the parametric description district, number of parameters, the data field at least;
Step 604: repeating step 602,603, up to the description of accomplishing all structures, promptly accomplish the establishment that structure is described the district;
Step 605: the side-play amount of calculating parameter in structure;
Step 606: create the data of description of parameter, comprise side-play amount, supplemental characteristic length in parameter, decoding type, the structure at least;
Step 607: circulation step 605,606 is up to the processing of accomplishing all parameters;
Step 608: fill in the clear data district at last;
This financial message language parse module unpacks processing to the financial message language packet that receives, and extracts data and output in the financial message language packet, comprising:
Step 500: the data to unpacking input format;
Step 501: describe the district by the structure name at structure and scan the searching structure body;
Step 502: the structure scanning result is judged,, then carried out if match
Step 503 is carried out concrete parameter scanning in this structure; If do not match, then there are not the structure data of needs in the communication district, forward step 508 to and carry out fault processing, and withdraw from;
Step 503: scan search parameter by parameter identification in the parametric description district;
Step 504: the result judges to parameter scanning, if match, then directly extracts data from the data field through side-play amount, data length; If do not match, then this parameter not in the communication district forwards step 505 to and composes default value;
Step 505: compose default value;
Step 506: judge whether to accomplish searching of all parameters in certain structure;
Step 507: judge whether to accomplish the processing of all structures.
25. the data transmission processing method that is applied to financial message language according to claim 24 is characterized in that, described in the step 500 data that unpack input is formatd to comprise:
Financial message language packet header data is checked; Whether see transfinites; And directly data extract is carried out in the input of financial message language parse module with the mode of memory variable assignment; The input serial data is stored in the good memory variable of format, and the input of this financial message language parse module comprises: the parametric description that the structure that financial message language message, called side need be extracted is described, called side need be extracted.
26. the data transmission processing method that is applied to financial message language according to claim 24 is characterized in that, composes default value described in the step 505, be realize loose coupling requirement in the development specifications to the non-assignment that must fail.
CN2010101575826A 2010-04-21 2010-04-21 Data transmission processing system, device and method applied to financial message language Active CN101848148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101575826A CN101848148B (en) 2010-04-21 2010-04-21 Data transmission processing system, device and method applied to financial message language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101575826A CN101848148B (en) 2010-04-21 2010-04-21 Data transmission processing system, device and method applied to financial message language

Publications (2)

Publication Number Publication Date
CN101848148A CN101848148A (en) 2010-09-29
CN101848148B true CN101848148B (en) 2012-11-21

Family

ID=42772612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101575826A Active CN101848148B (en) 2010-04-21 2010-04-21 Data transmission processing system, device and method applied to financial message language

Country Status (1)

Country Link
CN (1) CN101848148B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063506B (en) * 2011-01-06 2012-11-28 中国工商银行股份有限公司 Service system host computer, decoding method thereof and service system
CN103428043A (en) * 2012-05-25 2013-12-04 中国银联股份有限公司 Digital identification code generating system and method
CN104869133B (en) * 2014-02-21 2018-07-03 华为技术有限公司 A kind of method of data record, system and access server
CN106534045A (en) * 2015-09-10 2017-03-22 银联国际有限公司 Configurable financial message conversion device and conversion method thereof
CN106021199B (en) * 2016-05-13 2019-02-15 中国农业银行股份有限公司 A kind of the character string message processing method and device of service-oriented data
CN107885492B (en) * 2017-11-14 2021-03-12 中国银行股份有限公司 Method and device for dynamically generating data structure in host
CN109840645A (en) * 2017-11-27 2019-06-04 中国电力科学研究院有限公司 A kind of the whole network real-time model sharing method and system towards multi-stage scheduling
CN110191156B (en) * 2019-05-08 2021-11-09 深圳前海微众银行股份有限公司 Data processing method and device based on block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987925A (en) * 2006-12-29 2007-06-27 中国建设银行股份有限公司 Complex front platform of financial system and transfering method transaction data
CN101110783A (en) * 2007-09-03 2008-01-23 中国工商银行股份有限公司 Method for matching bank message
CN101344955A (en) * 2008-08-26 2009-01-14 中国工商银行股份有限公司 Bank message processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987925A (en) * 2006-12-29 2007-06-27 中国建设银行股份有限公司 Complex front platform of financial system and transfering method transaction data
CN101110783A (en) * 2007-09-03 2008-01-23 中国工商银行股份有限公司 Method for matching bank message
CN101344955A (en) * 2008-08-26 2009-01-14 中国工商银行股份有限公司 Bank message processing method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
电子数据交换技术在金融行业应用与实践;贾海天;《今日科苑》;20081231(第18期);第179-180页 *
贾海天.电子数据交换技术在金融行业应用与实践.《今日科苑》.2008,(第18期),第179-180页.

Also Published As

Publication number Publication date
CN101848148A (en) 2010-09-29

Similar Documents

Publication Publication Date Title
CN101848148B (en) Data transmission processing system, device and method applied to financial message language
CN101827302B (en) Processing method and unified service platform are unified in multi-service
CN109670081B (en) Method and device for processing service request
EP1676210B1 (en) Method and apparatus for handling text and binary mark up languages in a computing device
CN107229619A (en) Internet service link calls statistics, methods of exhibiting and the device of situation
CN111552838B (en) Data processing method and device, computer equipment and storage medium
CN104199812B (en) Data system and method supporting multiple languages
CN103559217A (en) Heterogeneous database oriented massive multicast data storage implementation method
CN111241182A (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN109861998B (en) Plug-in type dynamic analysis system and method based on Beidou short message protocol
CN111385292B (en) Descriptor-based protocol message and data interaction method and system
CN101247434B (en) Traffic analyzing method and system
CN106992940B (en) Message processing method, device, system and terminal
CN109241384A (en) A kind of method for visualizing and device of scientific research information
CN107025115B (en) Method for adapting to acquisition of multiple interfaces
CN115665284A (en) Message processing method and device based on distributed configuration center and computer equipment
CN109413131A (en) A kind of method and device of log parsing
US8819135B2 (en) Method of performing data mediation, and an associated computer program product, data mediation device and information system
CN107040613A (en) A kind of message transmitting method and system
CN103455476A (en) Processing method and device for network information and establishing method and device for abstract syntax tree
CN104021121A (en) Method, device and server for compressing text data
CN109561048B (en) Communication management method and device
CN101655873A (en) Single sign-on system as well as method and device for inputting and outputting data thereof
CN114186958A (en) Method, computing device and storage medium for exporting list data as spreadsheet
CN112612823B (en) Big data time sequence analysis method based on fusion of Pyspark and Pandas

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant