CN104318475A - Method and device for obtaining analog receipt - Google Patents

Method and device for obtaining analog receipt Download PDF

Info

Publication number
CN104318475A
CN104318475A CN201410601562.1A CN201410601562A CN104318475A CN 104318475 A CN104318475 A CN 104318475A CN 201410601562 A CN201410601562 A CN 201410601562A CN 104318475 A CN104318475 A CN 104318475A
Authority
CN
China
Prior art keywords
message
receipt
simulation
configuration file
tested
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
CN201410601562.1A
Other languages
Chinese (zh)
Other versions
CN104318475B (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 CN201410601562.1A priority Critical patent/CN104318475B/en
Publication of CN104318475A publication Critical patent/CN104318475A/en
Application granted granted Critical
Publication of CN104318475B publication Critical patent/CN104318475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and device for obtaining an analog receipt. The method includes the steps that a VSBS calls a VSBT to monitor MQ information sent by a financial service to be tested, wherein the MQ information includes an MT message; a batch processing initialization process is called to read a configuration file of the financial service to be tested; according to the configuration file and the content of the MT message, a corresponding java module is called to process the MT message and obtain the analog receipt, and the analog receipt has the same function as a test bank identifier code (BIC). Accordingly, the financial service to be tested is tested by means of the VSBS, and the VSBT is called to monitor the MQ information sent by the financial service to be tested; according to the configuration file and the content of the MT message included by the MQ information, the analog receipt is obtained to take the place of a BIC test function for testing, so that network use cost caused due to the fact that connection of an SWIFT test network is needed is eliminated, and test cost is reduced.

Description

A kind of method and apparatus obtaining simulation receipt
Technical field
The present invention relates to financial field, particularly relate to a kind of method and apparatus obtaining simulation receipt.
Background technology
Bank, when processing the financial business of electronization, all needs to use Financial Telecommunication association of global cooperative bank (Society for Worldwide Interbank Financial Telecommunications, SWIFT) network complete operation.
For new research and development or unissued financial business, bank needs first to carry out test to determine that these financial business whether can true(-)running on SWIFT network, realizes due function, and these financial business only just can drop into actual motion testing successfully.
The main SWIFT test network that uses tests these new research and development or unissued financial business at present, and carrying out in test process, the bank identification number (Bank Identification Code, BIC) used is needed all to replace with the test b IC in SWIFT test network.But bank connects SWIFT test network test financial business and needs to pay Web vector graphic expense, improves testing cost.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of method and apparatus of simulating receipt, make not need to connect virtual SWIFT network and also can obtain test b IC, completing and test and saved testing cost.
The embodiment of the invention discloses following technical scheme:
Obtain a method for simulation receipt, described method comprises:
VSBS calls the MQ message that the described financial business to be tested of VSBT monitoring sends, and described MQ message comprises MT message;
Described VSBS calls the configuration file that batch processing initialize process reads financial business to be tested;
Described VSBS, according to the content of described configuration file and described MT message, calls corresponding java module and processes described MT message, obtains simulating receipt, and described simulation receipt has and the identical function of test bank identification number BIC.
Preferably,
Described java module comprises javabean and java.util.
Preferably, described VSBS calls corresponding java module and processes described MT message, comprising:
Described VSBS calls the string processing that corresponding java module is correlated with to described MT message.
Preferably,
The attribute of the described simulation receipt obtained is identical with the attribute of the simulation receipt that described configuration file comprises.
Obtain a device for simulation receipt, comprising:
Monitoring unit, monitor the message queue MQ message of described financial business transmission to be tested for calling Financial Telecommunication association of virtual global cooperative bank batch processing thread VSBT, described MQ message comprises type of message MT message;
Reading unit, reads the configuration file of financial business to be tested for calling batch processing initialization (Batch Init) process;
Processing unit, for the content according to described configuration file and described MT message, call corresponding java module and process described MT message, obtain simulating receipt, described simulation receipt has the identical function with test bank identification number BIC.
Preferably,
Described java module comprises javabean and java.util.
Preferably,
Described processing unit, specifically for calling the string processing that corresponding java module is correlated with to described MT message.
Preferably,
The attribute of the described simulation receipt obtained by described processing unit is identical with the attribute of the simulation receipt that described configuration file comprises.
As can be seen from technique scheme, described financial business to be tested is tested by using the batch processing service of Financial Telecommunication association of virtual global cooperative bank, call the MQ message that described in Financial Telecommunication association of virtual global cooperative bank batch processing thread monitor, financial business to be tested sends, the content of the MT message comprised according to configuration file and described MQ message is called corresponding java module and is processed described MT message, obtain simulating receipt, the function of test b IC is replaced to test with described simulation receipt, thus when testing described financial business to be tested, no longer because need network with described SWIFT test network and pay Web vector graphic expense, decrease testing cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of method flow diagram obtaining simulation receipt that Fig. 1 provides for the embodiment of the present invention;
A kind of structure drawing of device obtaining simulation receipt that Fig. 2 provides for the embodiment of the present invention.
Embodiment
Financial Telecommunication association of a kind of virtual global cooperative bank of embodiment of the present invention batch processing service (Virtual Swift Batch Servlet, VSBS) simulate SWITF test network to test financial business to be tested, when when testing financial business to be tested, by calling Financial Telecommunication association of virtual global cooperative bank batch processing thread (Virtual Swift Batch Thread, VSBT) message queue (the Message Queue that described financial business to be tested sends is monitored, MQ) message, according to type of message (the Message Type included by configuration file and described MQ message, MT) content of message is called corresponding java module and is processed, obtain simulating receipt by result, when test needs to use test b IC, described simulation receipt is used to complete the identical function of described test b IC to replace described test b IC, complete test.Thus when testing described financial business to be tested, no longer because need network with described SWIFT test network and pay Web vector graphic expense, decrease testing cost.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
Refer to Fig. 1, its a kind of method flow diagram obtaining simulation receipt provided for the embodiment of the present invention, described method comprises:
S101:VSBS calls the MQ message that the described financial business to be tested of VSBT monitoring sends, and described MQ message comprises MT message.
S102: described VSBS calls the configuration file that batch processing initialize process reads financial business to be tested.
Described configuration file is the configuration file for obtaining simulating receipt, and required related request and the information simulating receipt of configuration in described configuration file, it mainly comprises the attribute of simulation receipt, the analysis mode etc. of MT message.
Be described for the attribute of simulating receipt:
Such as, if the attribute of the simulation receipt in the configuration file of the financial business shown to be tested that described VSBS reads is acknowledge character (Acknowledgement, ACK) state, the attribute of the simulation receipt of the described financial business to be tested of correspondence so obtained at S103 is receipt ACK.If the attribute of the simulation receipt in described configuration file is negative response (Negative Acknowledgment, NAK) state, the attribute of the simulation receipt of the described financial business to be tested of correspondence so obtained at S103 is receipt NAK.The receipt attribute of the simulation receipt in described configuration file can be arranged in advance, when in the process in the described financial business to be tested of test, when test needs to obtain receipt ACK, the simulation receipt attribute so just arranged in described configuration file is ACK state, when test needs to obtain receipt NAK, the simulation receipt attribute so just arranged in described configuration file is NAK state.That is, optionally, the attribute of the described simulation receipt obtained is identical with the attribute of the simulation receipt that described configuration file comprises.
Note: ACK and NAK is the receipt content of use specific in SWIFT.
S103: described VSBS according to the content of described configuration file and described MT message, and call corresponding java module and process described MT message, obtain simulating receipt, described simulation receipt has the identical function with test b IC.
The message-oriented middleware that MQ message provides for IBM, for transmitting MT message, in the embodiment of the present application, does not limit the mode reading MT message content in described MQ message.
The MT message of configuration file and acquisition can be passed through, return as requested and simulate receipt accordingly.
Be described for embody rule scene, can according to described configuration file, as being configured to ACK, the MT message simulation according to obtaining returns ACK receipt (the standard success receipt of SWIFT message); Or, according to described configuration file, as being configured to NAK, NAK receipt (the standard failure receipt of SWIFT message) can be returned according to the MT message simulation obtained; Or, can according to described configuration file, as being configured to ERROR, according to the MT message obtained, simulation returns error message (for limit scene); Or, can according to described configuration file, as being configured to FINCOPY, simulation returns ACK receipt and Central Bank's receipt message (system message of 012/019SWIFT message); Or, can according to described configuration file, as being configured to SWIFTTEST, according to the MT message obtained, after replacing relevant information, for first line of a couplet SWIFT test network.
Optionally, described java module mainly comprises javabean and java.util.Can certainly be other java modules.
Optionally, the string processing that java module is correlated with to described MT message is called.
The java module of the correspondence that described VSBS calls, carries out respective handling by the relevant information in configuration file to the MT message content got.
Visible, described financial business to be tested is tested by using the batch processing service of Financial Telecommunication association of virtual global cooperative bank, call the MQ message that described in Financial Telecommunication association of virtual global cooperative bank batch processing thread monitor, financial business to be tested sends, the content of the MT message comprised according to configuration file and described MQ message is called corresponding java module and is processed described MT message, obtain simulating receipt, the function of test b IC is replaced to test with described simulation receipt, thus when testing described financial business to be tested, no longer because need network with described SWIFT test network and pay Web vector graphic expense, decrease testing cost.
Embodiment two
The present embodiment is the device embodiment of corresponding embodiment one, a kind of structure drawing of device obtaining simulation receipt that Fig. 2 provides for the embodiment of the present invention, and as shown in Figure 2, the described device 200 obtaining simulation receipt comprises:
Monitoring unit 201, for calling the MQ message that the described financial business to be tested of VSBT monitoring sends, described MQ message comprises MT message.
Reading unit 202, reads the configuration file of financial business to be tested for calling batch processing initialize process.
Described configuration file is the configuration file for obtaining simulating receipt, and required related request and the information simulating receipt of configuration in described configuration file, it mainly comprises the attribute of simulation receipt, the analysis mode etc. of MT message.
Be described for the attribute of simulating receipt:
Such as, if the attribute of the simulation receipt in the configuration file of financial business shown to be tested that reads of described reading unit 202 is ACK state, the attribute of the simulation receipt of the described financial business to be tested of correspondence so obtained at described processing unit 203 is receipt ACK.If the attribute of the simulation receipt in described configuration file is NAK state, the attribute of the simulation receipt of the described financial business to be tested of correspondence so obtained at described processing unit 203 is receipt NAK.The receipt attribute of the simulation receipt in described configuration file can be arranged in advance, when in the process in the described financial business to be tested of test, when test needs to obtain receipt ACK, the simulation receipt attribute so just arranged in described configuration file is ACK state, when test needs to obtain receipt NAK, the simulation receipt attribute so just arranged in described configuration file is NAK state.That is, optionally, the attribute of the described simulation receipt obtained by described processing unit is identical with the attribute of the simulation receipt that described configuration file comprises.
Note: ACK and NAK is the receipt content of use specific in SWIFT.
Processing unit 203, for the content according to described configuration file and described MT message, call corresponding java module and process described MT message, obtain simulating receipt, described simulation receipt has the identical function with test bank identification number BIC.
The message-oriented middleware that MQ message provides for IBM, for transmitting MT message, in the embodiment of the present application, does not limit the mode reading MT message content in described MQ message.
The MT message of configuration file and acquisition can be passed through, return as requested and simulate receipt accordingly.
Be described for embody rule scene, can according to described configuration file, as being configured to ACK, the MT message simulation according to obtaining returns ACK receipt (the standard success receipt of SWIFT message); Or, according to described configuration file, as being configured to NAK, NAK receipt (the standard failure receipt of SWIFT message) can be returned according to the MT message simulation obtained; Or, can according to described configuration file, as being configured to ERROR, according to the MT message obtained, simulation returns error message (for limit scene); Or, can according to described configuration file, as being configured to FINCOPY, simulation returns ACK receipt and Central Bank's receipt message (system message of 012/019SWIFT message); Or, can according to described configuration file, as being configured to SWIFTTEST, according to the MT message obtained, after replacing relevant information, for first line of a couplet SWIFT test network.
Optionally, described java module comprises javabean and java.util.Can certainly be other java modules.
Optionally, described processing unit 203, specifically for calling the string processing that corresponding java module is correlated with to described MT message.
Visible, described financial business to be tested is tested by using the batch processing service of Financial Telecommunication association of virtual global cooperative bank, call the MQ message that described in Financial Telecommunication association of virtual global cooperative bank batch processing thread monitor, financial business to be tested sends, the content of the MT message comprised according to configuration file and described MQ message is called corresponding java module and is processed described MT message, obtain simulating receipt, the function of test b IC is replaced to test with described simulation receipt, thus when testing described financial business to be tested, no longer because need network with described SWIFT test network and pay Web vector graphic expense, decrease testing cost.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that all or part of step in above-described embodiment method can add general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network communication equipment such as such as media gateway) perform the method described in some part of each embodiment of the present invention or embodiment.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for equipment and system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Equipment and system embodiment described above is only schematic, the unit wherein illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above is only the preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. obtain a method for simulation receipt, it is characterized in that, described method comprises:
Financial Telecommunication association of virtual global cooperative bank batch processing service VSBS calls the message queue MQ message that Financial Telecommunication association of virtual global cooperative bank batch processing thread VSBT monitors described financial business transmission to be tested, and described MQ message comprises type of message MT message;
Described VSBS calls the configuration file that batch processing initialization (Batch Init) process reads financial business to be tested;
Described VSBS, according to the content of described configuration file and described MT message, calls corresponding java module and processes described MT message, obtains simulating receipt, and described simulation receipt has and the identical function of test bank identification number BIC.
2. method according to claim 1, is characterized in that,
Described java module comprises javabean and java.util.
3. method according to claim 1 and 2, is characterized in that, described VSBS calls corresponding java module and processes described MT message, comprising:
Described VSBS calls the string processing that corresponding java module is correlated with to described MT message.
4. method according to claim 1 and 2, is characterized in that,
The attribute of the described simulation receipt obtained is identical with the attribute of the simulation receipt that described configuration file comprises.
5. obtain a device for simulation receipt, it is characterized in that, comprising:
Monitoring unit, monitor the message queue MQ message of described financial business transmission to be tested for calling Financial Telecommunication association of virtual global cooperative bank batch processing thread VSBT, described MQ message comprises type of message MT message;
Reading unit, reads the configuration file of financial business to be tested for calling batch processing initialization (Batch Init) process;
Processing unit, for the content according to described configuration file and described MT message, call corresponding java module and process described MT message, obtain simulating receipt, described simulation receipt has the identical function with test bank identification number BIC.
6. device according to claim 5, is characterized in that,
Described java module comprises javabean and java.util.
7. the device according to claim 5 or 6, is characterized in that,
Described processing unit, specifically for calling the string processing that corresponding java module is correlated with to described MT message.
8. the device according to claim 5 or 6, is characterized in that,
The attribute of the described simulation receipt obtained by described processing unit is identical with the attribute of the simulation receipt that described configuration file comprises.
CN201410601562.1A 2014-10-30 2014-10-30 A kind of method and apparatus for obtaining simulation receipt Active CN104318475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410601562.1A CN104318475B (en) 2014-10-30 2014-10-30 A kind of method and apparatus for obtaining simulation receipt

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410601562.1A CN104318475B (en) 2014-10-30 2014-10-30 A kind of method and apparatus for obtaining simulation receipt

