CN109194495A - server, message processing method and computer readable storage medium - Google Patents
server, message processing method and computer readable storage medium Download PDFInfo
- Publication number
- CN109194495A CN109194495A CN201810694255.0A CN201810694255A CN109194495A CN 109194495 A CN109194495 A CN 109194495A CN 201810694255 A CN201810694255 A CN 201810694255A CN 109194495 A CN109194495 A CN 109194495A
- Authority
- CN
- China
- Prior art keywords
- business
- information
- service
- default
- gateway interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5048—Automatic or semi-automatic definitions, e.g. definition templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5054—Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of server, message processing method and computer readable storage medium.The present invention obtains the business information of default first kind business, the corresponding configuration information of this first kind business and gateway interface information are inquired according to the business information of the default first kind business of this, according to business information and configuration information, default first kind service request message is assembled, and the default first kind service request message after assembling is sent to corresponding gateway interface.Compared to the prior art, when gateway interface data process method of the present invention in business processing side changes, it is not necessary to modify code and restart server, improve system maintenance efficiency.
Description
Technical field
The present invention relates to field of communication technology, in particular to a kind of server, message processing method and computer-readable deposit
Storage media.
Background technique
Existing e-commerce platform (i.e. service request side) at work, needs to call bank, Third-party payment company
Equal financial institutions (i.e. business processing side) carries out business processing, before calling a financial institution to carry out business processing, the electronics
Progress gateway interface is needed to dock between business platform and the financial institution, gateway interface relates generally to gateway interface message when docking
The definition of processing mode, the existing method for defining gateway interface Message processing mode is: according to financial institution's gateway interface
Data process method writes corresponding code in gateway interface Agent layer to realize that the assembling of gateway interface message, gateway interface are returned
Return parsing and the calling of gateway interface etc. of text.The defect of this method is, when the data processing of financial institution's interface is patrolled
When volume changing, needs to remodify code and restart service request side's server.
Summary of the invention
The main object of the present invention is to provide a kind of server, message processing method and computer readable storage medium, purport
It is solving when the data process method of business processing side's gateway interface changes, code need to be remodified and restart business and asked
The problem of side's of asking server.
To achieve the above object, a kind of server proposed by the present invention, the server include memory and processor, institute
It states and is stored with message handler on memory, the message handler realizes following steps when being executed by the processor:
Obtaining step: when receiving the instruction of default first kind service request, the default first kind business of this is obtained
Business information;
First query steps: according in the business information of acquisition business processing side's service identity information and in advance really
Mapping relations between fixed business processing side's service identity information and configuration information inquire the default first kind industry
It is engaged in corresponding configuration information;
Second query steps: according in the business information of acquisition business processing side's service identity information and in advance really
Mapping relations between fixed business processing side's service identity information and gateway interface information inquire the default first kind
The corresponding gateway interface information of type business;
Assembling steps: according to the business information and the configuration information, default first kind service request message is assembled;
Sending step: the default first kind service request message after assembling is sent to the gateway inquired
The corresponding service request side's gateway interface of interface message, for service request side's gateway interface by the default first kind industry
Business request message is sent to corresponding business processing side's gateway interface.
Preferably, first query steps include:
It is closed according to the mapping between predetermined business processing side's service identity information and configuration information identifier
System, inquires the corresponding configuration information identifier of business processing side's service identity information in the business information;
It is inquired according to the mapping relations between the predetermined configuration information identifier and configuration information, determination
The corresponding configuration information of the configuration information identifier, the configuration information, which is that the default first kind business is corresponding, matches
Confidence breath.
Preferably, the obtaining step includes:
The service requesting information in the default first kind service request instruction is extracted, according to the service requesting information
And predetermined selection rule selects alternative optimum service channel in predetermined a plurality of service channel;
Obtain the service channel information of the optimal service channel, and by the service requesting information and service channel information
Business information as the default first kind business.
Preferably, the processor executes the message handler, after the sending step, also realizes following step
It is rapid:
Receive the default first kind business returned packet that service request side's gateway interface returns, and according to inquiring
The configuration information, parse the default first kind business returned packet.
Preferably, the processor executes the message handler, after the sending step, also realizes following step
It is rapid:
When not receiving the default first kind business returned packet in preset duration, start default Second Type
Business, the default Second Type business includes inquiry business;
When the default Second Type business of starting is inquiry business, inquiry business identification information is generated, and obtain
The corresponding business information of default first kind service request message to be checked, and business processing side is extracted from the business information
Service identity information and service identification information are as inquiry business information;
At business processing side's service identity information, inquiry business identification information and the predetermined business
Mapping relations between reason side's service identity information, inquiry business identification information and configuration information three obtain the inquiry industry
It is engaged in corresponding configuration information;
At business processing side's service identity information, inquiry business identification information and the predetermined business
Mapping relations between reason side's service identity information, inquiry business identification information and gateway interface information three are looked into described in acquisition
Ask the corresponding gateway interface information of business information;
According to the inquiry business information and the configuration information, inquiry request message is assembled, and will be described in after assembling
Inquiry request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, asks for the business
The inquiry request message is sent to corresponding business processing side's gateway interface by the side's of asking gateway interface;
The inquiry returned packet that service request side's gateway interface returns is received, and according to the configuration information, parsing
The inquiry returned packet, to obtain query result.
In addition, to achieve the above object, the present invention also proposes a kind of message processing method, which is characterized in that this method packet
It includes:
Obtaining step: when receiving the instruction of default first kind service request, the default first kind business of this is obtained
Business information;
First query steps: according in the business information of acquisition business processing side's service identity information and in advance really
Mapping relations between fixed business processing side's service identity information and configuration information inquire the default first kind industry
It is engaged in corresponding configuration information;
Second query steps: according in the business information of acquisition business processing side's service identity information and in advance really
Mapping relations between fixed business processing side's service identity information and gateway interface information inquire the default first kind
The corresponding gateway interface information of type business;
Assembling steps: according to the business information and the configuration information, default first kind service request message is assembled;
Sending step: the default first kind service request message after assembling is sent to the gateway inquired
The corresponding service request side's gateway interface of interface message, for service request side's gateway interface by the default first kind industry
Business request message is sent to corresponding business processing side's gateway interface.
Preferably, the obtaining step includes:
The service requesting information in the default first kind service request instruction is extracted, according to the service requesting information
And predetermined selection rule selects alternative optimum service channel in predetermined a plurality of service channel;
Obtain the service channel information of the optimal service channel, and by the service requesting information and service channel information
Business information as the default first kind business.
Preferably, after the sending step, this method further include:
Receive the default first kind business returned packet that service request side's gateway interface returns, and according to inquiring
The configuration information, parse the default first kind business returned packet.
Preferably, after the sending step, this method further include:
When not receiving the default first kind business returned packet in preset duration, start default Second Type
Business, the default Second Type business includes inquiry business;
When the default Second Type business of starting is inquiry business, inquiry business identification information is generated, and obtain
The corresponding business information of default first kind service request message to be checked, and business processing side is extracted from the business information
Service identity information and service identification information are as inquiry business information;
At business processing side's service identity information, inquiry business identification information and the predetermined business
Mapping relations between reason side's service identity information, inquiry business identification information and configuration information three obtain the inquiry industry
It is engaged in corresponding configuration information;
At business processing side's service identity information, inquiry business identification information and the predetermined business
Mapping relations between reason side's service identity information, inquiry business identification information and gateway interface information three are looked into described in acquisition
Ask the corresponding gateway interface information of business information;
According to the inquiry business information and the configuration information, inquiry request message is assembled, and will be described in after assembling
Inquiry request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, asks for the business
The inquiry request message is sent to corresponding business processing side's gateway interface by the side's of asking gateway interface;
The inquiry returned packet that service request side's gateway interface returns is received, and according to the configuration information, parsing
The inquiry returned packet, to obtain query result.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable
Storage medium is stored with message handler, and the message handler can be executed by least one processor so that it is described extremely
A step of few processor executes message processing method as described in any one of the above embodiments.
The present invention obtains the business information of default first kind business, is believed according to the business of the default first kind business of this
The corresponding configuration information of breath inquiry this first kind business and gateway interface information, according to business information and configuration information, group
Default first kind service request message is filled, and the default first kind service request message after assembling is sent to corresponding net
Close interface.Compared to the prior art, the present invention with business processing side's progress interface when docking, according to the gateway of business processing side
Interface data handles logic and configuration information is arranged, when service request side needs that business processing side is called to carry out business processing, root
According to configuration information assembling, analytic message and call gateway interface.The present invention is at the gateway interface data of business processing side
When reason logic changes, it is not necessary to modify code and server is restarted, it is only necessary to modify to corresponding configuration information, after modification
Configuration information once saving, then come into force, under the premise of not influencing service request method, system and operating normally, improve and be
System maintenance efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the optional application environment schematic diagram of each embodiment one of the invention;
Fig. 2 is the running environment schematic diagram of the first, second, third embodiment of message handler of the present invention;
Fig. 3 is the Program modual graph of message handler first embodiment of the present invention;
Fig. 4 is the first elaborator module map for obtaining module in Fig. 3;
Fig. 5 is the elaborator module map of the first enquiry module in Fig. 3;
Fig. 6 is the Program modual graph of message handler second embodiment of the present invention;
Fig. 7 is the Program modual graph of interface packets message handler 3rd embodiment of the present invention
Fig. 8 is the flow diagram of message processing method first embodiment of the present invention;
Fig. 9 is the refinement flow diagram of step S10 in Fig. 8;
Figure 10 is the refinement flow diagram of step S20 in Fig. 8;
Figure 11 is the flow diagram of message processing method second embodiment of the present invention;
Figure 12 is the flow diagram of message processing method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the invention.
As shown in fig.1, being the optional application environment schematic diagram of each embodiment one of the invention.
In the present embodiment, present invention can apply to include but are not limited to, server 1, multiple client 2, Duo Geye
It is engaged in the application environment of requesting party's gateway interface 3, multiple business processing side's gateway interfaces 4, business processing side's server 5.Service
Device 1 is communicated to connect with multiple client 2 and multiple service request side's gateway interfaces respectively, and each service request side's gateway interface 3
It is communicated to connect with corresponding business processing side's gateway interface 4, multiple business processing side's gateway interfaces 4 and business processing side's server
5 communication connections.
The client 2 is the client of service request side, which will use for providing user interface
The default first kind service request instruction of family triggering is sent to the processing of server 1, and receives the business processing that server 1 returns
As a result.
The server 1 is the server of service request side, which realizes this for running message handler
The step of invention message processing method.
Service request side's gateway interface 3 is used to receive the message of the transmission of server 1, and the message is sent to correspondence
Business processing side's gateway interface 4, service request side's gateway interface 3 is also used to receive business processing side's gateway interface 4 and returns
The message returned, and the message of the return is sent to service request side's gateway interface 3.
Business processing side's gateway interface 4 is used to receive the message of the transmission of service request side's gateway interface 3, and by the report
Text is parsed into the readable data of business processing side's server 5, and business processing side's gateway interface 4 is also used to business processing side
The data assembling that server 5 is sent is sent to corresponding service request side's gateway interface 3 at message.
Business processing side's server 5 is used to receive the data of the transmission of business processing side's gateway interface 4, according to the data
Business processing is carried out, and by the result return value business processing side gateway interface 4 of business processing.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and function of relevant device in detail
Energy.In the following, above-mentioned application environment and relevant device will be based on, each embodiment of the invention is proposed.
The present invention proposes a kind of message handler.
Referring to Fig. 2, being the running environment schematic diagram of 10 first embodiment of message handler of the present invention.
In the present embodiment, message handler 10 is installed and is run in server 1.Server 1 is that one kind can be by
According to the instruction for being previously set or storing, the equipment of calculating and/or information processing is carried out automatically.The server 1 may include, but not
It is only limitted to, memory 11, processor 12 and display 13.Fig. 2 illustrates only the server 1 with component 11-13, but should manage
Solution is, it is not required that implements all components shown, the implementation that can be substituted is more or less component.
Memory 11 can be the internal storage unit of server 1, such as the hard disk of the server 1 in some embodiments
Or memory.Memory 11 is also possible to match on the External memory equipment of server 1, such as server 1 in further embodiments
Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD)
Card, flash card (Flash Card) etc..Further, memory 11 can also both including server 1 internal storage unit or
Including External memory equipment.Memory 11 is installed at the application software and Various types of data, such as message of server 1 for storing
Manage the program code etc. of program 10.Memory 11 can be also used for temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), microprocessor or other data processing chips, program code or processing data for being stored in run memory 11, example
Such as execute message handler 10.
Display 13 can be in some embodiments light-emitting diode display, liquid crystal display, touch-control liquid crystal display and
OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Display 13 is for being shown in
The information that is handled in server 1 and for showing visual user interface.The component 11-13 of server 1 is total by program
Line is in communication with each other.
Referring to Fig. 3, being the Program modual graph of 10 first embodiment of message handler of the present invention.In the present embodiment,
Message handler 10 can be divided into one or more modules, one or more module is stored in memory 11,
And it is performed by one or more processors (the present embodiment is processor 12), to complete the present invention.For example, in Fig. 3, message
It is die-filling that processing routine 10 can be divided into the first acquisition module 101, the first enquiry module 102, the second enquiry module 103, group
Block 104 and sending module 105.The so-called module of the present invention is the series of computation machine program instruction for referring to complete specific function
Section, the implementation procedure than program more suitable for description message handler 10 in the server 1, in which:
First obtains module 101, for when receiving the instruction of default first kind service request, obtaining this default the
The business information of one type service.
Specifically, above-mentioned default first kind service request instruction can be initiated by user by client, for example, user needs
It to be paid by business processing side, when jumping to the payment page, trigger the default first kind service request.
Above-mentioned default first kind business includes but is not limited to: collecting business pays out business and authentication services.
So-called collecting business refers to based on holder and trade company (for example, e-commerce platform of service request side's operation) label
Business entrustment agreement is ordered, permits trade company according to protocol conventions, requested to holder's destiny account and completes specified fund payment
Business is transferred for realizing based on the cardholder account fund under agreement purposes to merchant account orientation.
So-called business of paying out refers to that trade company's (for example, e-commerce platform of service request side's operation) settles accounts from itself unit
Account carries out fund to holder appointed bank card account and draws the business paid, such as settlement of insurance claim, fund share out bonus, pay out payment for goods.
So-called authentication services refer to whether business processing side verifying user possesses the business of access system rights.
Referring to Fig. 4, described first, which obtains module 101, includes selecting unit 1011, acquiring unit 1012, in which:
Selecting unit 1011, for extracting the service requesting information in the default first kind service request instruction, root
Alternative optimum industry is selected in predetermined a plurality of service channel according to the service requesting information and predetermined selection rule
Business channel.
Specifically, above-mentioned service requesting information includes type of service, service identification information, business tine information.
Wherein, the type of service includes collecting business, pays out business and authentication services.
The service identification information includes business number, for example, O/No. etc..
Above-mentioned business tine information based on type of service difference it is different, if such as type of service be collecting business or
Person pays out business, then business tine information includes payer information, beneficiary information, transaction amount quantity etc.;If type of service
For authentication services, then business tine information includes subscriber identity information, bank card information etc..
Above-mentioned service channel is the business processing link divided according to the service that business processing side provides.For example, Unionpay's generation
Receive channel, Unionpay pays out channel, Unionpay's authentication channel, bank A withholds channel, bank A pays out channel, bank A authenticates channel etc..
The service that above-mentioned business processing side provides is the accessible business in the business processing side.
In the other embodiments in addition to the present embodiment, also service channel can be divided according to specific application scenarios, this
Invention is not construed as limiting this.
Preferably, above-mentioned predetermined selection rule includes: in the present embodiment
Firstly, determining the service channel for supporting this business as service channel to be selected according to the service requesting information.
Whether one service channel supports the judgment method of the default first kind business of this as follows:
According to the type of service, judge whether the service channel possesses the power of the processing default first kind business of this
Limit, if it is not, then determining that the service channel does not support the default first kind business of this, if so, continuing to judge the service channel
Whether (for example, some channel possible breakdown, then the channel close) is opened.
When the default first kind business is authentication services, if the service channel is opened, the service channel is determined
It supports the default first kind business of this, if the service channel is not opened, determines that the service channel does not support this default the
One type service.
When the default first kind business is collecting business or pays out business, according in the business tine information
Transaction amount quantity, judge whether the service channel of the unlatching meets preset limit condition (for example, judging the industry of the unlatching
The new friendship that the business channel same day processed transaction amount total amount is obtained plus the transaction amount quantity in the business tine information
Whether easy amount of money total amount is less than preset threshold), if satisfied, then determining that the service channel supports the default first kind business of this
Service channel, if not satisfied, then determining that the service channel does not support the default first kind business of this.
Then, the parameters sortnig based on each service channel to be selected is ranked up processing to the service channel to be selected,
And export ranking results.
Above-mentioned parameters sortnig includes service rate, (i.e. business processing side completes collecting business or pays out industry business timeliness
The time required to business), priority etc..The parameters sortnig can be set according to demand, however it is not limited to the above-mentioned content enumerated.
The above-mentioned parameters sortnig based on each service channel to be selected is ranked up processing to the service channel to be selected
Step specifically includes:
The service channel to be selected is ranked up by the sequence based on priority from high to low.
The service channel to be selected of equal priority is ranked up based on the sequence of service rate from low to high.
Priority and payment rate service channel to be selected all the same are carried out based on the sequence of business timeliness from short to long
Sequence, to obtain service channel to be selected by excellent to bad ranking results.
Above-mentioned service rate refers to the service rate that business processing direction service request side collects.And if type of service is
Authentication services, then business timeliness is not as parameters sortnig.
Finally, being based on the ranking results, the service channel to be selected of preset condition will be met as optimal service channel.
Above-mentioned preset condition can be set as needed, for example, if the ranking results be service channel to be selected by excellent to bad
Sequence sequence as a result, then the preset condition be the primary service channel to be selected of selected and sorted.
Acquiring unit 1012, for obtaining the service channel information of the optimal service channel, and by the service request
The business information of information and service channel information as the default first kind business.
Preferably, in the present embodiment, the service channel information of above-mentioned optimal service channel includes business processing side's service mark
Know information, so-called business processing side's service identity information refers to the identification information for the service that business processing side provides, for example, bank
It is 001002 that A, which withholds service identity information,.
In the other embodiments in addition to the present embodiment, the service channel information of above-mentioned optimal service channel may also include
Business processing side's authority identification information, for example, bank's A authority identification information is 001.
First enquiry module 102, for business processing side's service identity information in the business information according to acquisition
And the mapping relations between predetermined business processing side's service identity information and configuration information, inquire described default the
The corresponding configuration information of one type service.
Specifically, above-mentioned configuration information is arranged previously according to the gateway interface data process method of business processing side.
Referring to Fig. 5, it is preferable that in the present embodiment, above-mentioned first enquiry module 102 includes the first query unit 1021, the
Two query units 1022, in which:
First query unit 1021, for according to predetermined business processing side's service identity information and with confidence
The mapping relations between identifier are ceased, the business processing side's service identity information inquired in the business information is corresponding with confidence
It ceases identifier (for example, configuration information ID).
The corresponding configuration information identifier of business processing side's service identity information is the default first kind industry
It is engaged in corresponding configuration information identifier.
Mapping relations between above-mentioned business processing side's service identity information and configuration information identifier can be stored in corresponding
Mapping table in.
Second query unit 1022, for according between the predetermined configuration information identifier and configuration information
Mapping relations determine the corresponding configuration information of the configuration information identifier inquired, and the configuration information is described pre-
If the corresponding configuration information of first kind business.
Specifically, the mapping relations between the configuration information identifier and configuration information can be stored in corresponding mapping and close
It is in table.
In addition, above-mentioned first query unit 1021, second are looked into referring to figure in the other embodiments in addition to the present embodiment
Asking unit 1022 can be replaced by third query unit (not shown), and the third query unit is used for:
According in the business information of acquisition business processing side's service identity information and the predetermined business processing
Mapping relations between square service identity information, configuration information identifier and configuration information three, inquire the business processing side
The corresponding configuration information of service identity information is to get to the corresponding configuration information of the default first kind business.
Preferably, in the present embodiment, when message handler 10 is executed by processor 12, described according to acquisition
Business processing side's service identity information and predetermined business processing side's service identity information in business information with match
Mapping relations between confidence breath are also realized before the step of inquiring the default first kind business corresponding configuration information
Following steps: all configuration informations of load (parse) in memory, it is all with confidence needed for subsequent Message processing of the present invention
Breath can be inquired from memory.In addition, detecting whether the configuration information has update in real time or periodically, if so, in memory
Reload the configuration information.
Second enquiry module 103, for business processing side's service identity information in the business information according to acquisition
And the mapping relations between predetermined business processing side's service identity information and gateway interface information, it inquires described pre-
If the corresponding gateway interface information of first kind business.
Specifically, above-mentioned gateway interface refers to the gateway interface of service request side's setting, it is generally the case that service request side
One gateway is set for each business processing side, and the respective services provided according to the business processing side are arranged multiple gateways and connect
Mouthful.
Above-mentioned gateway interface information includes gateway interface identifier (for example, gateway interface ID).
Mapping relations between above-mentioned business processing side's service identity information and gateway interface information can at above-mentioned business
Mapping relations between reason side's service identity information and configuration information identifier are stored in same mapping relation table, alternatively, on
Mark can be serviced with above-mentioned business processing side by stating the mapping relations between business processing side's service identity information and gateway interface information
The mapping relations known between information and configuration information identifier are stored respectively in different mapping tables.
Module 104 is assembled, for default first kind business being assembled and being asked according to the business information and the configuration information
Seek message.
Above-mentioned configuration information defines default first kind industry according to the gateway interface data process method of business processing side
Therefore the rigging of business request message is based on the rigging, assembles business information as message content, so as to
Business processing side can directly read the default first kind service request report when receiving the first kind service request message
Text.
Sending module 105 is inquired for the default first kind service request message after assembling to be sent to
The corresponding service request side's gateway interface of the gateway interface information, so that service request side's gateway interface will be described default
First kind service request message is sent to corresponding business processing side's gateway interface.
Specifically, firstly, the default first kind service request message after assembling is sent to the service request inquired
Square gateway interface, and the corresponding business information of default first kind service request message is subjected to storage processing (for example, being stored in
In database).Then, the default first kind service request message is sent to by service request side's gateway interface corresponding
Business processing side's gateway interface, business processing side's gateway interface are right after receiving the default first kind service request message
The default first kind business of this is handled.
The present embodiment obtains the business information of default first kind business, according to the business of the default first kind business of this
Information inquires the corresponding configuration information of this first kind business and gateway interface information, according to business information and configuration information,
Default first kind service request message is assembled, and the default first kind service request message after assembling is sent to corresponding
Gateway interface.Compared to the prior art, the present embodiment with business processing side's progress interface when docking, according to business processing side
Configuration information is arranged in gateway interface data process method, when service request side needs that business processing side is called to carry out business processing
When, according to configuration information assembling, analytic message and call gateway interface.Gateway interface of the present embodiment in business processing side
When data process method changes, it is not necessary to modify code and server is restarted, it is only necessary to it modifies to corresponding configuration information,
Modified configuration information then comes into force once saving, and under the premise of not influencing service request method, system normal operation, mentions
High system maintenance efficiency.
As shown in fig. 6, Fig. 6 is the Program modual graph of 10 second embodiment of message handler of the present invention.
For the present embodiment on the basis of first embodiment, which further includes receiving module 106, and receiving module 106 is used for
The default first kind business returned packet that service request side's gateway interface returns is received, and is matched according to inquiring
Confidence breath, parses the default first kind business returned packet.
Specifically, business processing side's gateway interface returns to default first kind business returned packet to corresponding service request
Square gateway interface, service request side's gateway interface return to the default first kind business returned packet.Due to the configuration information
In include according to the parsing data of the pre-set returned packet field of service processing side's gateway interface data process method, because
This can parse default first kind business returned packet according to the configuration information.
If including error code in the default first kind business returned packet, according to predetermined business processing mode
Mapping relations between service identity information and error code parsing information search corresponding error code parsing information, and according to this
The error code parsing information found carries out escape to the error code.
Preferably, in the present embodiment, when the type of service of the default first kind business is collecting business or is paid out
When business, message handler 10 further includes update module (not shown), and the update module is used for, according to the business
Transaction amount quantity in solicited message, every daily trading limit data of the payer of more new record are (from every daily trading limit number
Transaction amount is reduced in).
The update module is also used to, when the default first kind business returned packet according to parsing determines that collecting business is lost
When losing or paying out service fail, every daily trading limit data of the payer of more new record are (from every daily trading limit data
The transaction amount that rollback is reduced).
As shown in fig. 7, Fig. 7 is the Program modual graph of 10 3rd embodiment of message handler of the present invention.
For the present embodiment on the basis of the first, second embodiment, which further includes starting module 107, inquiry business mould
Block 108, in which:
Starting module 107, for when not receiving the default first kind business returned packet in preset duration,
Start default Second Type business.
Specifically, the default Second Type business includes inquiry business.
Preferably, the program further includes inquiry business module 108 in the present embodiment, and inquiry business module 108 is used for:
Firstly, inquiry business identification information is generated when the default Second Type business of starting is inquiry business, and
The corresponding business information of default first kind service request message to be checked is obtained, and is extracted from business from the business information
Reason side's service identity information and service identification information are as inquiry business information.
Specifically, due to being sent to service requester gateway interface in default first kind service request message to be checked
When, the corresponding business information of the default first kind service request message to be checked is subjected to storage processing, thus, it is only required to from
The corresponding business information of the default first kind service request message to be checked is found out in memory space.
Then, according to business processing side's service identity information, inquiry business identification information and predetermined described
Mapping relations between business processing side's service identity information, inquiry business identification information and configuration information three, described in acquisition
The corresponding configuration information of inquiry business.
Specifically, according to business processing side's service identity information, inquiry business identification information and the predetermined industry
The mapping relations being engaged between processing side's service identity information, inquiry business identification information and configuration information identifier three, inquiry
The corresponding configuration information identifier (for example, configuration information ID) of the inquiry business.Specifically, the above-mentioned predetermined industry
Mapping relations between business processing side's service identity information, inquiry business identification information and configuration information identifier three can store
In corresponding mapping table.
According to the configuration information identifier and the predetermined configuration information identifier inquired and with confidence
Mapping relations between breath inquire the corresponding configuration information of the configuration information identifier.Inquire obtained configuration information mark
According with corresponding configuration information is the corresponding configuration information of the inquiry business.The configuration information identifier and configuration information it
Between mapping relations can be stored in corresponding mapping table.
Then, according to business processing side's service identity information, inquiry business identification information and predetermined described
Mapping relations between business processing side's service identity information, inquiry business identification information and gateway interface information three obtain
The corresponding gateway interface information of the inquiry business information.
Above-mentioned predetermined business processing side's service identity information, inquiry business identification information and gateway interface letter
Cease mapping relations and above-mentioned predetermined business processing side's service identity information between three, inquiry business mark is believed
Mapping relations between breath and configuration information identifier three can be stored in same mapping relation table, can also be stored respectively in not
In same mapping table.
Then, according to the inquiry business information and the configuration information, inquiry request message is assembled, and will be after assembling
The inquiry request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, for the industry
The inquiry request message is sent to corresponding business processing side's gateway interface by business requesting party's gateway interface.
Specifically, inquiry is defined according to the gateway interface data process method of business processing side due to above-mentioned configuration information
Therefore the rigging of request message is based on the rigging, assembles using inquiry business information as message content, with
Just business processing side can directly read the inquiry request message when receiving the inquiry request message.
Finally, receive the inquiry returned packet that service request side's gateway interface returns, and according to the configuration information,
The inquiry returned packet is parsed, to obtain query result.
Specifically, due to including to be set in advance according to service processing side's gateway interface data process method in the configuration information
Therefore the parsing data for the inquiry returned packet field set according to the configuration information, can solve inquiry returned packet
Analysis, to obtain query result.
The present embodiment passes through starting when not receiving the default first kind business returned packet in preset duration
Inquiry business would know that the state of the currently processed default first kind business in business processing side, so that reason state is according to this
Make to adjust business processing strategy.
In addition, the present invention proposes a kind of message processing method.
As shown in figure 8, Fig. 8 is the flow diagram of message processing method first embodiment of the present invention.
In the present embodiment, this method comprises:
Step S10 obtains the default first kind business of this when receiving the instruction of default first kind service request
Business information.
Specifically, above-mentioned default first kind service request instruction can be initiated by user by client, for example, user needs
It to be paid by business processing side, when jumping to the payment page, trigger the default first kind service request.
Above-mentioned default first kind business includes but is not limited to: collecting business pays out business and authentication services.
So-called collecting business refers to based on holder and trade company (for example, e-commerce platform of service request side's operation) label
Business entrustment agreement is ordered, permits trade company according to protocol conventions, requested to holder's destiny account and completes specified fund payment
Business is transferred for realizing based on the cardholder account fund under agreement purposes to merchant account orientation.
So-called business of paying out refers to that trade company's (for example, e-commerce platform of service request side's operation) settles accounts from itself unit
Account carries out fund to holder appointed bank card account and draws the business paid, such as settlement of insurance claim, fund share out bonus, pay out payment for goods.
So-called authentication services refer to whether business processing side verifying user possesses the business of access system rights.
It is specifically included referring to Fig. 9, the step S10:
Step S11 extracts the service requesting information in the default first kind service request instruction, according to the business
Solicited message and predetermined selection rule select alternative optimum service channel in predetermined a plurality of service channel.
Specifically, above-mentioned service requesting information includes type of service, service identification information, business tine information.
Wherein, the type of service includes collecting business, pays out business and authentication services.
The service identification information includes business number, for example, O/No. etc..
Above-mentioned business tine information be based on type of service difference it is different, if such as type of service be collecting business or
Business is paid out, then business tine information includes payer information, beneficiary information, transaction amount quantity etc.;If type of service is
Authentication services, then business tine information includes subscriber identity information, bank card information etc..
Above-mentioned service channel is the business processing link divided according to the service that business processing side provides.For example, Unionpay's generation
Receive channel, Unionpay pays out channel, Unionpay's authentication channel, bank A withholds channel, bank A pays out channel, bank A authenticates channel etc..
The service that above-mentioned business processing side provides is the accessible business in the business processing side.
In the other embodiments in addition to the present embodiment, also service channel can be divided according to specific application scenarios, this
Invention is not construed as limiting this.
Preferably, above-mentioned predetermined selection rule includes: in the present embodiment
Firstly, determining the service channel for supporting this business as service channel to be selected according to the service requesting information.
Whether one service channel supports the judgment method of the default first kind business of this as follows:
According to the type of service, judge whether the service channel possesses the power of the processing default first kind business of this
Limit, if it is not, then determining that the service channel does not support the default first kind business of this, if so, continuing to judge the service channel
Whether (for example, some channel possible breakdown, then the channel close) is opened.
When the default first kind business is authentication services, if the service channel is opened, the service channel is determined
It supports the default first kind business of this, if the service channel is not opened, determines that the service channel does not support this default the
One type service.
When the default first kind business is collecting business or pays out business, according in the business tine information
Transaction amount quantity, judge whether the service channel of the unlatching meets preset limit condition (for example, judging the industry of the unlatching
The new friendship that the business channel same day processed transaction amount total amount is obtained plus the transaction amount quantity in the business tine information
Whether easy amount of money total amount is less than preset threshold), if satisfied, then determining that the service channel supports the default first kind business of this
Service channel, if not satisfied, then determining that the service channel does not support the default first kind business of this.
Then, the parameters sortnig based on each service channel to be selected is ranked up processing to the service channel to be selected,
And export ranking results.
Above-mentioned parameters sortnig includes service rate, (i.e. business processing side completes collecting business or pays out industry business timeliness
The time required to business), priority etc..The parameters sortnig can be set according to demand, however it is not limited to the above-mentioned content enumerated.
The above-mentioned parameters sortnig based on each service channel to be selected is ranked up processing to the service channel to be selected
Step specifically includes:
The service channel to be selected is ranked up by the sequence based on priority from high to low.
The service channel to be selected of equal priority is ranked up based on the sequence of service rate from low to high.
Priority and payment rate service channel to be selected all the same are carried out based on the sequence of business timeliness from short to long
Sequence, to obtain service channel to be selected by excellent to bad ranking results.
Above-mentioned service rate refers to the service rate that business processing direction service request side collects.And if type of service is
Authentication services, then business timeliness is not as parameters sortnig.
Finally, being based on the ranking results, the service channel to be selected of preset condition will be met as optimal service channel.
Above-mentioned preset condition can be set as needed, for example, if the ranking results be service channel to be selected by excellent to bad
Sequence sequence as a result, then the preset condition be the primary service channel to be selected of selected and sorted.
Step S12, obtains the service channel information of the optimal service channel, and by the service requesting information and business
Business information of the channel information as the default first kind business.
Preferably, in the present embodiment, the service channel information of above-mentioned optimal service channel includes business processing side's service mark
Know information, so-called business processing side's service identity information refers to the identification information for the service that business processing side provides, for example, bank
It is 001002 that A, which withholds service identity information,.
In the other embodiments in addition to the present embodiment, the service channel information of above-mentioned optimal service channel may also include
Business processing side's authority identification information, for example, bank's A authority identification information is 001.
Step S20, according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and configuration information inquire the default first kind business pair
The configuration information answered.
Specifically, above-mentioned configuration information is arranged previously according to the gateway interface data process method of business processing side.
Referring to Fig.1 0, it is preferable that in the present embodiment, above-mentioned steps S20 is specifically included:
Step S21, according between predetermined business processing side's service identity information and configuration information identifier
Mapping relations, inquire the corresponding configuration information identifier (example of business processing side's service identity information in the business information
Such as, configuration information ID).
The corresponding configuration information identifier of business processing side's service identity information is the default first kind industry
It is engaged in corresponding configuration information identifier.
Mapping relations between above-mentioned business processing side's service identity information and configuration information identifier can be stored in corresponding
Mapping table in.
Step S22 is determined according to the mapping relations between the predetermined configuration information identifier and configuration information
The corresponding configuration information of the configuration information identifier inquired, the configuration information are the default first kind business
Corresponding configuration information.
Specifically, the mapping relations between the configuration information identifier and configuration information can be stored in corresponding mapping and close
It is in table.
In addition, above-mentioned steps S21, S22 can be replaced by following steps in the other embodiments in addition to the present embodiment:
According in the business information of acquisition business processing side's service identity information and the predetermined business processing
Mapping relations between square service identity information, configuration information identifier and configuration information three, inquire the business processing side
The corresponding configuration information of service identity information is to get to the corresponding configuration information of the default first kind business.
Preferably, in the present embodiment, before step S20, this method further include: load (parsing) is all in memory
Configuration information, all configuration informations needed for subsequent message processing method of the present invention can be inquired from memory.In addition, in real time or
Timing detects whether the configuration information has update, if so, reloading the configuration information in memory.
Step S30, according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and gateway interface information inquire the default first kind industry
It is engaged in corresponding gateway interface information.
Specifically, above-mentioned gateway interface refers to the gateway interface of service request side's setting, it is generally the case that service request side
One gateway is set for each business processing side, and the respective services provided according to the business processing side are arranged multiple gateways and connect
Mouthful.
Above-mentioned gateway interface information includes gateway interface identifier (for example, gateway interface ID).
Mapping relations between above-mentioned business processing side's service identity information and gateway interface information can at above-mentioned business
Mapping relations between reason side's service identity information and configuration information identifier are stored in same mapping relation table, alternatively, on
Mark can be serviced with above-mentioned business processing side by stating the mapping relations between business processing side's service identity information and gateway interface information
The mapping relations known between information and configuration information identifier are stored respectively in different mapping tables.
Above-mentioned steps S20 can be performed simultaneously with step S30 and also execute respectively, and the present invention is to step S20 and step S30
Execution sequencing be not construed as limiting.
Step S40 assembles default first kind service request message according to the business information and the configuration information.
Above-mentioned configuration information defines default first kind industry according to the gateway interface data process method of business processing side
Therefore the rigging of business request message is based on the rigging, assembles business information as message content, so as to
Business processing side can directly read the default first kind service request report when receiving the first kind service request message
Text.
The default first kind service request message after assembling is sent to the gateway inquired by step S50
The corresponding service request side's gateway interface of interface message, so that service request side's gateway interface is by the default first kind
Service request message is sent to corresponding business processing side's gateway interface.
Specifically, firstly, the default first kind service request message after assembling is sent to the service request inquired
Square gateway interface, and the corresponding business information of default first kind service request message is subjected to storage processing (for example, being stored in
In database).Then, the default first kind service request message is sent to by service request side's gateway interface corresponding
Business processing side's gateway interface, business processing side's gateway interface are right after receiving the default first kind service request message
The default first kind business of this is handled.
The present embodiment obtains the business information of default first kind business, according to the business of the default first kind business of this
Information inquires the corresponding configuration information of this first kind business and gateway interface information, according to business information and configuration information,
Default first kind service request message is assembled, and the default first kind service request message after assembling is sent to corresponding
Gateway interface.Compared to the prior art, the present embodiment with business processing side's progress interface when docking, according to business processing side
Configuration information is arranged in gateway interface data process method, when service request side needs that business processing side is called to carry out business processing
When, according to configuration information assembling, analytic message and call gateway interface.Gateway interface of the present embodiment in business processing side
When data process method changes, it is not necessary to modify code and server is restarted, it is only necessary to it modifies to corresponding configuration information,
Modified configuration information then comes into force once saving, and under the premise of not influencing service request method, system normal operation, mentions
High system maintenance efficiency.
As shown in figure 11, Figure 11 is the flow diagram of message processing method second embodiment of the present invention.
The present embodiment is on the basis of first embodiment, this method further include:
Step S60 receives the default first kind business returned packet that service request side's gateway interface returns, and root
According to the configuration information inquired, the default first kind business returned packet is parsed.
Specifically, business processing side's gateway interface returns to default first kind business returned packet to corresponding service request
Square gateway interface, service request side's gateway interface return to the default first kind business returned packet.Due to the configuration information
In include according to the parsing data of the pre-set returned packet field of service processing side's gateway interface data process method, because
This can parse default first kind business returned packet according to the configuration information.
If including error code in the default first kind business returned packet, according to predetermined business processing mode
Mapping relations between service identity information and error code parsing information search corresponding error code parsing information, and according to this
The error code parsing information found carries out escape to the error code.
Preferably, in the present embodiment, when the type of service of the default first kind business is collecting business or is paid out
When business, before step S50, further includes:
According to the transaction amount quantity in the service requesting information, every daily trading limit number of the payer of more new record
According to (reducing transaction amount from every daily trading limit data).
When the type of service of the default first kind business is collecting business or when paying out business, step S60 it
Afterwards, further includes:
If determining collecting business failure according to the default first kind business returned packet of parsing or paying out business mistake
It loses, then every daily trading limit data (trade gold that rollback is reduced from every daily trading limit data of the payer of more new record
Volume).
As shown in figure 12, Figure 12 is the flow diagram of message processing method 3rd embodiment of the present invention.
The present embodiment is on the basis of the first, second embodiment, this method further include:
Step S70, when not receiving the default first kind business returned packet in preset duration, starting is default
Second Type business.
Specifically, the default Second Type business includes inquiry business.
Preferably, in the present embodiment, after the step s 70, this method further include:
Firstly, inquiry business identification information is generated when the default Second Type business of starting is inquiry business, and
The corresponding business information of default first kind service request message to be checked is obtained, and is extracted from business from the business information
Reason side's service identity information and service identification information are as inquiry business information.
Specifically, due to being sent to service requester gateway interface in default first kind service request message to be checked
When, the corresponding business information of the default first kind service request message to be checked is subjected to storage processing, therefore, in step
In S80, it is only necessary to find out the corresponding business information of the default first kind service request message to be checked from memory space i.e.
It can.
Then, according to business processing side's service identity information, inquiry business identification information and predetermined described
Mapping relations between business processing side's service identity information, inquiry business identification information and configuration information three, described in acquisition
The corresponding configuration information of inquiry business.
Specifically, according to business processing side's service identity information, inquiry business identification information and the predetermined industry
The mapping relations being engaged between processing side's service identity information, inquiry business identification information and configuration information identifier three, inquiry
The corresponding configuration information identifier (for example, configuration information ID) of the inquiry business.Specifically, the above-mentioned predetermined industry
Mapping relations between business processing side's service identity information, inquiry business identification information and configuration information identifier three can store
In corresponding mapping table.
According to the configuration information identifier and the predetermined configuration information identifier inquired and with confidence
Mapping relations between breath inquire the corresponding configuration information of the configuration information identifier.Inquire obtained configuration information mark
According with corresponding configuration information is the corresponding configuration information of the inquiry business.The configuration information identifier and configuration information it
Between mapping relations can be stored in corresponding mapping table.
Then, according to business processing side's service identity information, inquiry business identification information and predetermined described
Mapping relations between business processing side's service identity information, inquiry business identification information and gateway interface information three obtain
The corresponding gateway interface information of the inquiry business information.
Above-mentioned predetermined business processing side's service identity information, inquiry business identification information and gateway interface letter
Cease mapping relations and above-mentioned predetermined business processing side's service identity information between three, inquiry business mark is believed
Mapping relations between breath and configuration information identifier three can be stored in same mapping relation table, can also be stored respectively in not
In same mapping table.
Then, according to the inquiry business information and the configuration information, inquiry request message is assembled, and will be after assembling
The inquiry request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, for the industry
The inquiry request message is sent to corresponding business processing side's gateway interface by business requesting party's gateway interface.
Specifically, inquiry is defined according to the gateway interface data process method of business processing side due to above-mentioned configuration information
Therefore the rigging of request message is based on the rigging, assembles using inquiry business information as message content, with
Just business processing side can directly read the inquiry request message when receiving the inquiry request message.
Finally, receive the inquiry returned packet that service request side's gateway interface returns, and according to the configuration information,
The inquiry returned packet is parsed, to obtain query result.
Specifically, due to including to be set in advance according to service processing side's gateway interface data process method in the configuration information
Therefore the parsing data for the inquiry returned packet field set according to the configuration information, can solve inquiry returned packet
Analysis, to obtain query result.
The present embodiment passes through starting when not receiving the default first kind business returned packet in preset duration
Inquiry business would know that the state of the currently processed default first kind business in business processing side, so that reason state is according to this
Make to adjust business processing strategy.
Further, the present invention also proposes that a kind of computer readable storage medium, the computer readable storage medium are deposited
Message handler is contained, the message handler can be executed by least one processor, so that at least one described processing
Device executes the step of message processing method in any of the above-described embodiment.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this
Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly
It is included in other related technical areas in scope of patent protection of the invention.
Claims (10)
1. a kind of server, the server includes memory and processor, which is characterized in that report is stored on the memory
Literary processing routine, the message handler realize following steps when being executed by the processor:
Obtaining step: when receiving the instruction of default first kind service request, the industry of the default first kind business of this is obtained
Business information;
First query steps: according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and configuration information inquire the default first kind business pair
The configuration information answered;
Second query steps: according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and gateway interface information inquire the default first kind industry
It is engaged in corresponding gateway interface information;
Assembling steps: according to the business information and the configuration information, default first kind service request message is assembled;
Sending step: the default first kind service request message after assembling is sent to the gateway interface inquired
The corresponding service request side's gateway interface of information asks the default first kind business for service request side's gateway interface
Message is asked to be sent to corresponding business processing side's gateway interface.
2. server as described in claim 1, which is characterized in that first query steps include:
According to the mapping relations between predetermined business processing side's service identity information and configuration information identifier, look into
Ask the corresponding configuration information identifier of business processing side's service identity information in the business information;
According to the mapping relations between the predetermined configuration information identifier and configuration information, determination inquires described
The corresponding configuration information of configuration information identifier, the configuration information are that the default first kind business is corresponding with confidence
Breath.
3. server as described in claim 1, which is characterized in that the obtaining step includes:
The service requesting information in the default first kind service request instruction is extracted, according to the service requesting information and in advance
First determining selection rule selects alternative optimum service channel in predetermined a plurality of service channel;
Obtain the service channel information of the optimal service channel, and using the service requesting information and service channel information as
The business information of the default first kind business.
4. server as claimed any one in claims 1 to 3, which is characterized in that the processor executes at the message
Reason program also performs the steps of after the sending step
The default first kind business returned packet that service request side's gateway interface returns is received, and according to the institute inquired
Configuration information is stated, the default first kind business returned packet is parsed.
5. server as claimed any one in claims 1 to 3, which is characterized in that the processor executes at the message
Reason program also performs the steps of after the sending step
When not receiving the default first kind business returned packet in preset duration, start default Second Type industry
Business, the default Second Type business includes inquiry business;
When the default Second Type business of starting is inquiry business, inquiry business identification information is generated, and obtain to be checked
The default corresponding business information of first kind service request message is ask, and extracts the service of business processing side from the business information
Identification information and service identification information are as inquiry business information;
According to business processing side's service identity information, inquiry business identification information and the predetermined business processing side
Mapping relations between service identity information, inquiry business identification information and configuration information three, obtain the inquiry business pair
The configuration information answered;
According to business processing side's service identity information, inquiry business identification information and the predetermined business processing side
Mapping relations between service identity information, inquiry business identification information and gateway interface information three, obtain the inquiry industry
The corresponding gateway interface information of information of being engaged in;
According to the inquiry business information and the configuration information, inquiry request message is assembled, and by the inquiry after assembling
Request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, for the service request side
The inquiry request message is sent to corresponding business processing side's gateway interface by gateway interface;
The inquiry returned packet that service request side's gateway interface returns is received, and according to the configuration information, described in parsing
Returned packet is inquired, to obtain query result.
6. a kind of message processing method, which is characterized in that this method comprises:
Obtaining step: when receiving the instruction of default first kind service request, the industry of the default first kind business of this is obtained
Business information;
First query steps: according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and configuration information inquire the default first kind business pair
The configuration information answered;
Second query steps: according to business processing side's service identity information in the business information of acquisition and predetermined
Mapping relations between business processing side's service identity information and gateway interface information inquire the default first kind industry
It is engaged in corresponding gateway interface information;
Assembling steps: according to the business information and the configuration information, default first kind service request message is assembled;
Sending step: the default first kind service request message after assembling is sent to the gateway interface inquired
The corresponding service request side's gateway interface of information asks the default first kind business for service request side's gateway interface
Message is asked to be sent to corresponding business processing side's gateway interface.
7. message processing method as claimed in claim 6, which is characterized in that the obtaining step includes:
The service requesting information in the default first kind service request instruction is extracted, according to the service requesting information and in advance
First determining selection rule selects alternative optimum service channel in predetermined a plurality of service channel;
Obtain the service channel information of the optimal service channel, and using the service requesting information and service channel information as
The business information of the default first kind business.
8. message processing method as claimed in claims 6 or 7, which is characterized in that after the sending step, this method is also
Include:
The default first kind business returned packet that service request side's gateway interface returns is received, and according to the institute inquired
Configuration information is stated, the default first kind business returned packet is parsed.
9. message processing method as claimed in claims 6 or 7, which is characterized in that after the sending step, this method is also
Include:
When not receiving the default first kind business returned packet in preset duration, start default Second Type industry
Business, the default Second Type business includes inquiry business;
When the default Second Type business of starting is inquiry business, inquiry business identification information is generated, and obtain to be checked
The default corresponding business information of first kind service request message is ask, and extracts the service of business processing side from the business information
Identification information and service identification information are as inquiry business information;
According to business processing side's service identity information, inquiry business identification information and the predetermined business processing side
Mapping relations between service identity information, inquiry business identification information and configuration information three, obtain the inquiry business pair
The configuration information answered;
According to business processing side's service identity information, inquiry business identification information and the predetermined business processing side
Mapping relations between service identity information, inquiry business identification information and gateway interface information three, obtain the inquiry industry
The corresponding gateway interface information of information of being engaged in;
According to the inquiry business information and the configuration information, inquiry request message is assembled, and by the inquiry after assembling
Request message is sent to the corresponding service request side's gateway interface of the gateway interface information of acquisition, for the service request side
The inquiry request message is sent to corresponding business processing side's gateway interface by gateway interface;
The inquiry returned packet that service request side's gateway interface returns is received, and according to the configuration information, described in parsing
Returned packet is inquired, to obtain query result.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has Message processing
Program, the message handler can be executed by least one processor, so that at least one described processor executes such as right
It is required that the step of message processing method described in any one of 6-9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810694255.0A CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
PCT/CN2018/107506 WO2020000720A1 (en) | 2018-06-29 | 2018-09-26 | Server, packet processing method, program, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810694255.0A CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109194495A true CN109194495A (en) | 2019-01-11 |
CN109194495B CN109194495B (en) | 2021-08-24 |
Family
ID=64948645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810694255.0A Active CN109194495B (en) | 2018-06-29 | 2018-06-29 | Server, message processing method, and computer-readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109194495B (en) |
WO (1) | WO2020000720A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209377A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Interface packet processing method, device, equipment and storage medium based on factory class |
CN111724249A (en) * | 2020-06-29 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Intelligent fund collection method and device, electronic equipment and storage medium |
CN111935174A (en) * | 2020-09-02 | 2020-11-13 | 平安国际智慧城市科技股份有限公司 | Block chain service system docking method, device and equipment based on middleware gateway |
CN112116353A (en) * | 2020-09-28 | 2020-12-22 | 中国工商银行股份有限公司 | Account data processing method, device and system |
CN113055494A (en) * | 2021-03-30 | 2021-06-29 | 中国工商银行股份有限公司 | Communication method and communication device |
CN113220759A (en) * | 2021-04-27 | 2021-08-06 | 深圳市云网万店科技有限公司 | Big data storage service sharing method and device, computer equipment and storage medium |
CN113434175A (en) * | 2021-06-29 | 2021-09-24 | 平安科技(深圳)有限公司 | Data processing method, device, storage medium and equipment |
CN114172979A (en) * | 2021-12-02 | 2022-03-11 | 上海电力设计院有限公司 | Message parsing method, platform, gateway and storage medium |
CN114500358A (en) * | 2022-02-14 | 2022-05-13 | 未鲲(上海)科技服务有限公司 | Gateway message distribution method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130123963A1 (en) * | 2011-11-15 | 2013-05-16 | Rockwell Automation Technologies, Inc. | Activity set management in a manufacturing execution system |
CN104980488A (en) * | 2015-03-20 | 2015-10-14 | 深圳市腾讯计算机系统有限公司 | Message transfer method, related devices and communication system |
CN105049256A (en) * | 2015-08-10 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Method and system for realizing universal custom interface message |
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
CN107918562A (en) * | 2016-10-11 | 2018-04-17 | 北京京东尚科信息技术有限公司 | A kind of unified interface management method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7801797B2 (en) * | 2003-06-17 | 2010-09-21 | Omx Technology Ab | Trading system supporting credit rating |
CN107241315B (en) * | 2017-05-23 | 2020-08-11 | 广州唯品会网络技术有限公司 | Access method and device of bank gateway interface and computer readable storage medium |
CN107705118A (en) * | 2017-09-19 | 2018-02-16 | 深圳金融电子结算中心有限公司 | Transaction payment method, system, server and storage medium based on channel route |
-
2018
- 2018-06-29 CN CN201810694255.0A patent/CN109194495B/en active Active
- 2018-09-26 WO PCT/CN2018/107506 patent/WO2020000720A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130123963A1 (en) * | 2011-11-15 | 2013-05-16 | Rockwell Automation Technologies, Inc. | Activity set management in a manufacturing execution system |
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
CN104980488A (en) * | 2015-03-20 | 2015-10-14 | 深圳市腾讯计算机系统有限公司 | Message transfer method, related devices and communication system |
CN105049256A (en) * | 2015-08-10 | 2015-11-11 | 北京思特奇信息技术股份有限公司 | Method and system for realizing universal custom interface message |
CN107918562A (en) * | 2016-10-11 | 2018-04-17 | 北京京东尚科信息技术有限公司 | A kind of unified interface management method and system |
CN107169756A (en) * | 2017-05-10 | 2017-09-15 | 北京凤凰理理它信息技术有限公司 | Payment channel distribution method, device, storage medium and payment route system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209377A (en) * | 2019-04-26 | 2019-09-06 | 平安科技(深圳)有限公司 | Interface packet processing method, device, equipment and storage medium based on factory class |
CN111724249A (en) * | 2020-06-29 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Intelligent fund collection method and device, electronic equipment and storage medium |
CN111935174A (en) * | 2020-09-02 | 2020-11-13 | 平安国际智慧城市科技股份有限公司 | Block chain service system docking method, device and equipment based on middleware gateway |
CN112116353A (en) * | 2020-09-28 | 2020-12-22 | 中国工商银行股份有限公司 | Account data processing method, device and system |
CN112116353B (en) * | 2020-09-28 | 2023-08-08 | 中国工商银行股份有限公司 | Account data processing method, device and system |
CN113055494A (en) * | 2021-03-30 | 2021-06-29 | 中国工商银行股份有限公司 | Communication method and communication device |
CN113220759A (en) * | 2021-04-27 | 2021-08-06 | 深圳市云网万店科技有限公司 | Big data storage service sharing method and device, computer equipment and storage medium |
CN113434175A (en) * | 2021-06-29 | 2021-09-24 | 平安科技(深圳)有限公司 | Data processing method, device, storage medium and equipment |
CN113434175B (en) * | 2021-06-29 | 2024-02-27 | 平安科技(深圳)有限公司 | Data processing method, device, storage medium and equipment |
CN114172979A (en) * | 2021-12-02 | 2022-03-11 | 上海电力设计院有限公司 | Message parsing method, platform, gateway and storage medium |
CN114500358A (en) * | 2022-02-14 | 2022-05-13 | 未鲲(上海)科技服务有限公司 | Gateway message distribution method, device, equipment and storage medium |
CN114500358B (en) * | 2022-02-14 | 2023-10-24 | 西藏创煌信息科技有限公司 | Gateway message distribution method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020000720A1 (en) | 2020-01-02 |
CN109194495B (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109194495A (en) | server, message processing method and computer readable storage medium | |
CN110782240B (en) | Business data processing method and device, computer equipment and storage medium | |
CN108446975B (en) | Quota management method and device | |
US20140351137A1 (en) | Methods and systems for providing a decision making platform | |
US20150206131A1 (en) | System and method for adaptive response protocol | |
CN107038645B (en) | Service processing method, device and system and server | |
JP2012533824A (en) | Systems and methods for real-time batch account processing | |
CN109472574A (en) | Method of payment, device, computer equipment and storage medium | |
CN112101955B (en) | Concurrent payment method, system and device | |
KR20080005247A (en) | Self-owned resources interactive method and processing method of electronic trade information and system | |
CN107194810A (en) | Asset allocation system and method | |
CN109087199A (en) | Account inquiries system, method and storage medium for bank | |
CN109447752A (en) | A kind of order transaction method for internet electric business | |
CN112181628B (en) | Resource transfer method, device, system and electronic equipment | |
CN108629582A (en) | Method for processing business and device | |
CN110619510B (en) | Multi-business-state joint operation management system and method for gas station | |
CN110689424B (en) | Funds supply and demand matching method and system | |
CN109166042A (en) | Node device, real-time account checking method and storage medium based on block chain | |
US20220101321A1 (en) | Systems and methods for processing resource transfer requests | |
CN109214911A (en) | The treating method and apparatus of bill reconciliation exception | |
US10216830B2 (en) | Multicomputer processing of client device request data using centralized event orchestrator and link discovery engine | |
CN105913265A (en) | Transaction method | |
CN106470250B (en) | Domain name registration method, device and system | |
CN110442312A (en) | A kind of customer information monitoring method, system and computer readable storage medium | |
US10296882B2 (en) | Multicomputer processing of client device request data using centralized event orchestrator and link discovery engine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |