CN103023810A - Method and system for simulating message processing - Google Patents

Method and system for simulating message processing Download PDF

Info

Publication number
CN103023810A
CN103023810A CN2012105930559A CN201210593055A CN103023810A CN 103023810 A CN103023810 A CN 103023810A CN 2012105930559 A CN2012105930559 A CN 2012105930559A CN 201210593055 A CN201210593055 A CN 201210593055A CN 103023810 A CN103023810 A CN 103023810A
Authority
CN
China
Prior art keywords
message
application message
business
queue table
described application
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
Application number
CN2012105930559A
Other languages
Chinese (zh)
Other versions
CN103023810B (en
Inventor
张径姝
王海龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201210593055.9A priority Critical patent/CN103023810B/en
Publication of CN103023810A publication Critical patent/CN103023810A/en
Application granted granted Critical
Publication of CN103023810B publication Critical patent/CN103023810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a system for simulating message processing. The method includes the steps of S1, determining whether an applying message needs to be forwarded or replied according to types of the applying message and receiving row information, if the applying message needs to be forwarded, executing S2, and if the applying message needs to be replied, executing S3; S2, adding a message head and bill information to contents of the applying message to generate a forwarding message, and placing the forwarding message into a message receiving queue list; and S3, organizing a replying message according to the applying message and local data related with the applying message, and placing the replying message into a message receiving queue list. By the method and the system, forwarding and replying of the transmitted applying message can be simulated, the role of People's Bank or other commercial banks can be simulated, and accordingly circulating and automatic processing of messages are achieved, and updating tests of electronic trade bill systems of commercial banks can be finished smoothly.

Description

A kind of message treatment of simulated method and analogue system
Technical field
The present invention relates to a kind of message treatment of simulated method and analogue system of testing for the e-business draft system to business bank.
Background technology
People's Bank of China has promoted e-business draft system in 2008, the transmission by message between each business bank and the People's Bank of this system realizes the functions such as bill is drawn a bill, honours, endorses, discounted, payment.Along with the e-business draft system of each business bank reaches the standard grade successively, in the system upgrade process, the message support of often need to depend on people bank even adversary business bank could realize comprehensive covering of bill function when test.In e-business draft system, because the circulation of bill relies on the circulation of message to finish fully, so the processing of message is one of processing logic of core in the system, but because there is the internal logic relation in message, need in actual applications repeatedly to carry out message interaction with the People's Bank or other business banks, in the e-business draft system internal test process of business bank, do not have condition like this, can't be by carrying out the close beta work that message interaction comes completion system with the People's Bank or other business banks.
In the e-business draft system internal test process of business bank, prior art provides two kinds of message treatment of simulated methods:
A kind of is that the manual message that carries out is processed, and its advantage is to process flexibly, do not need extra development, but shortcoming is length consuming time, and efficient is low;
Another kind is that part business bank or software company are for this problem, developed the message simulator that is independent of outside the e-business draft system, but in actual application, find, although powerful, the wide application of message simulator, can realize automatically transmitting and replying the function of message, owing to need to split and store message, processing logic be complicated, it is unstable to cause system to process, and usually affects testing efficiency; In addition because the message Relations Among is tightr, sometimes even need the Information Organization of previous message to reply, this just need to have relevant excessive data stored logic, tends to have influence on overall progress and the quality of use.
Summary of the invention
The purpose of this invention is to provide a kind of message treatment of simulated method and analogue system, can't be by carrying out the problem that message interaction is finished test with the People's Bank or other business banks when carrying out the close beta of e-business draft system to solve.
To achieve these goals, the invention provides a kind of message treatment of simulated method, be used for the e-business draft system of business bank is tested, described analogy method may further comprise the steps:
S1: push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system and determine described application message whether needs are transmitted or replied, transmit if need, execution in step S2 then, if need to reply, execution in step S3 then;
S2: content increase heading and billing information generation at described application message E-Packet, and described E-Packeting put into the receiving queue table;
S3: organize the answer message according to described application message and the local data related with it, and described answer message is put into the receiving queue table.
As preferably, step S3 specifically may further comprise the steps:
S301: according to reach the standard grade lower clearance sign and receive the type that row information is determined described answer message of type, the message line of described application message;
S302: the heading of organizing described answer message;
S303: the message body of organizing described answer message according to the type of described answer message, described application message and the local data related with described application message;
S304: heading and the splicing of message body of described answer message are generated described answer message, and put into described receiving queue table.
To achieve these goals, the present invention also provides a kind of message treatment of simulated system, is used for the e-business draft system of business bank is tested, and described analogue system comprises:
Judge module, it is configured to push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system determine described application message whether needs are transmitted or replied;
The generation module that E-Packets, it is configured to when described judge module determines that described application message need to be transmitted, and increases heading and billing information in the content of described application message and generates and E-Packet, and will describedly E-Packet and put into the queue table of receiving telegraph;
Reply the message generation module, it is configured to when described judge module determines that described application message need to be replied, and organizes the answer message according to described application message and the local data related with it, and described answer message is put into the receiving queue table.
Compared with prior art, message treatment of simulated method of the present invention and analogue system have following beneficial effect: by message treatment of simulated method of the present invention and analogue system simulation the application message that sends is transmitted or replied, can simulate the role of the People's Bank or other business banks, thereby realize the circulation of message and automatically processing, to finish smoothly the upgrading test to the e-business draft system of business bank.
Description of drawings
Fig. 1 is the schematic flow sheet of message treatment of simulated method of the present invention;
Fig. 2 is the structural representation of message treatment of simulated system.
Embodiment
Below in conjunction with accompanying drawing specific embodiments of the invention are elaborated, but not as a limitation of the invention.
As shown in Figure 1, message treatment of simulated method of the present invention may further comprise the steps:
S1: push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system and determine described application message whether needs are transmitted or replied, transmit if need, execution in step S2 then, if need to reply, execution in step S3 then;
S2: content increase heading and billing information (such as electronic bill number, the amount of the instrument, date of draft, check drawer's information, accepter's information, receiver information etc.) generation at described application message E-Packet, and described E-Packeting put into the receiving queue table;
S3: organize the answer message according to described application message and the local data related with it, and described answer message is put into the receiving queue table.
Can find all to exist between the message inherent logical relation based on the People's Bank's document " e-business draft system business message processing rule ", this logical relation has determined when sending certain application message, just can predict the message that will receive what type and what content, its content all be application message and the local data base content sent be that basis processing gets.Therefore can be by the standard document " e-business draft system message format standard " of the People's Bank and the message example of standard, take on the answer message that receive according to the set of databases of this locality; Equally also can according to " e-business draft system business message processing rule " assembling E-Packet and be forwarded to the row in front end processor.In the present invention, by transforming the transmission logic of former message, after sending the success of application message, increase follow-up treatment step, according to the logical relation of the application type of message that sends and reception row, judge whether this application message needs to transmit or reply, and transmits if need, then tissue is transmitted after generating and E-Packeting, if need to reply, then judge the type of replying message and organize the content of replying message, reply message thereby generate.Thereby above-mentioned treatment step can partly serve as the role of simulation the People's Bank or other business banks, thereby reaches the smooth circulation of message and automatically processing.
In sending the message processing, adding follow-up treatment step, can be after will applying for that message is pushed to the queue table of transmitting messages, E-Packeting or replying message of also will automatically generating pushes to the receiving queue table, thereby realized automatic forwarding and the answer of message.The advantage of the method is to need not the application message that sends is split and the storage of extra data, message is transmitted and replied in simulation can by the relation of the service logic between the message, carry out the message assembling according to original application message and the local data related with the original application message.For the same content of replying at each in message, such as control informations such as agreement or refusals, also can be controlled by parametrization, control information is left in the parameter list, tissue directly reads when replying message and gets final product.
When the e-business draft system of business bank sent certain application message, follow-up treatment step can be according to the type of application message, the logical relation of reception row, and select two kinds of processing modes: simulation is transmitted and message is replied message.Forwarding is by People's Bank of China application to be forwarded to intrasystem message in the row after sending application for system in the row, for this type of message, need in message, to quote the content of original application message, in the message body, increase simultaneously the contents such as (from database, reading) billing information, and increase new heading.Answer is to manage it application or the answer of sending for system in the row to him, simulates him and manages it or People's Bank of China is replied according to the message of receiving system in the row.For this type of message, need to determine to reply type and the message content of message according to the content of the type of former message, former message and with the content (comprising service related data and relevant configuration information that former message relates to) in the local data base that former message is associated, tissue is replied message.Then will simulate the message of transmitting or replying and put into the receiving queue table.
In the present embodiment, as preferred implementation, step S3 specifically may further comprise the steps:
S301: according to reach the standard grade lower clearance sign and receive the type that row information is determined described answer message of type, the message line of described application message;
S302: the heading of organizing described answer message;
S303: the message body of organizing described answer message according to the type of described answer message, described application message and the local data related with described application message;
S304: heading and the splicing of message body of described answer message are generated described answer message, and put into described receiving queue table.
In step S303, according to different type of messages, organize the message body of XML form, for the part message, can not report according to the Content Organizing of the application message that sends, need in the Query Database therewith message relevant data, according to every Organization of Data message body.
As shown in Figure 2, message treatment of simulated of the present invention system comprises:
Judge module, it is configured to push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system determine described application message whether needs are transmitted or replied;
Generation module E-Packets, it is configured to when described judge module determines that described application message need to be transmitted, content increase heading and billing information (such as electronic bill number, the amount of the instrument, date of draft, check drawer's information, accepter's information, receiver information etc.) generation at described application message E-Packet, and described E-Packeting put into the receiving queue table;
Reply the message generation module, it is configured to when described judge module determines that described application message need to be replied, and replys message according to described application message and the local data tissue related with it, and described answer message is put into the receiving queue table.
Message treatment of simulated of the present invention system carries out subsequent treatment by carrying out message treatment of simulated method of the present invention to the application message.
By message treatment of simulated method of the present invention and analogue system simulation the application message that sends is transmitted or replied, can simulate the role of the People's Bank or other business banks, thereby realize the circulation of message and automatically processing, to finish smoothly the upgrading test to the e-business draft system of business bank.
Above embodiment is exemplary embodiment of the present invention only, is not used in restriction the present invention, and protection scope of the present invention is defined by the claims.Those skilled in the art can make various modifications or be equal to replacement the present invention in essence of the present invention and protection range, this modification or be equal to replacement and also should be considered as dropping in protection scope of the present invention.

Claims (3)

1. a message treatment of simulated method is used for the e-business draft system of business bank is tested, and it is characterized in that described analogy method may further comprise the steps:
S1: push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system and determine described application message whether needs are transmitted or replied, transmit if need, execution in step S2 then, if need to reply, execution in step S3 then;
S2: content increase heading and billing information generation at described application message E-Packet, and described E-Packeting put into the receiving queue table;
S3: organize the answer message according to described application message and the local data related with it, and described answer message is put into the receiving queue table.
2. message treatment of simulated method according to claim 1 is characterized in that step S3 specifically may further comprise the steps:
S301: according to reach the standard grade lower clearance sign and receive the type that row information is determined described answer message of type, the message line of described application message;
S302: the heading of organizing described answer message;
S303: the message body of organizing described answer message according to the type of described answer message, described application message and the local data related with described application message;
S304: heading and the splicing of message body of described answer message are generated described answer message, and put into described receiving queue table.
3. a message treatment of simulated system is used for the e-business draft system of business bank is tested, and it is characterized in that described analogue system comprises:
Judge module, it is configured to push to the type of the application message in the queue table of transmitting messages and receive row information according to described e-business draft system determine described application message whether needs are transmitted or replied;
The generation module that E-Packets, it is configured to when described judge module determines that described application message need to be transmitted, and increases heading and billing information in the content of described application message and generates and E-Packet, and will describedly E-Packet and put into the queue table of receiving telegraph;
Reply the message generation module, it is configured to when described judge module determines that described application message need to be replied, and organizes the answer message according to described application message and the local data related with it, and described answer message is put into the receiving queue table.
CN201210593055.9A 2012-12-31 2012-12-31 A kind of Message processing analogy method and simulation system Active CN103023810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210593055.9A CN103023810B (en) 2012-12-31 2012-12-31 A kind of Message processing analogy method and simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210593055.9A CN103023810B (en) 2012-12-31 2012-12-31 A kind of Message processing analogy method and simulation system

Publications (2)

Publication Number Publication Date
CN103023810A true CN103023810A (en) 2013-04-03
CN103023810B CN103023810B (en) 2017-06-09

Family

ID=47971953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210593055.9A Active CN103023810B (en) 2012-12-31 2012-12-31 A kind of Message processing analogy method and simulation system

Country Status (1)

Country Link
CN (1) CN103023810B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105590215A (en) * 2015-10-29 2016-05-18 中国银联股份有限公司 Device and method for data processing on-line processing of date mistakes between mechanisms
CN105872035A (en) * 2016-03-28 2016-08-17 中国建设银行股份有限公司 System and method for processing multi-channel messages
CN106339307A (en) * 2015-07-08 2017-01-18 南京艾科朗克信息科技有限公司 Futures exchange transaction front-end system simulator

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101123454A (en) * 2007-09-21 2008-02-13 北京交通大学 Data transmission method and system for mobile phone bank union card based on Bluetooth technology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101123454A (en) * 2007-09-21 2008-02-13 北京交通大学 Data transmission method and system for mobile phone bank union card based on Bluetooth technology

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339307A (en) * 2015-07-08 2017-01-18 南京艾科朗克信息科技有限公司 Futures exchange transaction front-end system simulator
CN106339307B (en) * 2015-07-08 2019-04-12 南京艾科朗克信息科技有限公司 A kind of futures exchange's transaction front-end system simulator
CN105590215A (en) * 2015-10-29 2016-05-18 中国银联股份有限公司 Device and method for data processing on-line processing of date mistakes between mechanisms
CN105590215B (en) * 2015-10-29 2019-11-22 中国银联股份有限公司 The Data Handling Equipment And Method of each inter-agency data error of online process
CN105872035A (en) * 2016-03-28 2016-08-17 中国建设银行股份有限公司 System and method for processing multi-channel messages

Also Published As

Publication number Publication date
CN103023810B (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
EP3617896A1 (en) Method and apparatus for intelligent response
CN112783793B (en) Automatic interface test system and method
CN103581336B (en) Service flow scheduling method and system based on cloud computing platform
CN110348219A (en) Version comparison method, system, computer equipment and readable storage medium storing program for executing
CN106649638B (en) Big data acquisition method
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN109710905A (en) Document synergic editing method, device, storage medium and electronic equipment
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN110222323A (en) A kind of voucher generation method, device, readable storage medium storing program for executing and terminal device
CN1645824B (en) Automated generation of message exchange pattern simulation code
CN111897890B (en) Financial business processing method and device
CN107341235A (en) Report form inquiring method, device, medium and electronic equipment
CN110134596A (en) The generation method and terminal device of test document
CN103023810A (en) Method and system for simulating message processing
CN109547322A (en) System prompt control method, device, computer and computer readable storage medium
CN109993562B (en) Satisfaction degree simulation method and device and terminal equipment
CN112800063A (en) Automatic label passing method and device based on data structure
CN112417122A (en) Multi-turn question and answer method and device, computer readable storage medium and electronic equipment
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN104318433A (en) Automatic recharging method and system of citizen card
CN106649874A (en) Data interaction method, device and system
US9424341B2 (en) Information management systems and methods
CN113837870B (en) Financial risk data approval method and device
CN110515604A (en) The acquisition methods and device of the executable program file of verification environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant