CN109889375A - Service message method of calibration, device and computer storage medium - Google Patents

Service message method of calibration, device and computer storage medium Download PDF

Info

Publication number
CN109889375A
CN109889375A CN201910061835.0A CN201910061835A CN109889375A CN 109889375 A CN109889375 A CN 109889375A CN 201910061835 A CN201910061835 A CN 201910061835A CN 109889375 A CN109889375 A CN 109889375A
Authority
CN
China
Prior art keywords
message
service
class
configuration information
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910061835.0A
Other languages
Chinese (zh)
Inventor
余佳敏
王华阳
阚飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201910061835.0A priority Critical patent/CN109889375A/en
Publication of CN109889375A publication Critical patent/CN109889375A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This specification embodiment provides a kind of service message method of calibration, device and computer storage medium, this method comprises: parsing multiple configuration files corresponding with message format, acquisition multiple configuration informations corresponding with message format;Fractionation rule and verification rule in each configuration information comprising corresponding message format;Obtain service message;According to the message format of the service message, configuration information corresponding with the service message is matched from the multiple configuration information;According to the fractionation rule and verification rule in configuration information corresponding with the service message, the specific field in the service message is split and verified;When the check results for confirming the specific field are to verify successfully, the business object of target service class is generated according to the specific field after verification.The efficiency that the business rule deployment of operation system updates can be improved in this specification embodiment, and the business rule deployment for reducing operation system updates the influence to regular traffic.

Description

