CN108924141A - A kind of message tissue and transmission method and device - Google Patents
A kind of message tissue and transmission method and device Download PDFInfo
- Publication number
- CN108924141A CN108924141A CN201810750704.9A CN201810750704A CN108924141A CN 108924141 A CN108924141 A CN 108924141A CN 201810750704 A CN201810750704 A CN 201810750704A CN 108924141 A CN108924141 A CN 108924141A
- Authority
- CN
- China
- Prior art keywords
- message
- characteristic
- standard
- tissue
- heading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Abstract
This application discloses a kind of message tissue and transmission method and device, method includes:The first system receives the message that second system is sent, the message includes heading and message body, message body includes standard message and characteristic message, the first system parses the heading and standard message of the message, and according to the property name tag processes characteristic message of characteristic message, message tissue from different second systems is a new message by the first system, and the new message is sent to third system.The message body tissue of message is standard message and characteristic message two parts by this method and device, for the characteristic message that business scenario is different and has differences, differentiation can be identified by the property name label of characteristic message, and identifying processing is carried out according to demand, in the process by an interface can complete include the message of different data transmission, avoid different business scene and define system resource waste and maintainable poor problem caused by different message interfaces respectively.
Description
Technical field
The present invention relates to data transmission technologies, and more specifically, it relates to a kind of message tissues and transmission method and device.
Background technique
In financial industry, the data interaction that many business usually require to carry out between multiple systems can be smoothly completed,
The transmission of data is not carried out between homologous ray using message form generally.
Since business scenario specific under different business or same business is different, lead to the data for needing to transmit between system
There is also very big differences.In the prior art, in order to meet the accurate transmission of various different data under different business scene, it will usually
Define different message interfaces respectively according to different business scenarios, an interface corresponds to a kind of transmission of specific data.But
This mode can not only waste system resource, and can cause too much maintainability poor due to interface.
Summary of the invention
In view of this, the present invention provides a kind of message tissue and transmission method and device, with overcome in the prior art by
Define the problem of system resource waste and maintainable difference caused by different message interfaces respectively in different business scene.
To achieve the above object, the present invention provides the following technical solutions:
A kind of message tissue and transmission method, including:
The first system receives the message that second system is sent, and the message includes heading and message body, the message body
Including standard message and characteristic message, wherein the standard message is the message for including immobilized substance, the characteristic message be
It include the message of different content under different business scene;
The first system parses the heading and standard message of the message, and according to the property name mark of the characteristic message
Label handle the characteristic message;
Message tissue from different second systems is a new message by the first system, and the new message is sent
Give third system.
Optionally, the first system parses the heading and standard message of the message, and according to the characteristic message
Property name tag processes described in characteristic message, including:
The first system parses the heading and standard message of the message;
According to the property name label of the characteristic message judge the characteristic message whether be itself need characteristic quantity
According to;
If so, parsing the characteristic message.
Optionally, the message tissue from different second systems is a new message by the first system, and by institute
It states new message and is sent to third system, including:
The first system according to preset the first system and third system message interface regular weaves heading and standard report
Text;
Characteristic message from different second systems is stitched together by the first system, forms integrity property message;
The first system organizes together the heading organized and standard message with the integrity property message, is formed new
Message;
The new message is sent to third system by the first system.
Optionally, further include:
Pre-configured characteristic message data, the feature message data include property name label, characteristic message attribute
With characteristic message format.
Optionally, the characteristic message is the characteristic message of XML format, and the message of the XML format uses XML CDATA
Tag Packaging, the characteristic message after the CDATA Tag Packaging using XML are corresponding using the data for being included with characteristic message
Property name Tag Packaging.
A kind of message tissue and transmitting device, including:
Message receiving module, for receiving the message of second system transmission, the message includes heading and message body, institute
Stating message body includes standard message and characteristic message, wherein the standard message is the message for including immobilized substance, the characteristic
Message is the message under different business scene including different content;
Message processing module (MPM), for parsing the heading and standard message of the message, and according to the characteristic message
Characteristic message described in property name tag processes;
Message sending module, for that will be a new message from the message tissue of different second systems, and will be described
New message is sent to third system.
Optionally, the message processing module (MPM) includes:
Packet parsing module, for parsing the heading and standard message of the message;
Message judgment module, for according to the property name label of the characteristic message judge the characteristic message whether be
The performance data that itself is needed;
The packet parsing module is also used to parse the characteristic when the judging result of the message judgment module is to be
Message.
Optionally, the message sending module includes:
The first tissue module, for according to preset interface regular weaves heading and standard message;
Message splicing module is formed complete special for the characteristic message from different second systems to be stitched together
Property message;
Minor microstructure module, for the heading organized and standard message and the integrity property message group to be woven in one
It rises, forms new message;
Message sending submodule, for the new message to be sent to third system.
Optionally, further include:
Configuration module, be used for pre-configured characteristic message data, the feature message data include property name label,
Characteristic message segment attribute and characteristic message paragraph format.
Optionally, the characteristic message is the characteristic message of XML format, and the message of the XML format uses XML CDATA
Tag Packaging, the characteristic message after the CDATA Tag Packaging using XML are corresponding using the data for being included with characteristic message
Property name Tag Packaging.
It can be seen via above technical scheme that compared with prior art, the embodiment of the invention discloses a kind of message tissues
With transmission method and device, method includes:The first system receive second system send message, the message include heading and
Message body, the message body includes standard message and characteristic message, wherein the standard message is the message for including immobilized substance,
The characteristic message is the message under different business scene including different content, and the first system parses the heading of the message
And standard message, and the characteristic message according to the property name tag processes of the characteristic message, the first system will be from not
The message tissue of same second system is a new message, and the new message is sent to third system.This method and device
It is standard message and characteristic message two parts by the message body tissue of message, for the characteristic that business scenario is different and has differences
Message can identify differentiation by the property name label of characteristic message, and carry out identifying processing according to demand, lead in the process
Cross an interface and can complete include the message of different data transmission, avoid different business scene define respectively it is different
The problem of system resource waste and maintainable difference caused by message interface.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of message tissue and transmission method disclosed by the embodiments of the present invention;
Fig. 2 is packet parsing flow chart disclosed by the embodiments of the present invention;
Fig. 3 is message structure content schematic diagram disclosed by the embodiments of the present invention;
Fig. 4 is the flow chart of the new message of tissue disclosed by the embodiments of the present invention;
Fig. 5 is the tissue and transmission schematic diagram of message disclosed by the embodiments of the present invention;
Fig. 6 is the flow chart of another message tissue and transmission method disclosed by the embodiments of the present invention;
Fig. 7 is a kind of structural schematic diagram of message tissue and transmitting device disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of message processing module (MPM) disclosed by the embodiments of the present invention;
Fig. 9 is the structural schematic diagram of message sending module disclosed by the embodiments of the present invention;
Figure 10 is the structural schematic diagram of another tissue and message transmitting device disclosed by the embodiments of the present invention.
Specific embodiment
For the sake of quoting and understanding, hereafter used in technical term explanation, write a Chinese character in simplified form or abridge and be summarized as follows:
XML:Expansible standard language.
CDATA:Refer to the text data not parsed by XML parser.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of message tissue and transmission method disclosed by the embodiments of the present invention, shown in Figure 1, report
Text is organized with transmission method:
Step 101:The first system receives the message that second system is sent, and the message includes heading and message body, institute
Stating message body includes standard message and characteristic message.
Wherein, the standard message is the message for including immobilized substance, and the characteristic message is under different business scene
Message including different content.
In general, the data that standard message is included are suitable for all business scenarios, and data area is stablized, usually not
It can change.It may include customer name, identification card number, phone number etc., furthermore as all kinds of business all need such as client's essential information
The public information to be had, such as the loan application amount of money, service life, intended use of the loan information.In the present embodiment, in a message
Have and only one standard message section.
Characteristic message refers to the data having differences by business scenario difference, such as house decoration loan and auto loan
It there is bigger difference.Specifically, multiple data field descriptions are had in the association message information of house decoration loan
The information in house itself, such as place cell, direction, floor, area, total price and other finishing element information.Auto loan
Association message information in need to be described in detail the information of vehicle itself, as manufacturer, brand, discharge capacity, Vehicle Identify Number, motor number,
The information such as acquisition price.Can there are zero, one or more different characteristic messages in one message.
It can specifically include point in advance to explicitly all kinds of business scenarios configure relevant characteristic message data
Not Wei certain special packet configuration feature name label and corresponding characteristic message segment under specific business scenario specific format
Deng.Such as auto loan property name label and characteristic message segment, the People's Bank individual collage-credit data property name can be set
Label and characteristic message segment, student status educational background net property name label and characteristic message segment.
Specifically, the message interface that the first system can make an appointment between second system according to it, receives
The message that second system is sent.The message can be XML message, and characteristic message therein is also organized as individual XML report
Text, the characteristic message of XML format are finally packaged in property name corresponding with its specific data after plus CDATA label
In label.In the case where there is multiple characteristic messages, each characteristic message requires finally to splice by above-mentioned processing one
Act a part formed in entire message body.The form of expression can be:In property name label+CDATA label+characteristic message segment
Specific XML data message.
In the present embodiment, characteristic message that each system can be different come tissue according to specific business scenario.It is suitable for
It needs to acquire because of business scenario difference, transmit the case where different data.It can be used as a kind of general message method for organizing, it is full
The changeable flexible message interaction of foot and transmission need.Such as it needs to newly increase inquiry for existing loan application client in business
When the public accumalation fund for housing construction of client pays data as authorization decision foundation, it is only necessary to increase in existing transaction message and define
The property name label and its corresponding message format of room common reserve fund.
Step 102:The first system parses the heading and standard message of the message, and according to the spy of the characteristic message
Property name label handle the characteristic message.
In a schematical example, the detailed process of step 102 may refer to Fig. 2, and Fig. 2 is that the embodiment of the present invention is public
The packet parsing flow chart opened, as shown in Fig. 2, may include:
Step 201:The first system parses the heading and standard message of the message.
Since standard message is commonly available to essential element in all business scenarios and each business, because
This, system needs to parse standard message and heading.
Step 202:Judge whether the characteristic message is itself needs according to the property name label of the characteristic message
Performance data, if so, entering step 203.
In analytic message body, if encountering property name label and CDATA message, can according to default processing logic into
Row processing.The default processing logic may include:If described the first system itself needs the data of the characteristic message, solve
Analyse the characteristic message;If described the first system itself does not need the data of the characteristic message, characteristic message is not carried out
Any dissection process.
Step 203:Parse the characteristic message.
After step 102,103 are entered step.
Step 103:Message tissue from different second systems is a new message by the first system, and will be described new
Message is sent to third system.
According to business needs, the message tissue from different second systems can be a new message by the first system,
The new message equally includes heading, message body standard message and message bulk properties message.Since message body standard message can
Can be identical, therefore the standard message in message body can directly replicate use, and for the characteristic from different second systems
Message, the first system can splice all characteristic messages, and spliced multiple characteristic messages are entire message
A part in middle message body.
Fig. 3 is message structure content schematic diagram disclosed by the embodiments of the present invention, and shown in Figure 3, message includes heading
With message body two parts, wherein message body includes standard message and characteristic message.Standard message is an XML message, characteristic report
Text includes that number is followed successively by 1.-five characteristic messages 5., each characteristic message is also an individual XML message.One
During a specific trading processing, in transaction message actually include which characteristic message, be according to specific business scenario,
According to property name label predetermined and it includes characteristic message data determine.
In the present embodiment, the message body of the message tissue and transmission method message is divided into standard message and characteristic message two
Part can know the characteristic message that business scenario is different and has differences by the property name label of characteristic message
Do not distinguish, and carry out identifying processing according to demand, in the process by an interface can complete include different data message
Transmission, avoid different business scene and define system resource waste and maintainability caused by different message interfaces respectively
The problem of difference.
In the above-described embodiments, the message tissue from different second systems is a new report by the first system
Text, and the specific implementation that the new message is sent to third system be may refer into Fig. 4, Fig. 4 is that the present invention is implemented
The flow chart of the disclosed new message of tissue of example, as shown in figure 4, may include:
Step 401:The first system according to preset the first system and third system message interface regular weaves heading
And standard message.
Only according to the default message interface regular weaves message content of data sender and data receiver's two systems,
It can guarantee the normal transmission and identification of message.
Step 402:Characteristic message from different second systems is stitched together by the first system, forms integrity property
Message.
Wherein, each characteristic message is the characteristic message of an individual XML format, and the message of the XML format can
To use XML CDATA Tag Packaging, characteristic message after the CDATA Tag Packaging using XML be can be used and characteristic
The corresponding property name Tag Packaging of the data that message is included.
Step 403:The heading organized and standard message and the integrity property message group are woven in one by the first system
It rises, forms new message.
Step 404:The new message is sent to third system by the first system.
Fig. 5 is the tissue and transmission schematic diagram of message disclosed by the embodiments of the present invention, shown in Figure 5, specific at one
Implementation in, personal loan management system is sent to the transaction message of credit decision computing engines system, actually
It is that the message sent using front end system and main strategies system is stitched together.Wherein, for same business, standard
Message segment content, such as customer name, identification card number information are identical, therefore personal loan management system is sent to credit and determines
The transaction message Plays message segment Information invariability of plan computing engines system, and characteristic message therein is then by front end system
The characteristic message in message that system and main strategies system are sent is stitched together to form complete characteristic message.
In the present embodiment, the particular content of the new message of tissue is described in detail, by the method for above-mentioned tissue message, so that
Message transmissions do not need to match different message interfaces respectively for different message datas, and not only scalability is strong, and avoids
Different business scene defines the problem of system resource waste and maintainable difference caused by different message interfaces respectively.
On the basis of the above disclosed embodiments of the present invention, Fig. 6 is another message group disclosed by the embodiments of the present invention
The flow chart with transmission method is knitted, as shown in fig. 6, message tissue may include with transmission method:
Step 601:Pre-configured characteristic message data, the feature message data include property name label, characteristic
Message segment attribute and characteristic message paragraph format.
The characteristic message data can with but be not limited to include property name label, characteristic message attribute and characteristic message
Format.So that system can judge it according to property name tag recognition characteristic message in message tissue and transmission process
Whether be itself need data.Characteristic message attribute and characteristic message format can guarantee the accurate transmission of data.
Certainly, relevant configuration personnel are also required to plan message interface component part between well complete not homologous ray, packet in advance
Heading, message body, interface mode (SOCKET, MQ), character set etc. are included, XML can also be used with prespecified all messages
Mode carries out data organization.It specifically configures and may include:The specific format of heading is defined, the standard message in message body is defined
Specific format, for known characteristic message, defines its property name label and corresponding each according to the difference of business scenario
The specific format of characteristic message.When the following if desired newly-increased characteristic message, need to distribute new characteristic name for new characteristic message
Claim label and the specific format of defined property message.It is subsequent when organizing message, each characteristic message can be reported using XML
Text tissue, then to the characteristic message of XML format, beginning is packaged plus XML CDATA label, finally reuses corresponding
Property name label is packaged.
Step 602:The first system receives the message that second system is sent, and the message includes heading and message body, institute
Stating message body includes standard message and characteristic message.
Wherein, the standard message is the message for including immobilized substance, and the characteristic message is under different business scene
Message including different content.
Step 603:The first system parses the heading and standard message of the message, and according to the spy of the characteristic message
Property name label handle the characteristic message.
Step 604:Message tissue from different second systems is a new message by the first system, and will be described new
Message is sent to third system.
In the present embodiment, the message tissue and the pre-configured characteristic message data of transmission method, in order to subsequent
In message tissue and transmission process, system can judge whether it is itself according to property name tag recognition characteristic message
The data needed.Characteristic message attribute and characteristic message format facilitate the accurate transmission and parsing of data.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain
A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification
The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Method is described in detail in aforementioned present invention disclosed embodiment, diversified forms can be used for method of the invention
Device realize that therefore the invention also discloses a kind of devices, and specific embodiment is given below and is described in detail.
Fig. 7 is a kind of structural schematic diagram of message tissue and transmitting device disclosed by the embodiments of the present invention, the message group
It knits and may operate at the first system with transmitting device, shown in Figure 7, message tissue may include with transmitting device 70:
Message receiving module 701, for receiving the message of second system transmission, the message includes heading and message
Body, the message body include standard message and characteristic message.
Wherein, the standard message is the message for including immobilized substance, and the characteristic message is under different business scene
Message including different content.
In general, the data that standard message is included are suitable for all business scenarios, and data area is stablized, usually not
It can change.It may include customer name, identification card number, phone number etc., furthermore as all kinds of business all need such as client's essential information
The public information to be had, such as the loan application amount of money, service life, intended use of the loan information.In the present embodiment, in a message
Have and only one standard message section.
Characteristic message, which refers to, seeks the data in difference because of business scenario difference, such as house decoration loan and auto loan
It there is bigger difference.Specifically, multiple data field descriptions are had in the association message information of house decoration loan
The information in house itself, such as place cell, direction, floor, area, total price and other finishing element information.Auto loan
Association message information in need to be described in detail the information of vehicle itself, as manufacturer, brand, discharge capacity, Vehicle Identify Number, motor number,
The information such as acquisition price.Can there are zero, one or more different characteristic messages in one message.
It can specifically include point in advance to explicitly all kinds of business scenarios configure relevant characteristic message data
Not Wei certain special packet configuration feature name label and corresponding characteristic message segment under specific business scenario specific format
Deng.Such as auto loan property name label and characteristic message segment, the People's Bank individual collage-credit data property name can be set
Label and characteristic message segment, student status educational background net property name label and characteristic message segment.
Specifically, the message interface that the first system can make an appointment between second system according to it, receives
The message that second system is sent.The message can be XML message, and characteristic message therein is also organized as individual XML report
Text, the characteristic message of XML format are finally packaged in property name corresponding with its specific data after plus CDATA label
In label.In the case where there is multiple characteristic messages, each characteristic message requires finally to splice by above-mentioned processing one
Act a part formed in entire message body.The form of expression can be:In property name label+CDATA label+characteristic message segment
Specific XML data message.
In the present embodiment, characteristic message that each system can be different come tissue according to specific business scenario.It is suitable for
It needs to acquire because of business scenario difference, transmit the case where different data.It can be used as a kind of general message method for organizing, it is full
The changeable flexible message interaction of foot and transmission need.Such as it needs to newly increase inquiry for existing loan application client in business
When the public accumalation fund for housing construction of client pays data as authorization decision foundation, it is only necessary to increase in existing transaction message and define
The property name label and its corresponding message format of room common reserve fund.
Message processing module (MPM) 702, for parsing the heading and standard message of the message, and according to the characteristic message
Property name tag processes described in characteristic message.
In a schematical example, the specific structure of the message processing module (MPM) 702 may refer to Fig. 8, and Fig. 8 is this
The structural schematic diagram of message processing module (MPM) disclosed in inventive embodiments, as shown in figure 8, the message processing module (MPM) 702 can wrap
It includes:
Packet parsing module 801, for parsing the heading and standard message of the message.
Since standard message is commonly available to essential element in all business scenarios and each business, because
This, system needs to parse standard message and heading.
Message judgment module 802, for judging that the characteristic message is according to the property name label of the characteristic message
The no performance data needed for itself.
The packet parsing module 801 is also used to parse institute when the judging result of the message judgment module 802 is to be
State characteristic message.
In analytic message body, if encountering property name label and CDATA message, can according to default processing logic into
Row processing.The default processing logic may include:If described the first system itself needs the data of the characteristic message, solve
Analyse the characteristic message;If described the first system itself does not need the data of the characteristic message, characteristic message is not carried out
Any dissection process.
Other than above-mentioned message receiving module 701 and message processing module (MPM) 702, the message transmitting device 70 is also wrapped
It includes:
Message sending module 703, for that will be a new message from the message tissue of different second systems, and by institute
It states new message and is sent to third system.
According to business needs, the message tissue from different second systems can be a new message by the first system,
The new message equally includes heading, message body standard message and message bulk properties message.Since message body standard message can
Can be identical, therefore the standard message in message body can directly replicate use, and for the characteristic from different second systems
Message, the first system can splice all characteristic messages, and spliced multiple characteristic messages are entire message
A part in middle message body.
In the present embodiment, the message body of the message tissue and transmitting device message is divided into standard message and characteristic message two
Part can know the characteristic message that business scenario is different and has differences by the property name label of characteristic message
Do not distinguish, and carry out identifying processing according to demand, in the process by an interface can complete include different data message
Transmission, avoid different business scene and define system resource waste and maintainability caused by different message interfaces respectively
The problem of difference.
In the above-described embodiments, a specific implementation of the message sending module 703 may refer to Fig. 9, and Fig. 9 is this hair
The structural schematic diagram of message sending module, shown in Figure 9 disclosed in bright embodiment, and the message sending module 703 can wrap
It includes:
The first tissue module 901, for according to preset interface regular weaves heading and standard message.
Only according to the default message interface regular weaves message content of data sender and data receiver's two systems,
It can guarantee the normal transmission and identification of message.
Message splicing module 902 is formed complete for the characteristic message from different second systems to be stitched together
Characteristic message.
Wherein, each characteristic message is the characteristic message of an individual XML format, and the message of the XML format can
To use XML CDATA Tag Packaging, characteristic message after the CDATA Tag Packaging using XML be can be used and characteristic
The corresponding property name Tag Packaging of the data that message is included.
Minor microstructure module 903, for by the heading organized and standard message and the integrity property message tissue
Together, new message is formed.
Message sending submodule 904, for the new message to be sent to third system.
In the present embodiment, the particular content of the new message of tissue is described in detail, by the specific implementation of above-mentioned tissue message,
So that message transmissions do not need to match different message interfaces respectively for different message datas, not only scalability is strong, and keeps away
Exempt from different business scene and defines the problem of system resource waste and maintainable difference caused by different message interfaces respectively.
Figure 10 is the structural schematic diagram of another message tissue and transmitting device disclosed by the embodiments of the present invention, the message
Transmitting device may operate at the first system, and as shown in Figure 10, message tissue may include with transmitting device 100:
Configuration module 1001 is used for pre-configured characteristic message data, and the feature message data includes property name
Label, characteristic message segment attribute and characteristic message paragraph format.
The characteristic message data can with but be not limited to include property name label, characteristic message attribute and characteristic message
Format.So that system can judge it according to property name tag recognition characteristic message in message tissue and transmission process
Whether be itself need data.Characteristic message attribute and characteristic message format can guarantee the accurate transmission of data.
Certainly, relevant configuration personnel are also required to plan message interface component part between well complete not homologous ray, packet in advance
Heading, message body, interface mode (SOCKET, MQ), character set etc. are included, XML can also be used with prespecified all messages
Mode carries out data organization.It specifically configures and may include:The specific format of heading is defined, the standard message in message body is defined
Specific format, for known characteristic message, defines its property name label and corresponding each according to the difference of business scenario
The specific format of characteristic message.When the following if desired newly-increased characteristic message, need to distribute new characteristic name for new characteristic message
Claim label and the specific format of defined property message.It is subsequent when organizing message, each characteristic message can be reported using XML
Text tissue, then to the characteristic message of XML format, beginning is packaged plus XML CDATA label, finally reuses corresponding
Property name label is packaged.
Message receiving module 701, for receiving the message of second system transmission, the message includes heading and message
Body, the message body include standard message and characteristic message.
Wherein, the standard message is the message for including immobilized substance, and the characteristic message is under different business scene
Message including different content.
Message processing module (MPM) 702, for parsing the heading and standard message of the message, and according to the characteristic message
Property name tag processes described in characteristic message.
Message sending module 703, for that will be a new message from the message tissue of different second systems, and by institute
It states new message and is sent to third system.
In the present embodiment, the message tissue and the pre-configured characteristic message data of transmitting device, in order to subsequent
In message tissue and transmission process, system can judge whether it is itself according to property name tag recognition characteristic message
The data needed.Characteristic message attribute and characteristic message format facilitate the accurate transmission and parsing of data.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of message tissue and transmission method, which is characterized in that including:
The first system receives the message that second system is sent, and the message includes heading and message body, and the message body includes
Standard message and characteristic message, wherein the standard message is the message for including immobilized substance, the characteristic message is in difference
It include the message of different content under business scenario;
The first system parses the heading and standard message of the message, and according to the property name label of the characteristic message at
Manage the characteristic message;
Message tissue from different second systems is a new message, and the new message is sent to the by the first system
Three systems.
2. message tissue according to claim 1 and transmission method, which is characterized in that the first system parses the report
The heading and standard message of text, and the characteristic message according to the property name tag processes of the characteristic message, including:
The first system parses the heading and standard message of the message;
According to the property name label of the characteristic message judge the characteristic message whether be itself need performance data;
If so, parsing the characteristic message.
3. message tissue according to claim 1 and transmission method, which is characterized in that the first system will be from difference
The message tissue of second system be a new message, and the new message is sent to third system, including:
The first system according to preset the first system and third system message interface regular weaves heading and standard message;
Characteristic message from different second systems is stitched together by the first system, forms integrity property message;
The first system organizes together the heading organized and standard message with the integrity property message, forms new report
Text;
The new message is sent to third system by the first system.
4. message tissue according to claim 1-3 and transmission method, which is characterized in that further include:
Pre-configured characteristic message data, the feature message data include property name label, characteristic message attribute and spy
Property message format.
5. message tissue according to claim 4 and transmission method, which is characterized in that the characteristic message is XML format
Characteristic message, the message of the XML format uses XML CDATA Tag Packaging, described using after XML CDATA Tag Packaging
Characteristic message, use the corresponding property name Tag Packaging of the data for being included with characteristic message.
6. a kind of message tissue and transmitting device, which is characterized in that including:
Message receiving module, for receiving the message of second system transmission, the message includes heading and message body, the report
Style includes standard message and characteristic message, wherein the standard message is the message for including immobilized substance, the characteristic message
For the message under different business scene including different content;
Message processing module (MPM), for parsing the heading and standard message of the message, and according to the characteristic of the characteristic message
The name label processing characteristic message;
Message sending module, for that will be a new message from the message tissue of different second systems, and by the new report
Text is sent to third system.
7. message tissue according to claim 6 and transmitting device, which is characterized in that the message processing module (MPM) includes:
Packet parsing module, for parsing the heading and standard message of the message;
Message judgment module, for judging whether the characteristic message is itself according to the property name label of the characteristic message
The performance data needed;
The packet parsing module is also used to parse the characteristic report when the judging result of the message judgment module is to be
Text.
8. message tissue according to claim 6 and transmitting device, which is characterized in that the message sending module includes:
The first tissue module, for according to preset interface regular weaves heading and standard message;
Message splicing module forms integrity property report for the characteristic message from different second systems to be stitched together
Text;
Minor microstructure module, for the heading organized and standard message to be organized together with the integrity property message,
Form new message;
Message sending submodule, for the new message to be sent to third system.
9. according to the described in any item message tissues of claim 6-8 and transmitting device, which is characterized in that further include:
Configuration module is used for pre-configured characteristic message data, and the feature message data includes property name label, characteristic
Message segment attribute and characteristic message paragraph format.
10. message tissue according to claim 9 and transmitting device, which is characterized in that the characteristic message is XML format
Characteristic message, the message of the XML format uses XML CDATA Tag Packaging, described using after XML CDATA Tag Packaging
Characteristic message, use the corresponding property name Tag Packaging of the data for being included with characteristic message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810750704.9A CN108924141B (en) | 2018-07-10 | 2018-07-10 | Message organization and transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810750704.9A CN108924141B (en) | 2018-07-10 | 2018-07-10 | Message organization and transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108924141A true CN108924141A (en) | 2018-11-30 |
CN108924141B CN108924141B (en) | 2021-01-26 |
Family
ID=64412198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810750704.9A Active CN108924141B (en) | 2018-07-10 | 2018-07-10 | Message organization and transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108924141B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209377A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Interface packet processing method, device, equipment and storage medium based on factory class |
CN110445658A (en) * | 2019-08-16 | 2019-11-12 | 中国银行股份有限公司 | A kind of message processing method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174897A1 (en) * | 2002-01-29 | 2003-09-18 | Canon Kabushiki Kaisha | Method and device for forming a reduced compressed digital signal |
CN103095609A (en) * | 2013-01-09 | 2013-05-08 | 大唐软件技术股份有限公司 | Access adaptive method and device based on Internet of things terminals |
CN105391593A (en) * | 2015-12-30 | 2016-03-09 | 迈普通信技术股份有限公司 | Message transmission method and equipment |
CN106874325A (en) * | 2016-06-29 | 2017-06-20 | 阿里巴巴集团控股有限公司 | Data query method and device |
CN108040041A (en) * | 2017-12-05 | 2018-05-15 | 东北大学 | A kind of image difference transport protocol design system and method based on business-driven |
-
2018
- 2018-07-10 CN CN201810750704.9A patent/CN108924141B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174897A1 (en) * | 2002-01-29 | 2003-09-18 | Canon Kabushiki Kaisha | Method and device for forming a reduced compressed digital signal |
CN103095609A (en) * | 2013-01-09 | 2013-05-08 | 大唐软件技术股份有限公司 | Access adaptive method and device based on Internet of things terminals |
CN105391593A (en) * | 2015-12-30 | 2016-03-09 | 迈普通信技术股份有限公司 | Message transmission method and equipment |
CN106874325A (en) * | 2016-06-29 | 2017-06-20 | 阿里巴巴集团控股有限公司 | Data query method and device |
CN108040041A (en) * | 2017-12-05 | 2018-05-15 | 东北大学 | A kind of image difference transport protocol design system and method based on business-driven |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209377A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Interface packet processing method, device, equipment and storage medium based on factory class |
CN110445658A (en) * | 2019-08-16 | 2019-11-12 | 中国银行股份有限公司 | A kind of message processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108924141B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7593876B2 (en) | System and method for processing partially unstructured data | |
US20070233597A1 (en) | Least cost network routing for electronic transactions | |
CN110428322A (en) | A kind of adaptation method and device of business datum | |
CN110119977A (en) | Financial accounting voucher automatic generation method, system, medium and electronic equipment | |
US20050267889A1 (en) | System and method of managing software product-line customizations | |
EP0935224A3 (en) | System for performing financial transactions using a smart card | |
EP1616307A1 (en) | Smart card personalization assistance tool | |
FR2714987A1 (en) | System for transactions comprising terminals and memory cards and corresponding memory card. | |
CN108924141A (en) | A kind of message tissue and transmission method and device | |
CN110457336B (en) | Transaction data processing method and device | |
CN106874325A (en) | Data query method and device | |
CN108364218A (en) | A kind of sharing method and device of user's collage-credit data | |
CN105488720A (en) | Accounting data processing method and device | |
CN108681553A (en) | A kind of data processing method, device, terminal device and storage medium | |
CN108876489A (en) | Intelligent finance collection method, system, computer equipment and storage medium | |
CN111680327B (en) | Block chain-based client information integration method, device, equipment and storage medium | |
WO2009035900A1 (en) | Electronic financial transaction routing | |
CN109992655A (en) | Intelligent customer service method, apparatus, equipment and storage medium | |
CN109741169A (en) | Liquidation method, system, computer equipment based on distributed account book | |
KR100990690B1 (en) | System and method for managing account | |
CN109035020A (en) | A kind of return method and device of Transaction Information | |
CN114004606A (en) | Bank card transaction activity processing method and related equipment | |
CN112465645A (en) | Simulation deep crossing stock transaction matching system | |
CN106157183A (en) | Service providing method and device | |
CN109871203A (en) | Optimization transmission method, device and the electronic equipment of network request parameter |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |