Summary of the invention
As it can be seen that existing server platform can not efficiently handle the message that multiple external systems provide, and flexibly
Property and scalability are poor.
Therefore, in view of the above-mentioned problems, according to the first aspect of the invention, proposing a kind of message treatment method, comprising: connect
IMIX message meta-data is received and parses, the IMIX message meta-data includes goal systems mark, type of message mark and city
Field type identification;Based on goal systems mark, type of message mark and market category mark, in configuration files database
The middle matched configuration file of search;The IMIX message meta-data target is converted to based on the matched configuration file to disappear
Breath;Send the target message.
In one embodiment, the method also includes: establish configuration files database, the configuration files database packet
The profile list is included, described the profile list includes one or more goal systems marks, type of message mark and city
The corresponding relationship of field type identification and configuration file.
In one embodiment, the switch process further comprises: to the numerical value number in the IMIX message meta-data
According to progress Conversion of measurement unit or decimal place processing.
In one embodiment, the step of transmission message further comprises: being identified based on the goal systems, by institute
It states target message and is sent to corresponding goal systems.
According to the second aspect of the invention, it is also proposed that a kind of message processing apparatus, comprising: receiving unit, for receiving
And IMIX message meta-data is parsed, the IMIX message meta-data includes goal systems mark, type of message mark and market
Type identification;Search unit, for matching based on goal systems mark, type of message mark and market category mark
It sets and searches for matched configuration file in document data bank;Converting unit, will be described for being based on the matched configuration file
IMIX message meta-data is converted to target message;And transmission unit, for sending the target message.
In one embodiment, described device further include: configuration files database comprising the profile list, it is described
The profile list includes one or more goal systems marks, type of message mark and market category mark and configuration file
Corresponding relationship.
In one embodiment, the conversion equipment is further used for: to the numerical value number in the IMIX message meta-data
According to progress Conversion of measurement unit or decimal place processing.
In one embodiment, the sending device is further used for: being identified based on the goal systems, by the target
Message is sent to corresponding goal systems.
According to the third aspect of the invention we, it is also proposed that a kind of server platform, at message described in aforementioned aspects
Manage device.
In one embodiment, the server platform further include: terminal communications interface, for being led to exterior terminal
Letter, and realize data interaction therebetween;Business processing device is mutually coupled with the terminal communications interface, described for handling
The business access request that terminal communications interface provides, and IMIX message meta-data is generated based on business access request;Periphery
System communication interface is coupled between the business processing device and the message processing apparatus, to interact therebetween
IMIX message meta-data.
Different from the server platform of the prior art, by applying message treatment method and processing unit of the invention, clothes
Be engaged in device platform can efficiently with using different messages format peripheral system interaction message.In addition, in practical applications, service
Device platform can create or modify configuration file according to the difference of peripheral system message format, be suitable for and corresponding periphery system
System is communicated.Therefore, server platform can have better flexibility and scalability.
It is generalized rather than broadly give the feature of the content of present invention above.The supplementary features of the content of present invention will be
Described herein after, which form the themes of the claims in the present invention.It will be appreciated by those skilled in the art that institute can easily be used
Disclosed design and specific embodiment, as the basis for modifying or designing other structures or process, to execute and this hair
Bright identical purpose.It should also be appreciated by one skilled in the art that these equivalent structures are not detached from the appended claims and remember
The spirit and scope of the invention of load.
Specific embodiment
Some examples show and are described in detail below in above-mentioned figure.These figures are not necessarily to scale, and
And it may be overstated in ratio or in signal for clear and/or succinct purpose, certain features of figure and certain views
The earth is shown.It should be appreciated that although following description provides many of the different features for realizing various embodiments not
Same embodiment or example, but can be achieved on other embodiments and/or the variation of structure can be carried out without departing from this public affairs
The range opened.Although these are only example certainly without answering in addition, the specific example of component and arrangement is described below
This is understood to be to limit.In addition, appended drawing reference and/or letter is repeated in the disclosure in each example.The repetition be only for
For the sake of clear, and not relationship of the regulation between each embodiment and/or exemplary configuration discussed itself.
Fig. 1 is shown can be using message treatment method according to an embodiment of the present invention and the server of message processing apparatus
The block diagram of platform 10.
As shown in Figure 1, server platform 10 includes:
Terminal communications interface 11 for being communicated with exterior terminal 13, and realizes data interaction therebetween;
Business processing device 13 is coupled with 11 phase of terminal communications interface, is provided for processing terminal communication interface 11
Business access request, and IMIX message meta-data is generated based on business access request;
Peripheral system communication interface 15 is coupled between business processing device 13 and message processing apparatus 17, with
IMIX message meta-data is interacted therebetween.
In addition, in Fig. 1, further it is shown that flat by terminal communications interface 11 and message processing apparatus 17 and server respectively
The multiple terminals 18 and peripheral system 19 that platform 10 is communicated.Certainly, it will be understood by those of skill in the art that in Fig. 1 eventually
The quantity of end 18 and peripheral system 19 is merely exemplary, and not restrictive.
It should be noted that in Fig. 1, different peripheral systems 19 be by individual message processing apparatus 17 come with clothes
Message processing apparatus 17 that business device platform 10 is communicated namely each is only handled to the transmission of peripheral system 19 coupled with it
Message, and/or receive the message sent by corresponding peripheral system 19.But it will be understood by those skilled in the art that in reality
In, these message processing apparatus 17 be can integrate together, and communicatively coupled with each peripheral system 19, with processing
The message interacted between peripheral system communication interface 15 and each peripheral system 19.
Specifically, the user of server platform 10 can send access request to server platform 10 by terminal 18.Clothes
Device platform 10 be engaged in by the reception of terminal communications interface 11 access request, and transfers to be supplied to business processing device 13.Access is asked
It asks for example, transaction request buys in request, sells request, data inquiry request, etc..Correspondingly, business processing device
It may include one or more business processing processes in 103, these business processing processes can respond access request and be located
Reason.Further, business processing device 13 can according to the actual demand of access request (such as including data requirements believe
Breath) generating IMIX, (Inter-bank Market Information eXchange Protocol, Inter-Bank Market information are handed over
Easy agreement) message meta-data.
Fig. 2 shows show the normal structure of IMIX message.
As shown in Fig. 2, IMIX message includes 3 part of standard message head, message body and standard message tail.Wherein, this disappears
Breath head includes multiple domains and domain block, each domain or domain block indicate respectively type of message mark, message body length, transmission destination,
Message sequence number sends the information such as starting point and sending time.The final position of message ending instruction message can be used for separating multiple
Message, it includes the checksum values for having 3 digits.
Message body is mainly used for describing the business information of application, and the basic unit constituted is similarly domain or domain block.
Wherein, domain or domain block can be combined to form different logical constructions.For example, message body generally includes much shared data
Domain set, i.e. component.Component may be used to indicate that the combination in the domain for the message that one group has certain relationship each other.In reality
In use, component can be extended to corresponding data field set.It can also include repeating groups in message body, domain can repeat
It is repeated several times in group, to transmit array homogeneous data.Therefore, repeating groups are used to represent one group certain relationship each other
The combination of message field can continuously repeatedly occur in the message.
As can be seen that including more domain and domain block in IMIX message, pass through the domain or domain block different to definition, IMIX
The information or data content that message can indicate is also different.Therefore, can be disappeared by configuration file to the IMIX of normal structure
Breath is configured, and is converted by specific message conversion application to it, so that it is suitable for being used to take
The communication being engaged between device platform and specific peripheral system.
Still as shown in Figure 1, server platform 10 passes through after generating IMIX message meta-data by business processing device 13
IMIX message meta-data is sent to peripheral system 19 by peripheral system communication interface 15.Wherein, the IMIX message due to being sent
Metadata has the mark of targeted peripheral system, and therefore, IMIX message meta-data is via the message mutually coupled with the goal systems
Processing unit 17 and send.Period, IMIX message meta-data are handled by the message processing apparatus 17.
Fig. 3 shows the process of message treatment method 100 according to an embodiment of the present invention.It should be appreciated that remembering in this method
The each step carried can execute in a different order, and/or parallel execution.In addition, this method may include additional step
Rapid and/or omission executes the step of showing.The scope of the present invention is not limited in this respect.
Next, being described in detail in conjunction with embodiment of the Fig. 1 and Fig. 3 to message treatment method of the invention.
Firstly, in step s 102, receiving and parsing through IMIX message meta-data, which includes target system
System mark, type of message mark and market category mark.
Just it has been observed that including indicating goal systems mark, type of message mark and market class in IMIX message meta-data
The domain of type mark or domain block.Specifically, goal systems mark is arranged in the message header of IMIX message meta-data, and domain number is
128, domain name is " DeliverToCompID ".Type of message mark is also arranged in message header, and domain number is 35, and domain name is
"MsgType".Type of message is used to define the type for the message transmitted, and different type of message ident values indicates different industry
Business scene, can be defined by IMIX agreement.
Market category is identified for indicating and distinguishing different Service Markets, and the domain number in IMIX message meta-data is
10176.Why using market category identify, be because different cities off field, same type of IMIX message often exists
Using upper different, need to explain message according to different market category marks and specific service logic.
As can be seen that can extract by parsing IMIX message meta-data and obtain goal systems mark, type of message mark
The numerical value of knowledge and market category mark corresponding domain.
Then, in step S104, based on goal systems mark, type of message mark and market category mark, matching
It sets and searches for matched configuration file in document data bank.
Specifically, configuration files database can be set in message processing apparatus 100, also may be provided in server
Other modules of platform 10 or position, or can also be arranged in other computer systems.The configuration files database is used
It is right by this in the corresponding relationship of storage goal systems mark, type of message mark and market category mark and configuration file
It should be related to, server platform 10 can determine configuration file corresponding to the specific IMIX message meta-data of processing.Therefore, some
In example, message treatment method 100 further include: establish configuration files database, which includes configuration file
List, the profile list include that one or more goal systems marks, type of message mark and market category identify and match
Set the corresponding relationship of file.
In practical application, which, which can collect, is combined into a profile list, as shown in table 1, the column
Table includes 4 column, and the 4th is classified as profile data item, is, for example, configuration file for identifying and indexing different configuration files
Title or chained address for configuration file;2nd is classified as goal systems identification data item, for storing different targets
System;3rd is classified as type of message identification data item, for storing different type of messages;4th is classified as market category mark data
, for storing different market categories.It is appreciated that the data structure of table 1 is merely illustrative, its range should not be limited.
Table 1
Configuration file |
Goal systems mark |
Market category mark |
Type of message mark |
Configuration file CF001 |
CDC |
CBT |
AE |
Configuration file CF002 |
CDC |
CR |
AE |
Configuration file CF003 |
CDC |
OR |
AE |
Configuration file CF004 |
CDC |
BFD |
AE |
... |
|
|
... |
For example, configuration file CF001 corresponds to, goal systems is identified as " CDC ", market category is identified as " CBT " and disappears
Cease the identifier combination that type identification is " AE ".In the example shown by table 1, each configuration file corresponds respectively to one group of mark
Combination.It is appreciated that in practical applications, a configuration file may correspond to the combination of the mark of one or more.
It is appreciated that the corresponding relationship and configuration file of configuration file and mark can supplier by server platform 10 or maintenances
Person provides according to practical situations, and respectively, may be stored in configuration files database.
Server platform 10 is after obtaining goal systems mark, type of message mark and market category mark, Ji Keji
Matched configuration file is searched in configuration files database in these marks.
Later, in step s 106, IMIX message meta-data is converted to by target message based on matched configuration file.
Specifically, the step of conversion for example, by domain invalid or unnecessary in IMIX message meta-data or domain
Block filters out, or numeric data therein is carried out Conversion of measurement unit or decimal place processing, etc..Conversion of measurement unit is for example are as follows:
First unit in IMIX message meta-data is " member ", and the unit used in destination message format is " ten thousand yuan ", then initial number
10,000 yuan can be converted into according to 10000 yuan, then the result of unit conversion should be 10-4 powers.For another example IMIX message
The decimal digits of numerical value in metadata may be 5, and the decimal digits of numerical value may be 3 in target message, then,
After conversion, the domain of two-decimal position can be cast out after definition.The step of these conversions, can pass through hardware or software realization.This
Sample, IMIX message meta-data can both be configured according to configuration file, to obtain the target message suitable for target market.
Finally, sending the target message in step S108.Specifically, due to including to refer in IMIX message meta-data
Show the target market mark of target market.Further, it is identified based on the target market, that is, can determine and send the target message
Into required target market.
As can be seen that different from the server platform of the prior art, by applying message treatment method 100 of the invention,
Server platform 10 can efficiently with using different messages format peripheral system interaction message.In addition, in practical applications,
Server platform 10 can create or modify configuration file according to the difference of peripheral system message format, be suitable for it is corresponding
Peripheral system is communicated.Therefore, server platform 10 can have better flexibility and scalability.
Fig. 4 shows the block diagram of message processing apparatus 200 according to an embodiment of the present invention.
As shown in figure 4, the message processing apparatus 200 includes:
Receiving unit 201, for receiving and parsing through IMIX message meta-data, wherein the IMIX message meta-data includes target
System banner, type of message mark and market category mark;
Search unit 203, for matching based on goal systems mark, type of message mark and market category mark
It sets and searches for matched configuration file in document data bank 205;
Converting unit 207, for IMIX message meta-data to be converted to target message based on matched configuration file;And
Transmission unit 209, for sending the target message.
In one embodiment, which further includes configuration files database 205 comprising configuration text
Part list, described the profile list include one or more goal systems marks, type of message mark and market category mark
Know the corresponding relationship with configuration file.
In one embodiment, which is further used for: to the numerical value number in the IMIX message meta-data
According to progress Conversion of measurement unit or decimal place processing.
In one embodiment, the transmission unit 209 is further used for: it is identified based on the goal systems, it will be described
Target message is sent to corresponding goal systems.
Above-mentioned example method and/or device it is at least some soft by the one or more run on a computer processor
Part and/or firmware program are realized.However, including but not limited to specific integrated circuit, programmable logic array and other hardware are set
Standby specialized hardware realization can be also configured to wholly or partly realize illustrative methods and/or dress described here
Some or all set.In addition, including but not limited to distributed treatment or component/object distributed treatment, parallel processing or void
The software realization of the substitution of quasi- machine processing can also be configured to realize illustrative methods and/or system described here.
It shall yet further be noted that example software described here and/or firmware realization are stored on tangible media, example
Such as: magnetic medium (for example, disk or tape);Magneto-optic or optical medium such as CD;Or solid state medium, such as storage card or appearance
Receive one or more read-only (non-volatile) memories, random access memory or other rewritable (volatibility) memories
Other encapsulation.Therefore, example software described here and/or firmware can be stored in tangible media for example above or after
After on the storage medium of the medium of description.Quote specific standard and agreement in description above describe example components and
In the degree of function, it should be appreciated that the range of this patent is not limited to such standard and agreement.For example, for internet and other
Packet switched network transmission (for example, transmission control protocol (TCP)/Internet protocol (IP), User Datagram Protocol (UDP)/
IP, hypertext markup language (HTML), hypertext transfer protocol (HTTP)) each standard represent the example of this field current state
Son.Such Normal periodic by general utility functions having the same, faster and more effectively equivalents replace.Therefore,
Replacement standard and agreement with the same function are contemplated by this patent and are intended to be included in the model of appended claims
Enclose interior equivalents.
The above description of the disclosure is for can be realized any those of ordinary skill of this field or using the present invention.It is right
For those of ordinary skill in the art, the various modifications of the disclosure be will be apparent from, and generality defined herein
Principle can also be applied to other deformations in the case where without deviating from the spirit and scope of the disclosed invention.Therefore, the present invention is simultaneously
It is not limited to example and design as described herein, but it is consistent with the widest scope of principle disclosed herein and novel features.