Summary of the invention
Visible, existing server platform can not process the message that multiple external system provides efficiently, and dirigibility and extendability poor.
Therefore, for the problems referred to above, according to a first aspect of the invention, propose a kind of message treatment method, comprising: receive and resolve IMIX message meta-data, described IMIX message meta-data comprises goal systems mark, type of message mark and market category mark; Based on described goal systems mark, type of message mark and market category mark, in configuration files database, search for the configuration file of coupling; Described IMIX message meta-data is converted to target message by the configuration file based on described coupling; Send described target message.
In one embodiment, described method also comprises: set up configuration files database, described configuration files database comprises the profile list, and described the profile list comprises one or more goal systems mark, type of message mark and market category and identifies the corresponding relation with configuration file.
In one embodiment, described switch process comprises further: carry out Conversion of measurement unit or decimal place process to the numeric data in described IMIX message meta-data.
In one embodiment, the step of described transmission message comprises further: identify based on described goal systems, described target message is sent to corresponding goal systems.
According to a second aspect of the invention, also proposed a kind of message processing apparatus, comprising: receiving element, for receiving and resolving IMIX message meta-data, described IMIX message meta-data comprises goal systems mark, type of message mark and market category mark; Search unit, for based on described goal systems mark, type of message mark and market category mark, searches for the configuration file of coupling in configuration files database; Converting unit, is converted to target message for the configuration file based on described coupling by described IMIX message meta-data; And transmitting element, for sending described target message.
In one embodiment, described device also comprises: configuration files database, and it comprises the profile list, and described the profile list comprises one or more goal systems mark, type of message mark and market category and identifies the corresponding relation with configuration file.
In one embodiment, described conversion equipment is further used for: carry out Conversion of measurement unit or decimal place process to the numeric data in described IMIX message meta-data.
In one embodiment, described dispensing device is further used for: identify based on described goal systems, described target message is sent to corresponding goal systems.
According to a third aspect of the invention we, also proposed a kind of server platform, comprise the message processing apparatus described in aforementioned aspect.
In one embodiment, described server platform also comprises: terminal communications interface, for communicating with exterior terminal, and realizes data interaction therebetween; Business processing device, it couples mutually with described terminal communications interface, for the treatment of the Operational Visit request that described terminal communications interface provides, and generates IMIX message meta-data based on described Operational Visit request; Peripheral system communication interface, it is coupled between described business processing device and described message processing apparatus, with mutual IMIX message meta-data betwixt.
Be different from the server platform of prior art, by applying message treatment method of the present invention and treating apparatus, server platform can efficiently with the peripheral system interaction message adopting different messages form.In addition, in actual applications, server platform can create according to the difference of peripheral system message format or revise configuration file, to be suitable for communicating with corresponding peripheral system.Therefore, server platform can have better dirigibility and extensibility.
Summarize above but not broadly given the feature of content of the present invention.After this supplementary features of content of the present invention will describe, and which form the theme of the claims in the present invention.It will be appreciated by those skilled in the art that and can easily use disclosed design and embodiment, as amendment or the basis designing other structures or process, to perform the object identical with the present invention.Those skilled in the art it is also understood that these equivalent structures do not depart from the spirit and scope of the invention recorded in appended claims.
Embodiment
Some examples are shown in above-mentioned figure and described in detail below.These figure might not in proportion, and for clear and/or succinct object, some view of some characteristic sum of figure may be illustrated large in ratio or in signal.Although should be appreciated that following instructions provides many different embodiments or the example of the different feature for realizing various embodiment, other embodiment can be realized and/or can the change of structure be carried out and not depart from the scope of the present disclosure.In addition, although described below is the specific example of parts and layout, these are certainly only example and should be understood to be restriction.In addition, the disclosure is repeated Reference numeral and/or letter in each example.This repeats to be only for the sake of clarity, and not itself is defined in the relation between each discussed embodiment and/or exemplary configuration.
Fig. 1 shows the block diagram can applied according to the message treatment method of the embodiment of the present invention and the server platform 10 of message processing apparatus.
As shown in Figure 1, server platform 10 comprises:
Terminal communications interface 11, for communicating with exterior terminal 13, and realizes data interaction therebetween;
Business processing device 13, it couples mutually with terminal communications interface 11, for the treatment of the Operational Visit request that terminal communications interface 11 provides, and generates IMIX message meta-data based on this Operational Visit request;
Peripheral system communication interface 15, it is coupled between business processing device 13 and message processing apparatus 17, with mutual IMIX message meta-data betwixt.
In addition, in FIG, also show and carry out multiple terminals 18 of communicating and peripheral system 19 respectively by terminal communications interface 11 and message processing apparatus 17 and server platform 10.Certainly, it will be understood by those of skill in the art that the quantity of terminal 18 and peripheral system 19 in Fig. 1 is only illustrative, and not restrictive.
It should be noted that, in FIG, different peripheral systems 19 carries out communicating with server platform 10 by independent message processing apparatus 17, also namely each message processing apparatus 17 only processes the message sent to the peripheral system 19 coupled with it, and/or receives the message of being sent by corresponding peripheral system 19.But, it will be understood by those skilled in the art that in actual applications, these message processing apparatus 17 can integrate, and couple communicatedly with each peripheral system 19, to process message mutual between peripheral system communication interface 15 and each peripheral system 19.
Particularly, the user of server platform 10 can send request of access by terminal 18 to server platform 10.Server platform 10 receives this request of access by terminal communications interface 11, and then is supplied to business processing device 13.Request of access such as comprises: transaction request, buy in request, sell request, data inquiry request, etc.Correspondingly, can comprise one or more business processing process in business processing device 103, these business processing processes can respond request of access and to go forward side by side row relax.Further, business processing device 13 can generate IMIX (Inter-bank Market Information eXchange Protocol, Inter-Bank Market information trading agreement) message meta-data according to the actual demand of request of access (such as comprising demand data information).
Fig. 2 shows the normal structure of IMIX message.
As shown in Figure 2, IMIX message comprises standard message head, message body and standard message tail 3 part.Wherein, this message header comprises multiple territory and territory block, and each territory or territory block indicate the information such as type of message mark, message body length, sending destination, message sequence number, transmission starting point and transmitting time respectively.The final position of message ending Indication message, it can be used for separating multiple message, and it includes the checksum value of 3 figure places.
Message body is mainly used in the business information describing application, and its elementary cell formed is similarly territory or territory block.Wherein, territory or territory block can combine to form different logical organizations.Such as, message body generally includes a lot of data field set shared, i.e. assembly.Assembly can be used to represent the combination that a group has the territory of the message of certain relation each other.In actual use, assembly can be extended to corresponding data field set.Can also include repeating groups in message body, territory repeatedly can be repeated in repeating groups, to transmit array homogeneous data.Therefore, repeating groups is used to represent one group has the combination of the message field of certain relation to occur in the message repeatedly continuously each other.
Can find out, in IMIX message, include more territory and territory block, by definition different territory or territory block, the information that IMIX message can represent or data content also different.Therefore, can be configured by the IMIX message of configuration file to normal structure, and by specific message conversion application program, it be changed, thus make it be suitable for being used to the communication between server platform and specific peripheral system.
Still as shown in Figure 1, 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 by server platform 10.Wherein, because the IMIX message meta-data be sent out has the mark of targeted peripheral system, therefore, IMIX message meta-data sends via the message processing apparatus 17 coupled mutually with this goal systems.Period, IMIX message meta-data is processed by this message processing apparatus 17.
Fig. 3 shows the flow process of the message treatment method 100 according to the embodiment of the present invention.Should be appreciated that each step recorded in the method can perform according to different orders, and/or executed in parallel.In addition, the method can comprise additional step and/or omit the step shown in performing.Scope of the present invention is unrestricted in this regard.
Next, composition graphs 1 and the embodiment of Fig. 3 to message treatment method of the present invention describe in detail.
First, in step s 102, receive and resolve IMIX message meta-data, this IMIX message meta-data comprises goal systems mark, type of message mark and market category mark.
As aforementioned, IMIX message meta-data comprises the territory or territory block that represent goal systems mark, type of message mark and market category mark.Particularly, goal systems mark is arranged in the message header of IMIX message meta-data, and its territory number is 128, and domain name is " DeliverToCompID ".Type of message mark is also arranged in message header, and its territory number is 35, and domain name is " MsgType ".Type of message is for defining the type of the message be transmitted, and different type of message ident values represents different business scenarios, and it can be defined by IMIX agreement.
Market category mark is for representing and distinguishing different Service Market, and its territory number in IMIX message meta-data is 10176.Why adopting market category to identify, is because in different cities after the match, and the IMIX message back of same type, toward different in application, needs to make an explanation to message according to different market categories mark and concrete service logic.
Can find out, by resolving IMIX message meta-data, can extract and obtain the numerical value that goal systems mark, type of message mark and market category identify corresponding domain.
Then, in step S104, based target system banner, type of message mark and market category mark, search for the configuration file of coupling in configuration files database.
Particularly, configuration files database can be set up in message processing apparatus 100, also may be provided in other modules or the position of server platform 10, or also can be arranged in other computer systems.This configuration files database identifies the corresponding relation with configuration file for storing goal systems mark, type of message mark and market category, by this corresponding relation, server platform 10 can be determined to process the configuration file corresponding to specific IMIX message meta-data.Therefore, in some instances, message treatment method 100 also comprises: set up configuration files database, this configuration files database comprises the profile list, and the profile list comprises one or more goal systems mark, type of message mark and market category and identifies the corresponding relation with configuration file.
In practical application, it is a profile list that this configuration files database can be gathered, as shown in table 1, this list comprises 4 row, 4th is classified as profile data item, and for identifying the configuration file that also index is different, it is such as the title of configuration file or the chained address for configuration file; 2nd is classified as goal systems identification data item, for storing different goal systems; 3rd is classified as type of message identification data item, for storing different type of messages; 4th is classified as market category identification data item, for storing different market categories.Be appreciated that the data structure of table 1 is only example, should not limit its scope.
Table 1
Configuration file |
Goal systems identifies |
Market category identifies |
Type of message identifies |
Configuration file CF001 |
CDC |
CBT |
AE |
Configuration file CF002 |
CDC |
CR |
AE |
Configuration file CF003 |
CDC |
OR |
AE |
Configuration file CF004 |
CDC |
BFD |
AE |
... |
? |
? |
... |
Such as, configuration file CF001 corresponds to that goal systems is designated " CDC ", market category is designated " CBT " and type of message is designated the identifier combination of " AE ".In example shown by table 1, each configuration file corresponds respectively to the combination of one group of mark.Be appreciated that in actual applications, configuration file also can correspond to the combination of the mark of or more.Be appreciated that corresponding relation and the configuration file of configuration file and mark can be provided according to practical situations by the supplier of server platform 10 or guardian, and be correspondingly stored in configuration files database.
Server platform 10, after acquisition goal systems mark, type of message mark and market category mark, can be identified in configuration files database based on these configuration file searching for coupling.
Afterwards, in step s 106, IMIX message meta-data is converted to target message by the configuration file based on coupling.
Particularly, the step of described conversion such as comprises: filtered out in territory invalid or unnecessary in IMIX message meta-data or territory block, or numeric data is wherein carried out Conversion of measurement unit or decimal place process, etc.Conversion of measurement unit is such as: the first unit in IMIX message meta-data is " unit ", and the unit adopted in destination message format is " ten thousand yuan ", then namely primary data 10000 yuan can be converted into 10,000 yuan, and so the result of unit conversion should be-4 powers of 10.Again such as, the decimal digits of the numerical value in IMIX message meta-data may be 5, and in target message, the decimal digits of numerical value may be 3, and so, after conversion, after definition, the territory of two-decimal position can be cast out.The step of these conversions can pass through hardware or software simulating.Like this, IMIX message meta-data both can be configured according to configuration file, thus obtained the target message being suitable for target market.
Finally, in step S108, send this target message.Particularly, owing to including the target market mark in indicating target market in IMIX message meta-data.Further, identify based on this target market, this target message can be determined to be sent in required target market.
Can find out, be different from the server platform of prior art, by applying message treatment method 100 of the present invention, server platform 10 can efficiently with the peripheral system interaction message adopting different messages form.In addition, in actual applications, server platform 10 can create according to the difference of peripheral system message format or revise configuration file, to be suitable for communicating with corresponding peripheral system.Therefore, server platform 10 can have better dirigibility and extensibility.
Fig. 4 shows the block diagram of the message processing apparatus 200 according to the embodiment of the present invention.
As shown in Figure 4, this message processing apparatus 200 comprises:
Receiving element 201, for receiving and resolving IMIX message meta-data, wherein this IMIX message meta-data comprises goal systems mark, type of message mark and market category mark;
Search unit 203, for based on this goal systems mark, type of message mark and market category mark, searches for the configuration file of coupling in configuration files database 205;
Converting unit 207, for being converted to target message based on the configuration file of coupling by IMIX message meta-data; And
Transmitting element 209, for sending this target message.
In one embodiment, this message processing apparatus 200 also comprises configuration files database 205, it comprises the profile list, and described the profile list comprises one or more goal systems mark, type of message mark and market category and identifies the corresponding relation with configuration file.
In one embodiment, this converting unit 207 is further used for: carry out Conversion of measurement unit or decimal place process to the numeric data in described IMIX message meta-data.
In one embodiment, described transmitting element 209 is further used for: identify based on described goal systems, described target message is sent to corresponding goal systems.
At least some of above-mentioned illustrative methods and/or device is realized by the one or more software run on a computer processor and/or firmware program.But, include but not limited to that the specialized hardware of special IC, programmable logic array and other hardware device realizes can being constructed to equally integrally or partly realize illustrative methods described here and/or some or all of device.In addition, include but not limited to distributed treatment or component/object distributed treatment, the software simulating substituted of parallel processing or virtual machine process also can be constructed to realize illustrative methods described here and/or system.
It shall yet further be noted that example software described here and/or firmware realize being stored on tangible media, such as: magnetic medium (such as, disk or tape); Magneto-optic or optical medium such as CD; Or solid state medium, such as storage card or hold one or more read-only (non-volatile) storer, random access memory or other rewritable (volatibility) storer other encapsulation.Therefore, example software described here and/or firmware can be stored in tangible media such as above or on the storage medium of the medium of follow-up description.Superincumbent instructions quotes specific standard and agreement in the degree describing example components and function, should be understood that the scope of this patent is not limited to such standard and agreement.Such as, the example of this area current state is represented for internet and each standard of other packet switched network transmission (such as, transmission control protocol (TCP)/Internet protocol (IP), User Datagram Protoco (UDP) (UDP)/IP, HTML (Hypertext Markup Language) (HTML), HTML (Hypertext Markup Language) (HTTP)).Such Normal periodic ground is by having identical general utility functions, faster and more effective equivalents replacement.Therefore, have the replacement standard of identical function and agreement by this patent be susceptible to and be intended to the equivalents that comprises within the scope of the appended claims.
Above description of the present disclosure is for enabling any those of ordinary skill of this area realize or use the present invention.To those skilled in the art, various amendment of the present disclosure is all apparent, and general principle defined herein also can be applied to other distortion when not departing from spirit of the present invention and protection domain.Therefore, the present invention is not limited to example as herein described and design, but consistent with the widest scope of principle disclosed herein and novel features.