CN109558124A - A kind of engine and method carrying out message interaction with third party system interface - Google Patents
A kind of engine and method carrying out message interaction with third party system interface Download PDFInfo
- Publication number
- CN109558124A CN109558124A CN201811510440.6A CN201811510440A CN109558124A CN 109558124 A CN109558124 A CN 109558124A CN 201811510440 A CN201811510440 A CN 201811510440A CN 109558124 A CN109558124 A CN 109558124A
- Authority
- CN
- China
- Prior art keywords
- message
- unit
- local service
- type
- service system
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention discloses a kind of engine and method that message interaction is carried out with third party system interface, is related to technical field of data processing;It is the processing engine interacted by way of message with third party's heterogeneous system, pass through isolation third party system and local service system, unified generating mode and analysis mode are provided the message of different type, format, third party system and local core business system is isolated, allow the carry out business development that local core business system is transparent, and need not be concerned about specific message generation, resolution rules, it need not also be concerned about the transmission of message, receive implementation.To make local core business system and third party system decouple, the exploitation and upgrading difficulty of core business system are reduced.
Description
Technical field
The present invention discloses a kind of engine and method, is related to technical field of data processing, specifically a kind of and third party
The engine and method of system interface progress message interaction.
Background technique
Message (message) is the data cell exchanged in network with transmission, i.e. the website data block disposably to be sent.
Message contains complete data information to be sent, and length is very inconsistent, and length is unlimited and variable.
In software systems, usually multiple heterogeneous systems form a complete processing system of operation flow.And it is each different
There is the demand of exchange data between construction system again.If using different communication modes between system and other each heterogeneous systems,
Or the communication using coupled mode, it will lead to system exception complexity, and upgrading can also be increased accordingly with redevelopment difficulty, after
The phase pressure of maintenance is very huge.
The present invention provides a kind of engine and method that message interaction is carried out with third party system interface, is and third party's isomery
The processing engine that system is interacted by way of message, unified generation is provided by the message to different type, format
Mode and analysis mode, isolation third party system and local core business system, keep local core business system transparent
Business development is carried out, and need not be concerned about specific message generation, resolution rules, the transmission of message need not be also concerned about, receive and realize
Mode.To make local core business system and third party system decouple, the exploitation and upgrading difficulty of core business system are reduced.
Summary of the invention
The present invention is directed to problem of the prior art, provide a kind of engine that message interaction is carried out with third party system interface and
The generating mode and analysis mode of message are uniformly processed by Message processing engine for method, carry out decoupling, multiple systems to system
Upgrade maintenance can be distinguished, reduce the exploitation and upgrading difficulty of core business system.
Concrete scheme proposed by the present invention is:
A kind of engine carrying out message interaction with third party system interface:
Including resolution unit, verification unit, generation unit, transmission unit,
Corresponding resolution unit is called according to the type of message and message format of agreement when receiving third party system message
Message is parsed, verification unit verifies message, and the business datum that transmission unit again goes out packet parsing is stored in this
Ground operation system database,
Call corresponding generation single according to the type of message and message format of agreement when sending local service system message
Member generates message according to the business datum of local service system, and verification unit verifies the message of generation, and transmission unit is again
By message notifying third party system.
When the engine receives third party system message:
According to type of message, the text body content of corresponding resolution unit analytic message type code and message is called,
Verification unit carries out integrality to the text body content of message and source verifies, while according to type of message code pair
Message format is verified,
After the completion of verification, packet parsing is further gone out business datum by resolution unit,
Business datum is stored in local service system database by transmission unit.
When the engine sends local service system message:
According to the corresponding type of message code of local service system business data, generation unit is called, is generating message just
Style content signs to text body content,
Verification unit verifies message format according to type of message code,
After the completion of verification, transmission unit is again by message notifying third party system.
When the engine receives third party system message, packet parsing is JSON using resolution unit by the engine
Data, are sent to local service system, and JSON data are changed into the JAVABEAN of internal system by local service system.
When the engine sends local service system message, local service system converts business datum from JAVABEAN
At JSON format, then business datum is sent to the generation unit of the engine.
A method of message interaction being carried out with third party system interface, using the engine, is receiving third party system
Corresponding resolution unit is called to parse message according to the type of message and message format of agreement when system message, verification unit
Message is verified, the business datum that transmission unit again goes out packet parsing is stored in local service system database,
Call corresponding generation single according to the type of message and message format of agreement when sending local service system message
Member generates message according to the business datum of local service system, and verification unit verifies the message of generation, and transmission unit is again
By message notifying third party system.
When receiving third party system message in the method:
According to type of message, the text body content of corresponding resolution unit analytic message type code and message is called,
Verification unit carries out integrality to the text body content of message and source verifies, while according to type of message code pair
Message format is verified,
After the completion of verification, packet parsing is further gone out business datum by resolution unit,
Business datum is stored in local service system database by transmission unit.
When sending local service system message in the method:
According to the corresponding type of message code of local service system business data, generation unit is called, is generating message just
Style content signs to text body content,
Verification unit verifies message format according to type of message code,
After the completion of verification, transmission unit is again by message notifying third party system.
Usefulness of the present invention is:
The present invention provides a kind of engine and method that message interaction is carried out with third party system interface, is and third party's isomery
The processing engine that system is interacted by way of message, by isolation third party system and local service system, to difference
Type, format message unified generating mode and analysis mode be provided, isolation third party system and local core business system,
Allow the carry out business development that local core business system is transparent, and need not be concerned about specific message generation, resolution rules,
It need not be concerned about the transmission of message, receive implementation.To make local core business system and third party system decouple, core is reduced
The exploitation and upgrading difficulty of heart operation system.
Detailed description of the invention
Fig. 1 is the flow diagram that third party's message is received in the method for the present invention;
The message flow diagram of local service system is sent in Fig. 2 the method for the present invention;
The each unit block diagram of Fig. 3 engine of the present invention;
The schematic diagram that format is converted during message sends and receives in Fig. 4 present invention.
Specific embodiment
It includes resolution unit, verification list that the present invention, which provides a kind of and third party system interface and carries out the engine of message interaction,
Member, generation unit, transmission unit,
Corresponding resolution unit is called according to the type of message and message format of agreement when receiving third party system message
Message is parsed, verification unit verifies message, and the business datum that transmission unit again goes out packet parsing is stored in this
Ground operation system database,
Call corresponding generation single according to the type of message and message format of agreement when sending local service system message
Member generates message according to the business datum of local service system, and verification unit verifies the message of generation, and transmission unit is again
By message notifying third party system.
A kind of method for carrying out message interaction with third party system interface corresponding with above-mentioned engine is provided simultaneously, is utilized
The engine calls corresponding parsing single when receiving third party system message according to the type of message and message format of agreement
Member parses message, and verification unit verifies message, and the business datum that transmission unit again goes out packet parsing is stored in
Local service system database,
Call corresponding generation single according to the type of message and message format of agreement when sending local service system message
Member generates message according to the business datum of local service system, and verification unit verifies the message of generation, and transmission unit is again
By message notifying third party system.
The present invention will be further explained below with reference to the attached drawings and specific examples, so that those skilled in the art can be with
It more fully understands the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Using engine of the present invention and method, according to the type of message and message format of agreement, certain operation system and the is realized
The message communication of three method, systems, wherein arranging in advance with third party system as follows:
Include the data field under specific business scenario in text body content MainBody;
When engine receives third party system message:
According to type of message, the text body content of corresponding resolution unit analytic message type code and message is called
MainBody,
The text body content MainBody of message is compared with the digital signature in message for verification unit, and verification is complete
Property and source, while using XSD template, message format is verified according to type of message code, verifies whether to meet about
Fixed message format,
After the completion of verification, according to type of message code, call corresponding resolution unit that packet parsing is further gone out business
Data,
Business datum is stored in local service system database by transmission unit, can notify local service system, is carried out subsequent
Processing;
When engine sends local service system message:
According to the corresponding type of message code of local service system business data, corresponding generation unit is called, generates report
The text body content MainBody of text, signs to text body content MainBody, to guarantee data completely and really,
Verification unit utilizes XSD template, is verified according to type of message code to message format, verifies whether to meet about
Fixed message format,
After the completion of verification, transmission unit is again by message notifying third party system.
In above process, when engine receives third party system message, XML message is resolved into JSON using resolution unit
Data, are sent to local service system, and JSON data are changed into the JAVABEAN of internal system by local service system;Engine is sent
When local service system message, business datum is converted into JSON format from JAVABEAN by local service system, then by business number
According to the generation unit for being sent to engine, the JSON data received are changed into XML message by generation unit, and transmission unit is then forwarded to
Three method, systems.
In the above-described embodiments, using the corresponding relationship of type of message code and engine resolution unit, message class is searched
The corresponding engine path of type code, such as type of message code are MSG001, then defining Message processing Engine Name is
MSG001Service, and arrange to be placed under directory A .B.Then the corresponding engine path type of message code MSG001 is
A.B.MSG001Service,
When engine-operated, when receiving the call request of MSG001, engine complete trails is assembled simultaneously according to the placement catalogue of agreement
Initial engine.
In the above-described embodiments, the resolution unit of engine, the process of analytic message are as follows:
Analytic message head obtains the data such as the type of message in heading, as follows:
In the above-described embodiments, the generation unit of corresponding engine is called according to type of message code:
In the above-described embodiments, generation unit tissue generates heading process:
In the above-described embodiments, the Map data object that local service system generates can also be converted to report by generation unit
Literary XML format is as follows:
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention
It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention
Protection scope within.Protection scope of the present invention is subject to claims.
Claims (8)
1. a kind of engine that message interaction is carried out with third party system interface, it is characterized in that
Including resolution unit, verification unit, generation unit, transmission unit,
Call corresponding resolution unit to report according to the type of message and message format of agreement when receiving third party system message
Text is parsed, and verification unit verifies message, and the business datum that transmission unit again goes out packet parsing is stored in local industry
Business system database,
Corresponding generation unit root is called according to the type of message and message format of agreement when sending local service system message
Message is generated according to the business datum of local service system, verification unit verifies the message of generation, and transmission unit again will report
Text notice third party system.
2. engine according to claim 1, it is characterized in that when receiving third party system message:
According to type of message, the text body content of corresponding resolution unit analytic message type code and message is called,
Verification unit carries out integrality to the text body content of message and source verifies, while according to type of message code to message
Format is verified,
After the completion of verification, packet parsing is further gone out business datum by resolution unit,
Business datum is stored in local service system database by transmission unit.
3. engine according to claim 1 or 2, it is characterized in that when sending local service system message:
According to the corresponding type of message code of local service system business data, generation unit is called, the text body of message is generated
Content signs to text body content,
Verification unit verifies message format according to type of message code,
After the completion of verification, transmission unit is again by message notifying third party system.
4. engine according to claim 3, it is characterized in that the engine utilizes parsing when receiving third party system message
Packet parsing is JSON data by unit, is sent to local service system, local service system changes into JSON data in system
The JAVABEAN in portion.
5. engine according to claim 4, it is characterized in that when sending local service system message, local service system is by industry
Data of being engaged in are converted into JSON format from JAVABEAN, then business datum is sent to the generation unit of the engine.
6. a kind of method for carrying out message interaction with third party system interface, it is characterized in that using engine described in claim 1,
When receiving third party system message according to the type of message and message format of agreement call corresponding resolution unit to message into
Row parsing, verification unit verify message, and the business datum that transmission unit again goes out packet parsing is stored in local service system
System database,
Corresponding generation unit root is called according to the type of message and message format of agreement when sending local service system message
Message is generated according to the business datum of local service system, verification unit verifies the message of generation, and transmission unit again will report
Text notice third party system.
7. according to the method described in claim 6, it is characterized in that when receiving third party system message:
According to type of message, the text body content of corresponding resolution unit analytic message type code and message is called,
Verification unit carries out integrality to the text body content of message and source verifies, while according to type of message code to message
Format is verified,
After the completion of verification, packet parsing is further gone out business datum by resolution unit,
Business datum is stored in local service system database by transmission unit.
8. method according to claim 6 or 7, it is characterized in that when sending local service system message:
According to the corresponding type of message code of local service system business data, generation unit is called, the text body of message is generated
Content signs to text body content,
Verification unit verifies message format according to type of message code,
After the completion of verification, transmission unit is again by message notifying third party system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811510440.6A CN109558124A (en) | 2018-12-11 | 2018-12-11 | A kind of engine and method carrying out message interaction with third party system interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811510440.6A CN109558124A (en) | 2018-12-11 | 2018-12-11 | A kind of engine and method carrying out message interaction with third party system interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109558124A true CN109558124A (en) | 2019-04-02 |
Family
ID=65869705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811510440.6A Pending CN109558124A (en) | 2018-12-11 | 2018-12-11 | A kind of engine and method carrying out message interaction with third party system interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558124A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647687A (en) * | 2013-12-25 | 2014-03-19 | 中国工商银行股份有限公司 | Method and device for verifying business parameters of application system |
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
US20160373558A1 (en) * | 2011-09-23 | 2016-12-22 | Guest Tek Interactive Entertainment Ltd. | Central interface gateway and method of interfacing a property management system with a guest service device via the internet |
CN106487712A (en) * | 2016-11-24 | 2017-03-08 | 泰康保险集团股份有限公司 | For accessing method, device and the server of multiple external systems |
CN108881172A (en) * | 2018-05-22 | 2018-11-23 | 阿里巴巴集团控股有限公司 | The analysis method and device of message |
-
2018
- 2018-12-11 CN CN201811510440.6A patent/CN109558124A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160373558A1 (en) * | 2011-09-23 | 2016-12-22 | Guest Tek Interactive Entertainment Ltd. | Central interface gateway and method of interfacing a property management system with a guest service device via the internet |
CN103647687A (en) * | 2013-12-25 | 2014-03-19 | 中国工商银行股份有限公司 | Method and device for verifying business parameters of application system |
CN105791178A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Message assembly method and device |
CN106487712A (en) * | 2016-11-24 | 2017-03-08 | 泰康保险集团股份有限公司 | For accessing method, device and the server of multiple external systems |
CN108881172A (en) * | 2018-05-22 | 2018-11-23 | 阿里巴巴集团控股有限公司 | The analysis method and device of message |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2006233229B2 (en) | Service broker integration layer for supporting telecommunication client service requests | |
US8229998B2 (en) | Open interface device and method | |
CN106656953A (en) | Method for realizing safe interface calling between systems based on Internet | |
CN101951319B (en) | Unified identity authentication method supporting data integration of heterogeneous application module | |
CN103716308B (en) | Multiprotocol platform communication method and multiprotocol platform | |
EP2492808A1 (en) | System and method for extending business systems to a mobile workforce | |
CN101674255B (en) | Method, server and system for forwarding messages of enterprise service bus | |
CN109660377A (en) | Unified configuring management method, service server and operation and maintenance management platform | |
CN103729189B (en) | Broadcasting method for converting protocol based on LUA, system, terminal | |
CN102841927A (en) | Method and device for data interaction among a plurality of databases and distributed data interaction system | |
US20040205154A1 (en) | System for integrated mobile devices | |
CN102521409B (en) | Method for updating data of database in batch mode based on communication protocol | |
AU2006233221A1 (en) | Message sequencing and data translation architecture for telecommunication services | |
CN107450869A (en) | The online print system and method for a kind of PDF electronic invoices layout files | |
CN109766082A (en) | The method and apparatus that the application program page jumps | |
CN102255914B (en) | Android network application program information verification method | |
CN110880146A (en) | Block chain chaining method, device, electronic equipment and storage medium | |
CN105187373B (en) | The transmission method and system of a kind of data | |
CN108897632A (en) | A kind of message system and message method | |
CN109508211A (en) | A kind of multilingual configuration method, device, system and electronic equipment | |
CN107040613A (en) | A kind of message transmitting method and system | |
CN102137102B (en) | Realizing method of service supporting platform for supporting multiclass information publishing modes | |
CN101090391A (en) | Software automatic updating method based on supertext transmission protocol mode | |
CN109672718A (en) | File delivery method, server, storage medium and device between system | |
CN109558124A (en) | A kind of engine and method carrying out message interaction with third party system interface |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190402 |