CN109617647A - Message forwarding method, device, computer equipment and computer readable storage medium - Google Patents
Message forwarding method, device, computer equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109617647A CN109617647A CN201811228744.3A CN201811228744A CN109617647A CN 109617647 A CN109617647 A CN 109617647A CN 201811228744 A CN201811228744 A CN 201811228744A CN 109617647 A CN109617647 A CN 109617647A
- Authority
- CN
- China
- Prior art keywords
- message
- parameter name
- parameter
- requesting party
- mapping table
- 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
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a kind of message forwarding method, device, computer equipment and computer readable storage mediums, the embodiment of the present invention is pre-configured with the corresponding relationship between the parameter name of the first message and the parameter name of the second message, the first message of requesting party, the second message for meeting our call format is converted to according to the processing template of corresponding relationship and configuration between parameter name by the processing template of configuration processing message format conversion.By being pre-configured with the corresponding relationship of the message of any requesting party and the parameter name of our message and the processing template of processing message format conversion, our interface can be called directly, the first message of any requesting party is converted into the second message, the interface for not needing to develop different-format standard for different requesting parties carries out data processing, reduce interface exploitation workload, save the cost, while avoiding the case where interface is various, interface inconvenient maintenance.
Description
Technical field
The present invention relates to auxiliary development technical field more particularly to a kind of message forwarding method, device, computer equipment and
Computer readable storage medium.
Background technique
Economic development is at full speed, and the cooperation between enterprise is also increasingly closer, however, specified by each enterprise development interface
Standard interface parameter is different, and the interface between the enterprise of cooperation can not be compatible with, this causes the enterprise with cooperation to carry out interface pair
It when connecing, needs the interface standard for partner to re-start interface exploitation, accumulates over a long period, cause the interface externally developed many
It is more, on the one hand not only need to waste exploitation manpower financial capacity, another aspect interface is excessively also not easy to interface control.
Summary of the invention
The embodiment of the invention provides a kind of message forwarding method, device, computer equipment and computer-readable storage mediums
Matter, it is intended to which the interface exploitation workload for reducing processing message conversion reduces cost.
In a first aspect, the embodiment of the invention provides a kind of message forwarding method, this method comprises: configuration message template and
Parameter name mapping table, the parameter name mapping table include corresponding between the parameter name of the first message and the parameter name of the second message
Relationship, the message template include parameter name label and the corresponding preset characters string of the parameter name label;If receiving request
The message request just sent, the message request include the first message and the identity of requesting party, parse first report
For text to obtain message data, the message data includes parameter name and parameter value;The request is obtained according to the identity
The parameter name mapping table and message template of side;According to the parameter name of the first message in the parameter name mapping table and the second message
Corresponding relationship between parameter name replaces with the corresponding preset characters string of parameter name label in the default message template described
The corresponding parameter value of the parameter name of first message, to generate the second message.
Second aspect, the embodiment of the invention also provides a kind of message conversion equipment, the message conversion equipment includes using
In the unit for realizing message forwarding method described in first aspect.
The third aspect, the embodiment of the invention also provides a kind of computer equipments, including memory, and with the storage
The connected processor of device, the memory are used to store the computer program for realizing message forwarding method, and the processor is used for
The computer program stored in the memory is run, to execute the method as described in above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has one or more than one computer program, and the one or more computer program is held by processor
Method described in above-mentioned first aspect is realized when row.
The embodiment of the invention provides a kind of message forwarding method, device, computer equipment and computer-readable storage mediums
Matter, the embodiment of the present invention are pre-configured with the corresponding relationship between the parameter name of the first message and the parameter name of the second message, configuration
Message template, according between parameter name corresponding relationship and message template the first message of requesting party is converted to and meets us
Second message of call format.By be pre-configured with the corresponding relationship of the message of any requesting party and the parameter name of our message with
And the message conversion module of message format, our interface can be called directly by the first message of any requesting party and be converted to the second report
Text does not need the interface that different-format standard is developed for different requesting party, reduces interface exploitation workload, save the cost,
The case where interface is various, interface inconvenient maintenance is avoided simultaneously.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram for message forwarding method that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides a kind of message forwarding method flow diagram;
Fig. 3 be another embodiment of the present invention provides a kind of message forwarding method flow diagram;
Fig. 4 be another embodiment of the present invention provides a kind of message forwarding method flow diagram;
Fig. 5 be another embodiment of the present invention provides a kind of message forwarding method flow diagram;
Fig. 6 is a kind of schematic block diagram for message conversion equipment that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides a kind of message conversion equipment schematic block diagram;
Fig. 8 be another embodiment of the present invention provides a kind of message conversion equipment schematic block diagram;
Fig. 9 be another embodiment of the present invention provides a kind of message conversion equipment schematic block diagram;
Figure 10 be another embodiment of the present invention provides a kind of message conversion equipment schematic block diagram;
Figure 11 is a kind of structural representation block diagram for computer equipment that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that referring in description of the invention to term "and/or" used in the appended claims related
Join any combination and all possible combinations of one or more of item listed, and including these combinations.
It will also be understood that these elements are not answered although term first, second etc. can be used to describe various elements herein
This is limited to these terms, these terms are only used to for these elements being distinguished from each other out.
Fig. 1 is a kind of flow diagram of message forwarding method provided in an embodiment of the present invention, and this method can be applied to end
End or server, wherein terminal can be smart phone, tablet computer, laptop, desktop computer etc. with communication function
Electronic equipment.Server can be independent server, be also possible to the server cluster of multiple server compositions.Such as Fig. 1
It is shown, the method comprising the steps of S101~S104.
S101, configuration message template and parameter name mapping table, the parameter name mapping table include the parameter name of the first message
Corresponding relationship between the parameter name of the second message, the message template include parameter name label and the parameter name label pair
The preset characters string answered.
It is usually to generate message according to the customized format of enterprise that our its internal interface of enterprise development, which generates message, because
This, in order to convert the message from external different-format to the message format for meeting enterprise's self norms, we are first
The message format required according to institute's enterprises is needed, it is used in message template for different requesting party's setting message templates
To format meet our enterprise message format.
The parameter name of parameter name mapping table mapping request side (enterprise, partner) message and the parameter name of our enterprise's message
Between corresponding relationship, have configuration message template and parameter name mapping table, can be by our enterprise interface to different requests
The message of side formats.
If S102, the message request for receiving requesting party's transmission, the message request includes the first message and requesting party
Identity, parse first message to obtain message data, the message data includes parameter name and parameter value.
The requesting party that the embodiment of the present invention is sayed for our enterprise partner, because partner and we interface exploitation or
Built-in system is different, and the format for the message that the two generates is inconsistent, and the service message of partner has it personalized, by any conjunction
The message that work side is sent to us is referred to as the first message, and the first message is inside partner according to the business institute cooperated with us
The transaction message of generation.
Before formatting, need first to parse the first message and obtain message data, in message data it is general at least
Including a parameter name (Key) and a parameter value (Value).
For example, we is insurance company, the first message is that requesting party cooperates to generate business transaction with us, is handed over according to business
The message being also easy to produce.First message can be taking out insurances message, insurance surrender message etc., include number of policy in message data, throw
Number of policy, insurer's name, cell-phone number, certificate number, warrantee's name, cell-phone number, the reinsurance-relevant datas such as certificate number.
S103, the parameter name mapping table and message template that the requesting party is obtained according to the identity.
For indicating which cooperative enterprise requesting party is, identity can be for the requesting party's for the identity of requesting party
Enterprise name (can use english abbreviation or pinyin representation), or the IP address of the request interface of requesting party.Parameter name mapping
The corresponding relationship between the parameter name of the first message and the parameter name of the second message, the parameter of the embodiment of the present invention are had mapped in table
Name mapping table such as the following table 1:
Table 1: parameter name mapping table
Only go out partial parameters definition it should be noted that showing in table 1, and not all parameter definition.
Message template includes the parameter name label and the corresponding preset characters string of parameter name label of different parameters name.Example
Such as, the method for any one group of Key and Value is indicated in message template are as follows:
<our parameter name>$ { requesting party's parameter name }</our parameter name>
Wherein,<our parameter name></our parameter name>for one group of parameter name label, for indicating Key, { requesting party joins $
It is several } it is corresponding preset characters string, for indicating the corresponding Value of the Key.
S104, according to pair in the parameter name mapping table between the parameter name of the first message and the parameter name of the second message
It should be related to, the corresponding preset characters string of parameter name label in the default message template is replaced with to the parameter of first message
The corresponding parameter value of name, to generate the second message.
After obtaining each group (Key, Value) of the first message, it is based on message template, according to the Key of the first message and the
Corresponding relationship between the Key of two messages can be completed after replacing Value in message template at corresponding $ { parameter name }
The format of message is converted, and the second message of format needed for us is obtained.
The format conversion process of the embodiment of the present invention illustrated below:
The format of the first message of requesting party is Key:Value, and partial content is as follows:
" policyHolder ": " Zhang San "
"policyHolderPaper":"1234567890912"
"policyHolderPhone":"13311112222"
Our corresponding message template content is as follows:
<applicantName>${policyHolder}</applicantName>
<applicantCertificateNo>${policyHolderPaper}</applicantCertificateNo>
<applicantMobileTelephone>${policyHolderPhone}</applicantMobileTelephone>
The second obtained message content is as follows:
<applicantName>" Zhang San "</applicantName>
<applicantCertificateNo>"1234567890912"</applicantCertificateNo>
<applicantMobileTelephone>"13311112222"</applicantMobileTelephone>
Message forwarding method provided in an embodiment of the present invention is pre-configured with the parameter name of the first message and the ginseng of the second message
Corresponding relationship between several, configuration message template, according between parameter name corresponding relationship and message template by requesting party
The first message be converted to the second message for meeting our call format.By be pre-configured with any requesting party message and we
The corresponding relationship of the parameter name of message and the message conversion module of message format can call directly our interface for any request
First message of side is converted to the second message, does not need the interface for developing different-format standard for different requesting parties, reduces
Interface exploitation workload, save the cost, while avoiding the case where interface is various, interface inconvenient maintenance.
Fig. 2 be another embodiment of the present invention provides a kind of message forwarding method flow diagram, this method include step
Rapid S101~S207.Compared with above-described embodiment, the embodiment of the present invention increases step S203-S205, other steps are constant, because
This in the present embodiment will not repeat other steps.
S201, configuration message template and parameter name mapping table, the parameter name mapping table include the parameter name of the first message
Corresponding relationship between the parameter name of the second message, the message template include parameter name label and the parameter name label pair
The preset characters string answered.
If S202, the message request for receiving requesting party's transmission, the message request includes the first message and requesting party
Identity, parse first message to obtain message data, the message data includes parameter name and parameter value.
S203, default verification rule is obtained.
Default verification rule includes non-empty verification rule, cell-phone number verification rule, mailbox verification rule, date verification rule
Then, numerical check rule etc..
For default proof rule such as the following table 2 of different parameters:
Table 2: the default verification rule of each parameter
It should be noted that show the default verification rule for only having gone out partial parameters in table 2, and the default school of not all parameter
Test rule.
Whether S204, the parameters value for verifying first message meet the default verification rule, if it is not, executing step
Rapid S205, if so, executing step S206.
The result of S205, Xiang Suoshu requesting party's back-checking mistake.
Default verification rule is for ensuring that current declaration form is Valid Policy, and the parameter only required meets default
Verification rule, which is only effective declaration form, can be used as successful business transaction, needs to the secondary business transaction (i.e. the
One message) it formats, otherwise, the avoidance of policy, to the result of requesting party's back-checking mistake.
S206, the parameter name mapping table and message template that the requesting party is obtained according to the identity.
S207, according to pair in the parameter name mapping table between the parameter name of the first message and the parameter name of the second message
It should be related to, the corresponding preset characters string of parameter name label in the default message template is replaced with to the parameter of first message
The corresponding parameter value of name, to generate the second message.
Enterprise carries out externally docking exploitation according to the standard interface that it is formulated, it is only necessary to be pre-configured with unified format standard
Message template, when receiving the personalized message that different partners send, after analytic message content, according to corresponding with requesting party
Message template different partners can be had personalized message be converted to meet enterprises and unify message format standard
Message, realize the separation of business datum and interface logic, do not need externally to develop various criterion for different partners and connect
The interface of mouthful parameter, reduces interface exploitation workload, save the cost, meanwhile, unitized interface be also convenient for interface management and
Extension.
Fig. 3 be another embodiment of the present invention provides a kind of message forwarding method flow diagram, the embodiment with before
One embodiment is compared, and step S208-S209 is increased after step S207:
The type of S208, identification second message.
It whether there is special field according in the second message, for example whether judging the class of the second message there are surrender people
Type is the business of surrender class;If there is no surrender people, then identify that the message is the business of class of insuring according to insurer.
Alternatively, the coding for the type for distinguishing the message for including in the message sended over according to requesting party is (by asking
The side's of asking definition is reported insurance company or is directly formulated by insurance company to pair between requesting party's coding used and the type of business
Should be related to), the type of message is finally identified according to the corresponding coding of type.
S209, second message saved according to the type of second message it is corresponding to type described in database
In tables of data.
Have in database and save the corresponding tables of data of different type message, different types of message is subjected to difference guarantor
It deposits.
Fig. 4 be another embodiment of the present invention provides a kind of message forwarding method flow diagram, the embodiment and Fig. 2
Embodiment compare, step S210 is increased after step S207:
S210, second message is saved to requesting party couple described in database according to the identity of the requesting party
In the tables of data answered.
Requesting party is sending the identity (such as IP address of requesting party etc.) that message carries requesting party to enterprise, leads to
The identity for crossing requesting party may recognize which cooperative venture requesting party is, have the industry for saving different requesting parties in database
The corresponding tables of data of business data/message, the embodiment of the present invention carry out data preservation according to the ownership of business.
Fig. 5 be another embodiment of the present invention provides a kind of message forwarding method flow diagram, the embodiment and Fig. 2
Embodiment compare, step S211-S213 is increased after step S207:
The type of S211, identification second message.
It whether there is special field according in the second message, for example whether judging the class of the second message there are surrender people
Type is the business of surrender class;If there is no surrender people, then identify that the message is the business of class of insuring according to insurer.
Alternatively, the coding for the type for distinguishing the message for including in the message sended over according to requesting party is (by asking
The side's of asking definition is reported insurance company or is directly formulated by insurance company to pair between requesting party's coding used and the type of business
Should be related to), the type of message is finally identified according to the corresponding coding of type.
S212, the corresponding data storage area of requesting party described in database is searched according to the identity of the requesting party.
There is the corresponding data storage area for saving different requesting party's data, by the message of different requesting parties in database
Carry out difference preservation.
S213, second message is saved to class described in the data storage area according to the type of second message
In the corresponding tables of data of type.
Have in the holding area of each requesting party and save the corresponding tables of data of different type message, by different type
Message carry out difference preservation.
Message forwarding method of the invention realizes the separation of business datum and interface logic, does not need for different conjunctions
The interface of the external exploitation various criterion interface parameters in work side, reduction interface exploitation workload, save the cost, meanwhile, it is unitized
Interface is also convenient for the management and extension of interface;It is saved in addition, carrying out classification to different requesting parties, different types of business datum
Convenient for the management of data.
Fig. 6 is a kind of 100 schematic block diagram of message conversion equipment provided in an embodiment of the present invention, the message conversion equipment
100 include configuration unit 101, resolution unit 102, first acquisition unit 103 and generation unit 104.
Configuration unit 101 is used for configuration message template and parameter name mapping table, and the parameter name mapping table includes the first report
Corresponding relationship between the parameter name of text and the parameter name of the second message, the message template includes parameter name label and the ginseng
The corresponding preset characters string of several labels.
If resolution unit 102 is used to receive the message request of requesting party's transmission, the message request includes the first message
And the identity of requesting party, parse first message to obtain message data, the message data include parameter name and
Parameter value.
First acquisition unit 103 is used to obtain the parameter name mapping table and message of the requesting party according to the identity
Template.
Generation unit 104 is used for the parameter according to the parameter name of the first message and the second message in the parameter name mapping table
Corresponding relationship between name, replaces with described first for the corresponding preset characters string of parameter name label in the default message template
The corresponding parameter value of the parameter name of message, to generate the second message.
Fig. 7 be another embodiment of the present invention provides a kind of 200 schematic block diagram of message conversion equipment, the message converting means
Setting 200 includes configuration unit 201, resolution unit 202, second acquisition unit 203, verification unit 204, return unit 205, first
Acquiring unit 206 and generation unit 207.
Configuration unit 201 is used for configuration message template and parameter name mapping table, and the parameter name mapping table includes the first report
Corresponding relationship between the parameter name of text and the parameter name of the second message, the message template includes parameter name label and the ginseng
The corresponding preset characters string of several labels.
If resolution unit 202 is used to receive the message request of requesting party's transmission, the message request includes the first message
And the identity of requesting party, parse first message to obtain message data, the message data include parameter name and
Parameter value.
Second acquisition unit 203 is for obtaining default verification rule.
Whether the parameters value that verification unit 204 is used to verify first message meets the default verification rule.
If return unit 205 does not meet the default verification rule for the arbitrary parameter value of first message, to institute
State the result of requesting party's back-checking mistake.
If the parameters value that first acquisition unit 206 is used to verify first message meets the default verification rule
Then, the parameter name mapping table and message template of the requesting party are obtained according to the identity.
Generation unit 207 is used for the parameter according to the parameter name of the first message and the second message in the parameter name mapping table
Corresponding relationship between name, replaces with described first for the corresponding preset characters string of parameter name label in the default message template
The corresponding parameter value of the parameter name of message, to generate the second message.
In another embodiment, as shown in figure 8, in comprising Fig. 7 in addition to each unit, the message conversion equipment 200 is also
Including recognition unit 208 and the first storage unit 209.
First recognition unit 208 is used for after generation unit generates the second message, identifies the type of second message.
First storage unit 209 is for saving second message into database according to the type of second message
In the corresponding tables of data of the type.
In another embodiment, as shown in figure 9, in comprising Fig. 7 in addition to each unit, the message conversion equipment 200 is also
Including the second storage unit 210, second storage unit 210 is used for described second according to the identity of the requesting party
Message is saved into the corresponding tables of data of requesting party described in database.
In another embodiment, as shown in Figure 10, in comprising Fig. 7 in addition to each unit, the message conversion equipment 200 is also
Including the second recognition unit 211, searching unit 212 and third storage unit 213
The type of second recognition unit 211, second message for identification.
Searching unit 212 is used to search the corresponding number of requesting party described in database according to the identity of the requesting party
According to memory block.
Third storage unit 213 is for saving second message to the data according to the type of second message
In the corresponding tables of data of type described in memory block.
Aforementioned message conversion equipment is corresponding with aforementioned message forwarding method, not detailed to message conversion equipment in the present embodiment
Place can refer to preceding method embodiment, be not repeated herein.
Aforementioned message conversion equipment can be implemented as a kind of form of computer program, and computer program can be in such as Figure 11
Shown in run in computer equipment.
Figure 11 is a kind of structural representation block diagram of computer equipment 300 provided in an embodiment of the present invention.The computer is set
Standby 300, which is server or terminal, wherein terminal can be smart phone, tablet computer, notebook electricity
There is the electronics of communication function to set for brain, desktop computer etc., and server can be independent server, be also possible to multiple servers
The server cluster of composition.
The computer equipment 300 includes processor 302, memory and the network interface connected by system bus 301
305, wherein memory may include non-volatile memory medium 303 and built-in storage 304.
The non-volatile memory medium 303 of the computer equipment 300 can storage program area 3031 and computer program
3032, which is performed, and processor 302 may make to execute a kind of message forwarding method.The built-in storage
304 provide environment for the operation of the computer program 3032 in non-volatile memory medium 303.The place of the computer equipment 300
Device 302 is managed for providing calculating and control ability, supports the operation of entire computer equipment 300.The network of computer equipment 300
Interface 305 is for carrying out network communication, such as task, the reception data of transmission distribution.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 11 is not constituted to computer
The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or
Person combines certain components or different component layouts.For example, in some embodiments, computer equipment can only include depositing
Reservoir and processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 11,
Details are not described herein.
Processor 302 run non-volatile memory medium 303 in computer program 3032 when, processor 302 execute with
Lower step: configuration message template and parameter name mapping table, the parameter name mapping table include the parameter name and second of the first message
Corresponding relationship between the parameter name of message, the message template include that parameter name label and the parameter name label are corresponding pre-
If character string;If receiving the message request of requesting party's transmission, the message request includes the first message and the body of requesting party
Part mark parses first message to obtain message data, and the message data includes parameter name and parameter value;According to described
Identity obtains the parameter name mapping table and message template of the requesting party;According to the first message in the parameter name mapping table
Parameter name and the second message parameter name between corresponding relationship, parameter name label in the default message template is corresponding
Preset characters string replaces with the corresponding parameter value of parameter name of first message, to generate the second message.
In one embodiment, the processor 302 described is got parms a mapping table according to the identity executing
And before the step of message template, following steps are also executed: obtaining default verification rule;Verify each ginseng of first message
Whether numerical value meets the default verification rule;If so, executing the ginseng for obtaining the requesting party according to the identity
The step of several mapping tables and message template;If it is not, to the result of requesting party's back-checking mistake.
In one embodiment, the processor 302 is described according to the first message in the parameter name mapping table in execution
Corresponding relationship between parameter name and the parameter name of the second message, parameter name label in the default message template is corresponding pre-
If character string replaces with the corresponding parameter value of parameter name of first message, after the step of the second message of generation, also hold
Row following steps: the type of identification second message;According to the type of second message by second message save to
In the corresponding tables of data of type described in database.
In one embodiment, the processor 302 is described according to the first message in the parameter name mapping table in execution
Corresponding relationship between parameter name and the parameter name of the second message, parameter name label in the default message template is corresponding pre-
If character string replaces with the corresponding parameter value of parameter name of first message, after the step of the second message of generation, also hold
Row following steps: second message is saved to requesting party described in database according to the identity of the requesting party and is corresponded to
Tables of data in.
In one embodiment, the processor 302 is described according to the first message in the parameter name mapping table in execution
Corresponding relationship between parameter name and the parameter name of the second message, parameter name label in the default message template is corresponding pre-
If character string replaces with the corresponding parameter value of parameter name of first message, after the step of the second message of generation, also hold
Row following steps: the type of identification second message;It is searched according to the identity of the requesting party and is asked described in database
The corresponding data storage area in the side of asking;Second message is saved to the data storage area according to the type of second message
Described in the corresponding tables of data of type.
It should be appreciated that in the embodiment of the present application, processor 302 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process,
It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey
Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science
At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has
One perhaps more than one computer program the one or more computer program can by one or more than one
Processor execute, it can be achieved that following steps: configuration message template and parameter name mapping table, the parameter name mapping table include the
Corresponding relationship between the parameter name of one message and the parameter name of the second message, the message template include parameter name label and institute
State the corresponding preset characters string of parameter name label;If receiving the message request of requesting party's transmission, the message request includes the
The identity of one message and requesting party parse first message to obtain message data, and the message data includes ginseng
Several and parameter value;The parameter name mapping table and message template of the requesting party are obtained according to the identity;According to described
Corresponding relationship in parameter name mapping table between the parameter name of the first message and the parameter name of the second message, by the default message
The corresponding preset characters string of parameter name label replaces with the corresponding parameter value of parameter name of first message in template, to generate
Second message.
In one embodiment, it described is got parms the step of a mapping table and message template according to the identity realizing
Before rapid, the default verification rule of acquisition is also performed the steps of;Whether the parameters value for verifying first message meets institute
State default verification rule;If so, executing the parameter name mapping table and report for obtaining the requesting party according to the identity
The step of literary template;If it is not, to the result of requesting party's back-checking mistake.
In one embodiment, described according to the parameter name of the first message in the parameter name mapping table and the second report in realization
Corresponding relationship between the parameter name of text, the corresponding preset characters string of parameter name label in the default message template is replaced with
The corresponding parameter value of parameter name of first message also performs the steps of identification after the step of the second message of generation
The type of second message;Second message is saved to type described in database according to the type of second message
In corresponding tables of data.
In one embodiment, described according to the parameter name of the first message in the parameter name mapping table and the second report in realization
Corresponding relationship between the parameter name of text, the corresponding preset characters string of parameter name label in the default message template is replaced with
The corresponding parameter value of parameter name of first message also performs the steps of basis after the step of the second message of generation
The identity of the requesting party saves second message into the corresponding tables of data of requesting party described in database.
In one embodiment, described according to the parameter name of the first message in the parameter name mapping table and the second report in realization
Corresponding relationship between the parameter name of text, the corresponding preset characters string of parameter name label in the default message template is replaced with
The corresponding parameter value of parameter name of first message also performs the steps of identification after the step of the second message of generation
The type of second message;The corresponding data of requesting party described in database are searched according to the identity of the requesting party to deposit
Storage area;Second message saved according to the type of second message corresponding to type described in the data storage area
In tables of data.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various computer readable storage mediums that can store program code such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.
Claims (10)
1. a kind of message forwarding method characterized by comprising
Configuration message template and parameter name mapping table, the parameter name mapping table include the parameter name and the second message of the first message
Parameter name between corresponding relationship, the message template includes parameter name label and the corresponding predetermined word of the parameter name label
Symbol string;
If receiving the message request of requesting party's transmission, the message request includes the first message and the identity mark of requesting party
Know, parses first message to obtain message data, the message data includes parameter name and parameter value;
The parameter name mapping table and message template of the requesting party are obtained according to the identity;
It, will according to the corresponding relationship in the parameter name mapping table between the parameter name of the first message and the parameter name of the second message
In the default message template the corresponding preset characters string of parameter name label replace with first message parameter name it is corresponding
Parameter value, to generate the second message.
2. message forwarding method according to claim 1, which is characterized in that described according to identity acquisition
Before the parameter name mapping table and message template of requesting party, further includes:
Obtain default verification rule;
Whether the parameters value for verifying first message meets the default verification rule;
If the parameters value of first message meets the default verification rule, execution is described to be obtained according to the identity
The step of taking the parameter name mapping table and message template of the requesting party;
If the arbitrary parameter value of first message does not meet the default verification rule, Xiang Suoshu requesting party's back-checking mistake
Result.
3. message forwarding method according to claim 1, which is characterized in that described according in the parameter name mapping table
Corresponding relationship between the parameter name of one message and the parameter name of the second message, by parameter name label in the default message template
Corresponding preset characters string replaces with the corresponding parameter value of parameter name of first message, after generating the second message, also
Include:
Identify the type of second message;
Second message is saved into the corresponding tables of data of type described in database according to the type of second message.
4. message forwarding method according to claim 1, which is characterized in that described according in the parameter name mapping table
Corresponding relationship between the parameter name of one message and the parameter name of the second message, by parameter name label in the default message template
Corresponding preset characters string replaces with the corresponding parameter value of parameter name of first message, after generating the second message, also
Include:
Second message is saved into data corresponding to requesting party described in database according to the identity of the requesting party
In table.
5. message forwarding method according to claim 1, which is characterized in that described according in the parameter name mapping table
Corresponding relationship between the parameter name of one message and the parameter name of the second message, by parameter name label in the default message template
Corresponding preset characters string replaces with the corresponding parameter value of parameter name of first message, after generating the second message, also
Include:
Identify the type of second message;
The corresponding data storage area of requesting party described in database is searched according to the identity of the requesting party;
Second message saved according to the type of second message corresponding to type described in the data storage area
In tables of data.
6. a kind of message conversion equipment characterized by comprising
Configuration unit is used for configuration message template and parameter name mapping table, and the parameter name mapping table includes the ginseng of the first message
Several corresponding relationships between the parameter name of the second message, the message template include parameter name label and the parameter identifier
Sign corresponding preset characters string;
Resolution unit, if the message request for receiving requesting party's transmission, the message request includes the first message and asks
The identity for the side of asking parses first message to obtain message data, and the message data includes parameter name and parameter value;
First acquisition unit, for obtaining the parameter name mapping table and message template of the requesting party according to the identity;
Generation unit, for according in the parameter name mapping table between the parameter name of the first message and the parameter name of the second message
Corresponding relationship, the corresponding preset characters string of parameter name label in the default message template is replaced with into first message
The corresponding parameter value of parameter name, to generate the second message.
7. message conversion equipment according to claim 6, which is characterized in that further include:
Second acquisition unit, for being mapped in first acquisition unit according to the parameter name that the identity obtains the requesting party
Before table and message template, default verification rule is obtained;
Whether verification unit, the parameters value for verifying first message meet the default verification rule;
Return unit, if the arbitrary parameter value for first message does not meet the default verification rule, to the request
The result of square back-checking mistake.
The first acquisition unit is specifically used for, if the parameters value of verification first message meets the default verification rule
Then, the parameter name mapping table and message template of the requesting party are obtained according to the identity.
8. message conversion equipment according to claim 6, which is characterized in that further include:
Recognition unit, for identifying the type of second message after generation unit generates the second message;
First storage unit, for being saved second message to class described in database according to the type of second message
In the corresponding tables of data of type.
9. a kind of computer equipment, which is characterized in that described to deposit including memory and the processor being connected with the memory
Reservoir is used to store the computer program for realizing message forwarding method, and the processor stores in the memory for running
Computer program, to execute such as method described in any one of claim 1 to 5.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
More than one computer program realizes such as claim when the one or more computer program is executed by processor
1 to 5 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811228744.3A CN109617647B (en) | 2018-10-22 | 2018-10-22 | Message conversion method and device, computer equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811228744.3A CN109617647B (en) | 2018-10-22 | 2018-10-22 | Message conversion method and device, computer equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109617647A true CN109617647A (en) | 2019-04-12 |
CN109617647B CN109617647B (en) | 2022-10-25 |
Family
ID=66002576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811228744.3A Active CN109617647B (en) | 2018-10-22 | 2018-10-22 | Message conversion method and device, computer equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109617647B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445860A (en) * | 2019-08-06 | 2019-11-12 | 深圳市金证科技股份有限公司 | A kind of file transmitting method, device, terminal device and storage medium |
CN110933146A (en) * | 2019-11-14 | 2020-03-27 | 厦门网宿有限公司 | Data conversion method and device and server |
CN113037844A (en) * | 2021-03-12 | 2021-06-25 | 北京京东振世信息技术有限公司 | Identification updating method and device |
CN114070886A (en) * | 2021-11-17 | 2022-02-18 | 深圳壹账通智能科技有限公司 | Message conversion method, device, equipment and medium |
CN114500666A (en) * | 2021-12-29 | 2022-05-13 | 海南同享数字科技有限公司 | XML-based custom message general method and device and electronic equipment |
CN114745449A (en) * | 2022-04-13 | 2022-07-12 | 中国银行股份有限公司 | Message processing method and device, storage medium and electronic equipment |
CN115102829A (en) * | 2022-08-25 | 2022-09-23 | 平安银行股份有限公司 | Request message processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420437A (en) * | 2008-11-14 | 2009-04-29 | 北京航空航天大学 | Interface device for prototype system and HLA simulation system |
WO2016177206A1 (en) * | 2015-07-27 | 2016-11-10 | 中兴通讯股份有限公司 | Command line processing method and device |
CN107172012A (en) * | 2017-04-18 | 2017-09-15 | 北京思特奇信息技术股份有限公司 | A kind of message format conversion method and system |
WO2018006789A1 (en) * | 2016-07-04 | 2018-01-11 | 中兴通讯股份有限公司 | Parameter checking method and apparatus, and network management server and computer storage medium |
CN107665464A (en) * | 2017-09-18 | 2018-02-06 | 平安科技(深圳)有限公司 | Generate method, apparatus, equipment and the computer-readable recording medium of reference message |
-
2018
- 2018-10-22 CN CN201811228744.3A patent/CN109617647B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420437A (en) * | 2008-11-14 | 2009-04-29 | 北京航空航天大学 | Interface device for prototype system and HLA simulation system |
WO2016177206A1 (en) * | 2015-07-27 | 2016-11-10 | 中兴通讯股份有限公司 | Command line processing method and device |
WO2018006789A1 (en) * | 2016-07-04 | 2018-01-11 | 中兴通讯股份有限公司 | Parameter checking method and apparatus, and network management server and computer storage medium |
CN107172012A (en) * | 2017-04-18 | 2017-09-15 | 北京思特奇信息技术股份有限公司 | A kind of message format conversion method and system |
CN107665464A (en) * | 2017-09-18 | 2018-02-06 | 平安科技(深圳)有限公司 | Generate method, apparatus, equipment and the computer-readable recording medium of reference message |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445860A (en) * | 2019-08-06 | 2019-11-12 | 深圳市金证科技股份有限公司 | A kind of file transmitting method, device, terminal device and storage medium |
CN110445860B (en) * | 2019-08-06 | 2022-08-02 | 深圳市金证科技股份有限公司 | Message sending method, device, terminal equipment and storage medium |
CN110933146A (en) * | 2019-11-14 | 2020-03-27 | 厦门网宿有限公司 | Data conversion method and device and server |
CN110933146B (en) * | 2019-11-14 | 2022-09-16 | 厦门网宿有限公司 | Data conversion method and device and server |
CN113037844A (en) * | 2021-03-12 | 2021-06-25 | 北京京东振世信息技术有限公司 | Identification updating method and device |
CN114070886A (en) * | 2021-11-17 | 2022-02-18 | 深圳壹账通智能科技有限公司 | Message conversion method, device, equipment and medium |
CN114500666A (en) * | 2021-12-29 | 2022-05-13 | 海南同享数字科技有限公司 | XML-based custom message general method and device and electronic equipment |
CN114745449A (en) * | 2022-04-13 | 2022-07-12 | 中国银行股份有限公司 | Message processing method and device, storage medium and electronic equipment |
CN114745449B (en) * | 2022-04-13 | 2024-01-30 | 中国银行股份有限公司 | Message processing method and device, storage medium and electronic equipment |
CN115102829A (en) * | 2022-08-25 | 2022-09-23 | 平安银行股份有限公司 | Request message processing method and device |
CN115102829B (en) * | 2022-08-25 | 2022-11-29 | 平安银行股份有限公司 | Request message processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109617647B (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109617647A (en) | Message forwarding method, device, computer equipment and computer readable storage medium | |
CN109617646A (en) | Message forwarding method, device, computer equipment and computer readable storage medium | |
US9582594B2 (en) | Method and system for centralized issue tracking | |
CN107463409A (en) | A kind of interface conversion method, interface convertor, storage medium and electric terminal | |
CN112162965B (en) | Log data processing method, device, computer equipment and storage medium | |
CN109388657B (en) | Data processing method, device, computer equipment and storage medium | |
US10558655B2 (en) | Data query method supporting natural language, open platform, and user terminal | |
CN110135590B (en) | Information processing method, information processing apparatus, information processing medium, and electronic device | |
CN111782652B (en) | Data calling method, device, computer equipment and storage medium | |
CN114528044B (en) | Interface calling method, device, equipment and medium | |
CN111949550B (en) | Method, device, equipment and storage medium for automatically generating test data | |
CN112861529A (en) | Method and device for managing error codes | |
CN109547322A (en) | System prompt control method, device, computer and computer readable storage medium | |
US9401846B2 (en) | Information handling system configuration identification tool and method | |
CN106412141A (en) | Processing method and system for domain name template registration | |
CN111445319A (en) | Voucher generation method and device, computer equipment and storage medium | |
CN111104556A (en) | Service processing method and device | |
CN110737425B (en) | Method and device for establishing application program of charging platform system | |
CN111324645B (en) | Block chain data processing method and device | |
WO2012154593A1 (en) | Email address and telephone number unification systems and methods | |
CN116094907A (en) | Complaint information processing method, complaint information processing device and storage medium | |
CN115033451A (en) | Data generation method, data processing device, electronic device, and medium | |
CN114217790A (en) | Interface scheduling method and device, electronic equipment and medium | |
CN114186958A (en) | Method, computing device and storage medium for exporting list data as spreadsheet | |
CN114374737A (en) | Message pushing method and device, computer equipment and storage medium |
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 |