Publications (2)

Publication Number Publication Date
CN104318475A true CN104318475A (en) 2015-01-28
CN104318475B CN104318475B (en) 2018-05-25

Family

ID=52373701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410601562.1A Active CN104318475B (en) 2014-10-30 2014-10-30 A kind of method and apparatus for obtaining simulation receipt

Country Status (1)

Country Link
CN (1) CN104318475B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661853A (en) * 2019-09-06 2020-01-07 深圳壹账通智能科技有限公司 Data proxy method, device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003107137A2 (en) * 2002-06-18 2003-12-24 Phil Kongtcheu Methods, systems and computer program products to facilitate the formation and trading of derivatives contracts
US20070294224A1 (en) * 2006-06-16 2007-12-20 Jean-Jacques Heler Tracking discrete elements of distributed transactions
CN101344955A (en) * 2008-08-26 2009-01-14 中国工商银行股份有限公司 Bank message processing method and apparatus
CN102254287A (en) * 2011-06-27 2011-11-23 中国建设银行股份有限公司 Bank business mobile processing system and method
CN202143092U (en) * 2011-03-18 2012-02-08 中国工商银行股份有限公司 Message processing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003107137A2 (en) * 2002-06-18 2003-12-24 Phil Kongtcheu Methods, systems and computer program products to facilitate the formation and trading of derivatives contracts
US20070294224A1 (en) * 2006-06-16 2007-12-20 Jean-Jacques Heler Tracking discrete elements of distributed transactions
CN101344955A (en) * 2008-08-26 2009-01-14 中国工商银行股份有限公司 Bank message processing method and apparatus
CN202143092U (en) * 2011-03-18 2012-02-08 中国工商银行股份有限公司 Message processing system
CN102254287A (en) * 2011-06-27 2011-11-23 中国建设银行股份有限公司 Bank business mobile processing system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661853A (en) * 2019-09-06 2020-01-07 深圳壹账通智能科技有限公司 Data proxy method, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN104318475B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
US11269705B2 (en) Method and apparatus for outputting information
CN108038039A (en) The method and micro services system of record log
CN106789353A (en) The method and system of orientation problem between client and service end
US9749039B1 (en) Portable connection diagnostic device
CN110231998A (en) Detection method, device and the storage medium of distributed timing task
CN106454403B (en) Data display method, equipment and system
CN106844114A (en) The monitoring method and device of interface testing stability
CN110620806B (en) Information generation method and device
CN112953769B (en) Data transmission method, device, computer system and readable storage medium
CN109587351A (en) A kind of call test method, device, equipment and storage medium
CN104318475A (en) Method and device for obtaining analog receipt
CN103580951B (en) Output comparative approach, test migration householder method and the system of multiple information systems
CN109656791B (en) gPC performance test method and device based on Jmeter
CN104184762A (en) Fault information feedback method and system of server
CN114257632B (en) Method and device for reconnecting broken wire, electronic equipment and readable storage medium
CN115276844A (en) Communication module testing method and device and electronic equipment
CN110545296A (en) Log data acquisition method, device and equipment
CN110266610B (en) Traffic identification method and device and electronic equipment
CN108632321A (en) Treating method and apparatus based on scheduling of resource under big data platform
CN113039751B (en) Fault notification method, device and equipment
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
CN113780706A (en) On-site operation and maintenance operation method and device based on visual enhancement
CN110874872A (en) Fire-fighting inspection management method and system
CN109660431A (en) The processing method and processing device of tracking equipment presence
CN111131369A (en) APP use condition transmission method and device, electronic equipment and storage medium

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