Service message method of calibration, device and computer storage medium
Technical field
This specification is related to Message processing technical field, more particularly, to a kind of service message method of calibration, device and meter Calculation machine storage medium.
Background technique
Existing some operation systems (such as banking system etc.) frequently with fixed length message or are divided in data interaction Every message formats such as symbol messages.Depending on heading+message body form is generally used in the messages such as long message and separator message; Heading can cover general information and business control information, and message body can be then detailed business data (such as transaction details Data etc.).In general, a string of complete messages, generally comprise a heading and several message bodies.Message is needed in interaction It is split and is verified according to set business rule and (hereinafter referred to as verified), the process of verification is related to business rule.
In the prior art, the verification of above-mentioned message generally uses hard coded to realize.But because business rule may frequency Numerous variation, fractionation and the verification rule of message need to adjust therewith;Correspondingly, hard-coded data is also required to update source code Modification is realized with executable file is recompilated.Moreover, need to restart when disposing updated hard coded in operation system Operation system, in this way, the lower operation that also will affect regular traffic of the efficiency for not only disposing update.
Summary of the invention
Be designed to provide a kind of service message method of calibration, device and the computer storage of this specification embodiment are situated between Matter, to improve the efficiency that the business rule deployment of operation system updates, the business rule deployment for reducing operation system is updated to just The influence of normal business.
In order to achieve the above objectives, on the one hand, this specification embodiment provides a kind of service message method of calibration, comprising:
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Often Fractionation rule and verification rule in a configuration information comprising corresponding message format;
Obtain service message;
According to the message format of the service message, matched from the multiple configuration information corresponding with the service message Configuration information;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, to the service message In specific field split and verified;
When the check results for confirming the specific field are to verify successfully, target is generated according to the specific field after verification The business object of service class.
It include a Java object group, the Java object in each configuration information in an embodiment of this specification Group includes:
One public class object of heading;
Several heading detail class objects;
One public class object of message body;And
Several message body detail class objects.
In an embodiment of this specification, configuration information, the target also are generated comprising target in each configuration information Generate the field corresponding relationship that configuration information includes: the specified target service class generated and message domain and target service class;
Corresponding, the specific field according to after verification generates the business object of target service class, comprising:
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode Specific field after the verification is generated to the business object of target service class.
In an embodiment of this specification, the specific field according to after verification generates the business pair of target service class As, comprising:
Specific field after verification is generated into object message;
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode The object message is generated to the business object of target service class.
It is described that the object message is generated by target service using Java reflection mode in an embodiment of this specification The business object of class, comprising:
Heading object is generated according to the heading java class reflection specified in object message, and uses the object message In the first value corresponding to the domain Java assignment is carried out to the heading object;
Message body object is generated according to the message body java class reflection specified in object message, and uses the object message In second value corresponding to the domain Java assignment is carried out to the message body object;
Message body object according to the heading object after assignment and after assignment generates the business object of target service class.
On the other hand, this specification embodiment additionally provides a kind of service message calibration equipment, comprising:
Configuration file processing module, for parsing multiple configuration files corresponding with message format, acquisition and message format Corresponding multiple configuration informations;Fractionation rule and verification rule in each configuration information comprising corresponding message format;
Source messages processing module, for obtaining service message;According to the message format of the service message, from the multiple Configuration information corresponding with the service message is matched in configuration information;According in configuration information corresponding with the service message Fractionation rule and verification rule, the specific field in the service message is split and is verified;
Object message generation module, for being when verifying successfully, according to school in the check results for confirming the specific field Specific field after testing generates the business object of target service class.
It include a Java object group, the Java object in each configuration information in an embodiment of this specification Group includes:
One public class object of heading;
Several heading detail class objects;
One public class object of message body;And
Several message body detail class objects.
In an embodiment of this specification, configuration information, the target also are generated comprising target in each configuration information Generate the field corresponding relationship that configuration information includes: the specified target service class generated and message domain and target service class;
Corresponding, the specific field according to after verification generates the business object of target service class, comprising:
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode Specific field after the verification is generated to the business object of target service class.
In an embodiment of this specification, the specific field according to after verification generates the business pair of target service class As, comprising:
Specific field after verification is generated into object message;
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode The object message is generated to the business object of target service class.
It is described that the object message is generated by target service using Java reflection mode in an embodiment of this specification The business object of class, comprising:
Heading object is generated according to the heading java class reflection specified in object message, and uses the object message In the first value corresponding to the domain Java assignment is carried out to the heading object;
Message body object is generated according to the message body java class reflection specified in object message, and uses the object message In second value corresponding to the domain Java assignment is carried out to the message body object;
Message body object according to the heading object after assignment and after assignment generates the business object of target service class.
On the other hand, this specification embodiment additionally provides another service message calibration equipment, including memory, processing Device and the computer program being stored on the memory execute such as when the computer program is run by the processor Lower step:
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Often Fractionation rule and verification rule in a configuration information comprising corresponding message format;
Obtain service message;
According to the message format of the service message, matched from the multiple configuration information corresponding with the service message Configuration information;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, to the service message In specific field split and verified;
When the check results for confirming the specific field are to verify successfully, target is generated according to the specific field after verification The business object of service class.
On the other hand, this specification embodiment additionally provides a kind of computer storage medium, is stored thereon with computer journey Sequence, the computer program perform the steps of when being executed by processor
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Often Fractionation rule and verification rule in a configuration information comprising corresponding message format;
Obtain service message;
According to the message format of the service message, matched from the multiple configuration information corresponding with the service message Configuration information;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, to the service message In specific field split and verified;
When the check results for confirming the specific field are to verify successfully, target is generated according to the specific field after verification The business object of service class.
The technical solution provided by above this specification embodiment works as needs as it can be seen that in this specification above-described embodiment When updating the fractionation rule and verification rule of service message, corresponding configuration file can be modified, and dynamically load after the modification The update deployment of the fractionation rule and verification rule of service message can be realized, without restarting industry in modified configuration file Business system thus greatly reduces the influence operated normally to operation system.Moreover, because updating the fractionation rule of service message And when verification rule, it is only necessary to modify configuration file and dynamically load can be thus achieved, also avoiding the prior art need to compile again Source code is write, is then object code by compilation of source code, the complex process of operation system is also restarted when finally disposing, thus Also the efficiency that operation system deployment updates is substantially increased.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.In the accompanying drawings:
Fig. 1 is the flow chart of the service message method of calibration of some embodiments of this specification;
Fig. 2 is service message checking procedure schematic diagram in one exemplary embodiment of this specification;
Fig. 3 is the structural block diagram of the service message calibration equipment of some embodiments of this specification;
Fig. 4 is the structural block diagram of the service message calibration equipment of other embodiments of this specification.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual, Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to The range of this specification protection.
It has hereinbefore illustrated, conventionally, as the verification of message uses hard coded implementation, when in industry Operation system need to be restarted when disposing updated hard coded in business system, it can also shadow in this way, the efficiency for not only disposing update is lower Ring the operation of regular traffic.
In order to solve this technical problem, the inventor of the present application found through research that, the message format of service message is general Using limited several message formats, such as fixed length message, separator message etc..Therefore, it may be considered that for that can be every kind Message format configures corresponding configuration file, to obtain multiple configuration files corresponding with message format.Each configuration file In may include corresponding message format fractionation rule and verification rule.As a result, when the fractionation rule for needing to update service message And when verification rule, corresponding configuration file can be modified, and the modified configuration file of dynamically load after the modification, Ji Keshi The update deployment of the fractionation rule and verification rule of existing service message thus greatly reduces pair without restarting operation system The influence that operation system operates normally.Moreover, because when updating the fractionation rule and verification rule of service message, it is only necessary to modify Simultaneously dynamically load can be thus achieved configuration file, and source code need to be rewritten by also avoiding the prior art, then compile source code It is translated into object code, the complex process of operation system is also restarted when finally disposing, to also substantially increase operation system portion Affix one's name to the efficiency updated.
In order to make it easy to understand, in the service message method of calibration and service message calibration equipment of description this specification embodiment Before, first configuration file is carried out as described below.
In some embodiments of this specification, configuration file can save as any suitable file format (such as can be with Including but not limited to json file format etc.).And the message format one that the quantity of configuration file can be covered with service message One is corresponding.For example, when the message format of service message includes fixed length message and two kinds of separator message, correspondingly, configuration text Part then can be two.
In some embodiments of this specification, each configuration file may include the configuration information of corresponding message format, often It may include in the configuration information of a configuration file a Java object group (or being java class), it can in these Java object groups With fractionation rule and verification rule comprising corresponding format message.Since service message generally comprises heading part and message body Part, wherein heading part may include heading common portion and heading detail part again, and message body portion again can be with Including message body common portion and message body detail part.Therefore, a Java object group may include: that a heading is public Class object, one or more heading detail class objects, the public class object of a message body, one or more message body detail classes Object.In this way, any field for being split and verifying can be divided to for the service message of any message format In four kinds of above-mentioned java class objects.
In some embodiments of this specification, the value for being intercepted field may include in the fractionation rule of Java object group Position, content format and value range etc. can specifically be needed to configure according to business.The verification rule of Java object group equally may be used It is configured as needed with business.In one embodiment of this specification, verification rule for example may include ID card No. format, hand over The easy amount of money, context field logic association etc..In one exemplary embodiment of this specification, verification rule for example may include as Lower content:
1) value of, public " type (type) " is necessary for " splicing (splice) " or " splitting (split) ", otherwise reports an error Type value mistake, throw exception;
2), the public type of header portion is necessary for singleton pattern (singleton), otherwise reports an error, throw exception;
3), the object oriented (objectName) of header portion there must be corresponding java class, if there is no then reporting Mistake, objectName specified class (Class) object are not present, throw exception;
4), must the filling out of header portion/essential attribute (required) value is necessary for " true (true) " or " false (false) ", otherwise report an error the required value mistake of header portion, throw exception;
5), the value of the fractionation of header portion regular (propertiesBoundaryDivison) is necessary for " regular length (fixedLength) " or " separator (delimiter) ", otherwise report an error header portion The value mistake of propertiesBoundaryDivison, throw exception;If value is " delimiter ", need " point Every symbol attribute (propertiesDelimiter) " label, it reports an error if without " propertiesDelimiter " label and does not refer to Determine separator, throw exception;
6), the domain serial number (seqno) value under project (item) subtab of header portion must since 1, and according to Sequentially, otherwise report an error natural number seq value mistake, throw exception;
7), the domain the type value under header portion item subtab is necessary for integer (int), long (long), double essences Spend floating type (double), single-precision floating point type (float), character type (char), Boolean type (boolean), character string type (String) one in, if it is not, then the type value mistake to report an error under header portion item subtab, throw exception;
8), if the value of the propertiesBoundaryDivison of header portion is " fixedLength ", report Head, which is divided under item subtab, needs the domain length, and value is necessary for positive integer, and the length that otherwise reports an error is not specified or lattice Formula mistake, throw exception;If the value of the propertiesBoundaryDivison of header portion is " delimiter ", Label needs two maximum length (maxLength), minimum length (minLength) domains under header portion item, The value of maxLength, minLength are necessary for positive integer and maxLength has to be larger than minLength, otherwise report an error MaxLength, minLength be not specified or format error, throw exception;
9), the domain domain name/field name (fieldName) value under header portion item subtab, it is necessary to be header portion The specified Java Class in the domain objectName in Field, and the value in the domain fieldName cannot repeat under item, no The fieldName that then reports an error is illegal or repeats, throw exception;
10), message body (body) is partially consistent with the verification of the same name domain of header portion rule, including several additional tags The verification in domain: (a), the domain inner edge distance attribute (padding) value be necessary for " left (left) " or " right (right) ", otherwise report an error Padding value mistake, throw exception;(b), the domain return code (isRetcode) value is necessary for " true " or " false ", Otherwise report an error isRetcode value mistake, throw exception;(c), the domain return information (isRetmsg) value be necessary for " true " or " false ", otherwise report an error isRetmsg value mistake, throw exception.
In one exemplary embodiment of this specification, configuration file can be for example as follows.Wherein: // * * * indicates note It releases, this content is not included in actual disposition, a rower of the leftmost side indicates a line complete content in example.
In some embodiments of this specification, after forming configuration file, configuration file can be saved in specified storage Position, in order to subsequent processing (such as load, modification etc.).
Refering to what is shown in Fig. 1, the service message of this specification embodiment verifies on the basis of having pre-saved configuration file Method may comprise steps of:
S101, parsing multiple configuration files corresponding with message format are obtained corresponding with message format multiple with confidence Breath;Fractionation rule and verification rule in each configuration information comprising corresponding message format.
In some embodiments of this specification, when configuration file is json data file, json message solution can be used Analysis tool parses configuration file.Before parsing configuration file, these configuration files can be read from designated storage location and are solved Analysis, to obtain the corresponding multiple configuration informations of each configuration file, such as shown in the following table 1.
Table 1
In some embodiments of this specification, in resolving, if capturing any exception, log can recorde, And it can be unsuccessfully to exit.If not capturing abnormal (i.e. successfully resolved), Java object group is generated, and can be by Java object Group storage to public fractionation configuration object (can with<split format name, Java object group>form be stored in The common object CONFIG_MAP of ConcurrentHashMap) in, for subsequent use.
In some embodiments of this specification, after parsing configuration file, listening to of reloading can also be started, with The function of reloading configuration file is provided.
S102, service message is obtained.
In some embodiments of this specification, the acquisition service message can be reception and obtain service message, or read Take service message.Service message can be the service message of any type of service as needed.For example, in one example of this specification Property embodiment in, the service message can include but is not limited to payment class message, non-pay class message, batch payment class report Text, documentary information message etc..
S103, according to the message format of the service message, matching and the business report from the multiple configuration information The corresponding configuration information of text.
In some embodiments of this specification, the message format of service message can be determined by parsing service message.Phase Answer, according to the message format can from and the corresponding configuration information of message format in be matched to it is corresponding with the service message Configuration information.Such as one in exemplary embodiment, the message of acquisition is fixed length message, then the configuration information being matched to then is and fixed The corresponding configuration information of long message.
S104, regular according to the fractionation in configuration information corresponding with the service message and verification is regular, to the industry Specific field in business message is split and is verified.
In some embodiments of this specification, due in the configuration information that matches comprising fractionation corresponding with message format Rule and verification are regular, and fractionation and school can be carried out to the specific field in service message by splitting rule and verification rule accordingly It tests, such as shown in Fig. 2.Wherein, the specific field in service message can specify in splitting rule and verification rule, it is specific and It says, the specific field in service message can specify in the Java object group in configuration information.
For example, in the public class object of heading of Java object group, it is possible to specify heading common portion some or Certain fields are as specific field and its corresponding verification rule;In the heading detail class object of Java object group, it can refer to Some or certain fields of heading detail part are determined as specific field and its corresponding verification rule;In Java object group In the public class object of message body, it is possible to specify some or certain fields of message body common portion are as specific field and its correspondence Verification rule;In the message body detail class object of Java object group, it is possible to specify message body detail part some or it is certain Field is as specific field and its corresponding verification rule.
S105, when the check results for confirming the specific field are verify successfully, given birth to according to the specific field after verification At the business object of target service class.
It, can basis when the check results for confirming specific field are to verify successfully in some embodiments of this specification Specific field after verification generates the business object of target service class, carries out corresponding business processing in order to subsequent.Wherein, mesh The business object of mark service class can be preset according to business processing logic.
In some embodiments of this specification, configuration can also be generated comprising target in the configuration information of each configuration file Information, it may include: the specified target service class generated and message domain and target service class that the target, which generates configuration information, Field corresponding relationship.It is corresponding, it can be generated according to the target in configuration information corresponding with the service message and match confidence Specific field after the verification is generated the business object of target service class using Java reflection mode by breath.
In some embodiments of this specification, had according to business processing needs in the business object for generating target service class Shi Keneng needs to generate the specific field after verification the message (hereinafter referred to as object message) of specified format.Correspondingly, will It, can be raw according to the target in configuration information corresponding with the service message after specific field after verification generates object message At configuration information, the object message is generated to the business object of target service class using Java reflection mode.Specifically it can wrap It includes: heading object being generated according to the heading java class reflection specified in object message, and using in the object message Corresponding the first specified value in the domain Java carries out assignment to the heading object.According to the message body Java specified in object message Class reflection generates message body object, and using the corresponding specified second value in the domain Java in the object message to the message body Object carries out assignment.Message body object according to the heading object after assignment and after assignment generates the business pair of target service class As.
Although procedures described above process includes the multiple operations occurred with particular order, it should however be appreciated that understand, These processes may include more or fewer operations, these operations can be executed sequentially or be executed parallel (such as using parallel Processor or multi-thread environment).
Refering to what is shown in Fig. 3, the service message calibration equipment of some embodiments of this specification may include:
Configuration file processing module 31 can be used for parsing multiple configuration files corresponding with message format, obtains and reports The corresponding multiple configuration informations of literary format;Fractionation rule and verification rule in each configuration information comprising corresponding message format;
Source messages processing module 32 can be used for obtaining service message;According to the message format of the service message, from institute It states and matches configuration information corresponding with the service message in multiple configuration informations;According to configuration corresponding with the service message Fractionation rule and verification rule in information, are split and are verified to the specific field in the service message;
Object message generation module 33 can be used for when the check results for confirming the specific field are to verify successfully, The business object of target service class is generated according to the specific field after verification.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when specification.
Refering to what is shown in Fig. 4, the service message calibration equipment of other embodiments of this specification may include memory, processing Device and the computer program being stored on the memory execute such as when the computer program is run by the processor Lower step:
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Often Fractionation rule and verification rule in a configuration information comprising corresponding message format;
Obtain service message;
According to the message format of the service message, matched from the multiple configuration information corresponding with the service message Configuration information;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, to the service message In specific field split and verified;
When the check results for confirming the specific field are to verify successfully, target is generated according to the specific field after verification The business object of service class.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include, so that process, method or equipment including a series of elements not only include those elements, but also including not having There is the other element being expressly recited, or further includes for this process, method or the intrinsic element of equipment.Do not having more In the case where more limitations, the element that is limited by sentence "including a ...", it is not excluded that including process, the side of the element There is also other identical elements in method or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in this specification The form of example.Moreover, it wherein includes the computer of computer usable program code that this specification, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects, Component, data structure etc..This specification can also be practiced in a distributed computing environment, in these distributed computing environment In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module It can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.

Claims (12)

1. a kind of service message method of calibration characterized by comprising
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Each match Fractionation rule and verification rule in confidence breath comprising corresponding message format;
Obtain service message;
According to the message format of the service message, match corresponding with the service message is matched from the multiple configuration information Confidence breath;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, in the service message Specific field is split and is verified;
When the check results for confirming the specific field are to verify successfully, target service is generated according to the specific field after verification The business object of class.
2. service message method of calibration as described in claim 1, which is characterized in that include a Java in each configuration information Object group, the Java object group include:
One public class object of heading;
Several heading detail class objects;
One public class object of message body;And
Several message body detail class objects.
3. service message method of calibration as described in claim 1, which is characterized in that also raw comprising target in each configuration information At configuration information, it includes: the specified target service class generated and message domain and target service that the target, which generates configuration information, The field corresponding relationship of class;
Corresponding, the specific field according to after verification generates the business object of target service class, comprising:
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode by institute Specific field after stating verification generates the business object of target service class.
4. service message method of calibration as claimed in claim 3, which is characterized in that described raw according to the specific field after verification At the business object of target service class, comprising:
Specific field after verification is generated into object message;
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode by institute State the business object that object message generates target service class.
5. service message method of calibration as claimed in claim 4, which is characterized in that described to use Java reflection mode described The business object of object message generation target service class, comprising:
Heading object is generated according to the heading java class reflection specified in object message, and using in the object message Corresponding the first specified value in the domain Java carries out assignment to the heading object;
Message body object is generated according to the message body java class reflection specified in object message, and using in the object message The corresponding specified second value in the domain Java carries out assignment to the message body object;
Message body object according to the heading object after assignment and after assignment generates the business object of target service class.
6. a kind of service message calibration equipment characterized by comprising
Configuration file processing module obtains corresponding with message format for parsing multiple configuration files corresponding with message format Multiple configuration informations;Fractionation rule and verification rule in each configuration information comprising corresponding message format;
Source messages processing module, for obtaining service message;According to the message format of the service message, from the multiple configuration Configuration information corresponding with the service message is matched in information;According to tearing open in configuration information corresponding with the service message Divider is then and verification is regular, and the specific field in the service message is split and verified;
Object message generation module, for being when verifying successfully, after verification in the check results for confirming the specific field Specific field generate target service class business object.
7. service message calibration equipment as claimed in claim 6, which is characterized in that include a Java in each configuration information Object group, the Java object group include:
One public class object of heading;
Several heading detail class objects;
One public class object of message body;And
Several message body detail class objects.
8. service message calibration equipment as claimed in claim 6, which is characterized in that also raw comprising target in each configuration information At configuration information, it includes: the specified target service class generated and message domain and target service that the target, which generates configuration information, The field corresponding relationship of class;
Corresponding, the specific field according to after verification generates the business object of target service class, comprising:
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode by institute Specific field after stating verification generates the business object of target service class.
9. service message calibration equipment as claimed in claim 8, which is characterized in that described raw according to the specific field after verification At the business object of target service class, comprising:
Specific field after verification is generated into object message;
Configuration information is generated according to the target in configuration information corresponding with the service message, using Java reflection mode by institute State the business object that object message generates target service class.
10. service message calibration equipment as claimed in claim 9, which is characterized in that described to use Java reflection mode by institute State the business object that object message generates target service class, comprising:
Heading object is generated according to the heading java class reflection specified in object message, and using in the object message Corresponding the first specified value in the domain Java carries out assignment to the heading object;
Message body object is generated according to the message body java class reflection specified in object message, and using in the object message The corresponding specified second value in the domain Java carries out assignment to the message body object;
Message body object according to the heading object after assignment and after assignment generates the business object of target service class.
11. a kind of service message calibration equipment, including memory, processor and the computer being stored on the memory Program, which is characterized in that the computer program executes following steps when being run by the processor:
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Each match Fractionation rule and verification rule in confidence breath comprising corresponding message format;
Obtain service message;
According to the message format of the service message, match corresponding with the service message is matched from the multiple configuration information Confidence breath;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, in the service message Specific field is split and is verified;
When the check results for confirming the specific field are to verify successfully, target service is generated according to the specific field after verification The business object of class.
12. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located Reason device performs the steps of when executing
Multiple configuration files corresponding with message format are parsed, multiple configuration informations corresponding with message format are obtained;Each match Fractionation rule and verification rule in confidence breath comprising corresponding message format;
Obtain service message;
According to the message format of the service message, match corresponding with the service message is matched from the multiple configuration information Confidence breath;
According to the fractionation rule and verification rule in configuration information corresponding with the service message, in the service message Specific field is split and is verified;
When the check results for confirming the specific field are to verify successfully, target service is generated according to the specific field after verification The business object of class.
CN201910061835.0A 2019-01-23 2019-01-23 Service message method of calibration, device and computer storage medium Pending CN109889375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910061835.0A CN109889375A (en) 2019-01-23 2019-01-23 Service message method of calibration, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910061835.0A CN109889375A (en) 2019-01-23 2019-01-23 Service message method of calibration, device and computer storage medium

Publications (1)

Publication Number Publication Date
CN109889375A true CN109889375A (en) 2019-06-14

Family

ID=66926701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910061835.0A Pending CN109889375A (en) 2019-01-23 2019-01-23 Service message method of calibration, device and computer storage medium

Country Status (1)

Country Link
CN (1) CN109889375A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336814A (en) * 2019-07-03 2019-10-15 中国银行股份有限公司 A kind of analytic method, equipment and the system of SWIFT message
CN110347694A (en) * 2019-07-12 2019-10-18 中国工商银行股份有限公司 A kind of apparatus monitoring method based on Internet of Things, apparatus and system
CN110473080A (en) * 2019-07-30 2019-11-19 阿里巴巴集团控股有限公司 A kind of report processing method, device and computer equipment
CN110688828A (en) * 2019-09-20 2020-01-14 京东数字科技控股有限公司 File processing method and device, file processing system and computer equipment
CN111641662A (en) * 2020-07-01 2020-09-08 中国银行股份有限公司 Message format inspection method and device
CN111736874A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Application updating method and device
CN111782517A (en) * 2020-06-23 2020-10-16 浙江保融科技有限公司 Automatic file checking method
CN112039975A (en) * 2020-08-26 2020-12-04 中国建设银行股份有限公司 Method, device, equipment and storage medium for processing message field
CN112115682A (en) * 2020-09-28 2020-12-22 中国建设银行股份有限公司 Automatic processing method and device for electronic certificate message based on engine
CN112445868A (en) * 2019-08-30 2021-03-05 北京京东振世信息技术有限公司 Service message processing method and device
CN112506869A (en) * 2020-12-08 2021-03-16 中国邮政储蓄银行股份有限公司 File processing method, device and system
CN112733199A (en) * 2020-12-28 2021-04-30 北京极豪科技有限公司 Data processing method and device, electronic equipment and readable storage medium
CN112947944A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Business work order processing method and device
CN113014558A (en) * 2021-02-10 2021-06-22 中国工商银行股份有限公司 Message identification method, device, computer system and readable storage medium
CN113111223A (en) * 2021-04-26 2021-07-13 银清科技有限公司 Method and device for generating XML (extensive Makeup language) string by message
CN114004217A (en) * 2022-01-04 2022-02-01 江西派能科技有限公司 Message signature element extraction method and system
CN114338854A (en) * 2021-12-31 2022-04-12 中国银行股份有限公司 Message processing method and device
CN114844956A (en) * 2022-04-15 2022-08-02 中国工商银行股份有限公司 Message checking method and device, storage medium and electronic equipment
CN115085867A (en) * 2022-06-15 2022-09-20 北斗星通智联科技有限责任公司 E2E verification method and device for CAN bus message
CN115665284A (en) * 2022-10-28 2023-01-31 上海浦东发展银行股份有限公司 Message processing method and device based on distributed configuration center and computer equipment
CN116346961A (en) * 2023-05-30 2023-06-27 成方金融科技有限公司 Financial message processing method and device, electronic equipment and storage medium
WO2023174170A1 (en) * 2022-03-18 2023-09-21 华为技术有限公司 Packet processing method and apparatus, and packet checking method and apparatus
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646015A (en) * 2013-12-06 2014-03-19 中国银行股份有限公司 Method and system for sending, receiving and transmitting XML message
EP2770687A1 (en) * 2011-11-30 2014-08-27 Huawei Technologies Co., Ltd. Network message parsing method and communication device
CN104750787A (en) * 2015-03-12 2015-07-01 国家电网公司 Data integrating and processing system and method
CN105138613A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 Business object and xml message mutual conversion method and system
CN107231337A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Method of calibration and device applied to financial message
CN107566090A (en) * 2017-10-19 2018-01-09 中国银行股份有限公司 A kind of text message processing method and processing device of fixed/variable
CN108337133A (en) * 2018-02-06 2018-07-27 北京远通信德科技有限公司 A kind of multimodal transport packet parsing tool
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2770687A1 (en) * 2011-11-30 2014-08-27 Huawei Technologies Co., Ltd. Network message parsing method and communication device
CN103646015A (en) * 2013-12-06 2014-03-19 中国银行股份有限公司 Method and system for sending, receiving and transmitting XML message
CN104750787A (en) * 2015-03-12 2015-07-01 国家电网公司 Data integrating and processing system and method
CN105138613A (en) * 2015-08-07 2015-12-09 北京思特奇信息技术股份有限公司 Business object and xml message mutual conversion method and system
CN107231337A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 Method of calibration and device applied to financial message
CN107566090A (en) * 2017-10-19 2018-01-09 中国银行股份有限公司 A kind of text message processing method and processing device of fixed/variable
CN108337133A (en) * 2018-02-06 2018-07-27 北京远通信德科技有限公司 A kind of multimodal transport packet parsing tool
CN108881172A (en) * 2018-05-22 2018-11-23 阿里巴巴集团控股有限公司 The analysis method and device of message

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336814A (en) * 2019-07-03 2019-10-15 中国银行股份有限公司 A kind of analytic method, equipment and the system of SWIFT message
CN110347694A (en) * 2019-07-12 2019-10-18 中国工商银行股份有限公司 A kind of apparatus monitoring method based on Internet of Things, apparatus and system
CN110347694B (en) * 2019-07-12 2022-03-25 中国工商银行股份有限公司 Equipment monitoring method, device and system based on Internet of things
CN110473080A (en) * 2019-07-30 2019-11-19 阿里巴巴集团控股有限公司 A kind of report processing method, device and computer equipment
CN112445868A (en) * 2019-08-30 2021-03-05 北京京东振世信息技术有限公司 Service message processing method and device
CN112445868B (en) * 2019-08-30 2024-04-12 北京京东振世信息技术有限公司 Service message processing method and device
CN110688828A (en) * 2019-09-20 2020-01-14 京东数字科技控股有限公司 File processing method and device, file processing system and computer equipment
CN112947944B (en) * 2019-12-11 2023-12-05 中盈优创资讯科技有限公司 Business work order processing method and device
CN112947944A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Business work order processing method and device
CN111782517A (en) * 2020-06-23 2020-10-16 浙江保融科技有限公司 Automatic file checking method
CN111782517B (en) * 2020-06-23 2021-06-04 浙江保融科技股份有限公司 Automatic file checking method
CN111736874A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Application updating method and device
CN111641662A (en) * 2020-07-01 2020-09-08 中国银行股份有限公司 Message format inspection method and device
CN112039975A (en) * 2020-08-26 2020-12-04 中国建设银行股份有限公司 Method, device, equipment and storage medium for processing message field
CN112115682A (en) * 2020-09-28 2020-12-22 中国建设银行股份有限公司 Automatic processing method and device for electronic certificate message based on engine
CN112506869A (en) * 2020-12-08 2021-03-16 中国邮政储蓄银行股份有限公司 File processing method, device and system
CN112733199A (en) * 2020-12-28 2021-04-30 北京极豪科技有限公司 Data processing method and device, electronic equipment and readable storage medium
CN113014558A (en) * 2021-02-10 2021-06-22 中国工商银行股份有限公司 Message identification method, device, computer system and readable storage medium
CN113111223A (en) * 2021-04-26 2021-07-13 银清科技有限公司 Method and device for generating XML (extensive Makeup language) string by message
CN113111223B (en) * 2021-04-26 2023-10-13 银清科技有限公司 Method and device for generating XML string by message
CN114338854A (en) * 2021-12-31 2022-04-12 中国银行股份有限公司 Message processing method and device
CN114004217A (en) * 2022-01-04 2022-02-01 江西派能科技有限公司 Message signature element extraction method and system
WO2023174170A1 (en) * 2022-03-18 2023-09-21 华为技术有限公司 Packet processing method and apparatus, and packet checking method and apparatus
CN114844956B (en) * 2022-04-15 2024-03-08 中国工商银行股份有限公司 Message verification method and device, storage medium and electronic equipment
CN114844956A (en) * 2022-04-15 2022-08-02 中国工商银行股份有限公司 Message checking method and device, storage medium and electronic equipment
CN115085867A (en) * 2022-06-15 2022-09-20 北斗星通智联科技有限责任公司 E2E verification method and device for CAN bus message
CN115085867B (en) * 2022-06-15 2024-01-19 北斗星通智联科技有限责任公司 E2E verification method and device for CAN bus message
CN115665284A (en) * 2022-10-28 2023-01-31 上海浦东发展银行股份有限公司 Message processing method and device based on distributed configuration center and computer equipment
CN116346961A (en) * 2023-05-30 2023-06-27 成方金融科技有限公司 Financial message processing method and device, electronic equipment and storage medium
CN116346961B (en) * 2023-05-30 2023-09-05 成方金融科技有限公司 Financial message processing method and device, electronic equipment and storage medium
CN117369906A (en) * 2023-12-07 2024-01-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment
CN117369906B (en) * 2023-12-07 2024-02-09 成都市楠菲微电子有限公司 Pcie verification platform, method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN109889375A (en) Service message method of calibration, device and computer storage medium
US10572370B2 (en) Test-assisted application programming interface (API) learning
CN107566090B (en) Fixed-length/variable-length text message processing method and device
CN105335310A (en) Interface defining method, and data transmission method and apparatus
CN109634682A (en) The configuration file update method and device of application program
CN113489593B (en) JSON message checking method and JSON message checking device
CN109146095A (en) The treating method and apparatus of multiservice system problem
CN106528823B (en) A kind of configuration of message and output method and device
CN105279613A (en) Accounting affair processing method and system
CN104133768A (en) Program code review method and program code review device
CN113330419A (en) Equipment application installation method and device
CN110134596A (en) The generation method and terminal device of test document
US20190196944A1 (en) System for writing and executing unit test cases
CN111159040A (en) Test data generation method, device, equipment and storage medium
US9569516B2 (en) Method and device for executing an enterprise process
CN110688823A (en) XML file verification method and device
CN109725905A (en) Software architecture and implementation method based on source code collection, plug-in unit and application method for compiling pins component
CN108710658A (en) A kind of storage method and device of data record
CN112699042B (en) Unit test case generation method and device
US20220318005A1 (en) Generation of software program repair explanations
CN112819621A (en) Intelligent contract resource loss testing method and system
CN110457658A (en) Text file configuration method and device
CN116821117B (en) Stream data processing method, system, equipment and storage medium
CN112051999B (en) Configurable download file generation method and device
CN109033837A (en) A kind of method and device of installation kit risk supervision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614

RJ01 Rejection of invention patent application after publication