CN105824926A - Method for dynamically selecting and calling external system interface - Google Patents
Method for dynamically selecting and calling external system interface Download PDFInfo
- Publication number
- CN105824926A CN105824926A CN201610152539.8A CN201610152539A CN105824926A CN 105824926 A CN105824926 A CN 105824926A CN 201610152539 A CN201610152539 A CN 201610152539A CN 105824926 A CN105824926 A CN 105824926A
- Authority
- CN
- China
- Prior art keywords
- interface
- call
- data
- external system
- context data
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- 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/04—Billing or invoicing
Abstract
The invention discloses a method for dynamically selecting and calling an external system interface. The method comprises the implementation procedures: firstly, defining information on alternative external interfaces; setting a selection mode for the alternative external interfaces, and dynamically selecting an appropriate interface; adapting context data to a format required by the selected interface and calling the selected interface; ordering data returned by the external interface into a unified format. Compared with the prior art, the method for dynamically selecting and calling the external system interface, disclosed by the invention, has the advantages that the interface is dynamically selected, and parameters required by the interface are automatically adapted; by using the method, the appropriate interface can be dynamically selected conveniently by taking the context data as standards, the format of the context data is converted into the format acceptable to the target interface, and the context data are called, so that the condition that which external system interface should be selected and be subjected to calling in a specific scenario can be conveniently determined, the practicability is high, and the popularization is facilitated.
Description
Technical field
The present invention relates to field of computer technology, a kind of method of dynamic Selection and call external system interface.
Background technology
One software system often needs to call the interface that another software system provides, and this situation is it is generally required to called side and called side provisioning interface standard.Thus face when there is multiple similar interface provider, the problem how to select.As a example by management software, there is following demand:
User is by the image of multiple image systems management original certificate, and management software it needs to be determined that be submitted to the interface of which image system by image;
The electronic invoice checking interface that each province and city revenue department provides is different, during management software online verification electronic invoice, needs to determine which system to submit checking request to according to location, the side of making out an invoice.
Based on above demand, we have proposed a kind of when there is multiple alternative external system interface, the most dynamically selecting interface the method correctly called.These alternative external systems usually provide the heterogeneous system of approximation function, and the use condition of its interface provided, desired parameters and return data form have been similar to the most not the same.The method proposed in this invention can determine easily and which external system interface execution should be selected to call under special scenes.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of method of dynamic Selection and call external system interface.
A kind of method of dynamic Selection and call external system interface, it realizes process and is:
First the information of alternative external interface is defined;
The selection mode of alternative external interface is set, dynamically selects suitable interface;
Context data is adapted for the form required by the interface of this selection and calls;
The data compilation returned by external interface is unified form.
The information of alternative external interface: the Selection and call mode of interface, select the condition of this interface, the mode that context data is adapted for this interface parameters, the mode that data compilation is consolidation form that returned by interface in all alternative interfaces.
The information of described alternative external interface is stored in relevant database.
Described interface Selection and call mode includes: by the way of context data selects, the mode that randomly chooses and by the way of plug-in program collection selects.
The concrete steps of described data adaptation include:
When the parameter that interface needs is xml, context data is converted to object format by xslt;
When the parameter that interface needs is json, context data is converted to object format by built-in transducer;
When the parameter that interface needs is binary format, context data is converted to object format by plug-in program collection.
Data after adaptation call and specifically include: based on Http agreement call, and call including WebService;Based on Socket call;This locality based on procedure set is called.
The mode that data compilation is consolidation form that interface is returned, particularly as follows:
When interface returns xml, return data are converted to consolidation form by xslt;
When interface returns json, return data are converted to consolidation form by built-in transducer;
When interface returns binary data, return data are converted to consolidation form by plug-in program collection.
Compared to the prior art the method for a kind of dynamic Selection and call external system interface of the present invention, has the advantages that
The present invention, in the presence of having multiple alternative external interface, dynamically selects interface and automatically this interface desired parameters is carried out adaptation;Use the method, suitable interface can be dynamically selected easily with context data for standard, and context data form is converted to the acceptable form of target interface calls, can determine easily should select which external system interface execution to call under special scenes, practical, it is easy to promote.
Detailed description of the invention
Below in conjunction with specific embodiment, the invention will be further described.
A kind of method of the dynamic Selection and call external system interface of the present invention, it realizes process and is:
First the information of alternative external interface is defined;
The selection mode of alternative external interface is set, dynamically selects suitable interface;
Context data is adapted for the form required by the interface of this selection and calls;
The data compilation returned by external interface is unified form.
The information of alternative external interface: the Selection and call mode of interface, select the condition of this interface, the mode that context data is adapted for this interface parameters, the mode that data compilation is consolidation form that returned by interface in all alternative interfaces.
The information of described alternative external interface is stored in relevant database.
Described interface Selection and call mode includes: by the way of context data selects, the mode that randomly chooses and by the way of plug-in program collection selects.
The concrete steps of described data adaptation include:
When the parameter that interface needs is xml, context data is converted to object format by xslt;
When the parameter that interface needs is json, context data is converted to object format by built-in transducer;
When the parameter that interface needs is binary format, context data is converted to object format by plug-in program collection.
Data after adaptation call and specifically include: based on Http agreement call, and call including WebService;Based on Socket call;This locality based on procedure set is called.
The mode that data compilation is consolidation form that interface is returned, particularly as follows:
When interface returns xml, return data are converted to consolidation form by xslt;
When interface returns json, return data are converted to consolidation form by built-in transducer;
When interface returns binary data, return data are converted to consolidation form by plug-in program collection.
For above-mentioned steps, state in detail below.
Need to define external system interface, and definition is left in relevant database.
Following data structure is devised for this:
Define storage and the analysis mode of herein below: interface interchange mode, interface alternative condition, enter to join conversion regime, go out to join conversion regime.
Define the standard interface of Parameters Transformation:
The method of calling of external system interface is set.The following is and WebSerivce style interface is called explanation, which specify the information such as the Url of interface, parameter type:
Defining interface alternative condition, the title including the context data as condition, the value for contrast and the selection priority of this interface.It is simplest situation as follows, is only selected by the contrast of context numerical value:
<xmlversion=" 1.0 " encoding=" UTF-8 ">
<RoutingConfig>
<ByContextKey=" ProvinceCode " Value=" BJ " Priority=" 1 "/>
</RoutingConfig>
The Parameters Transformation rule of definition discrepancy ginseng.The following is into ginseng is the situation of xml:
The following is into ginseng is definition during binary data:
The method of the present invention has been successfully applied to image system interface and the electronic invoice interface of certain company, it is achieved that: dock the image system that different image manufacturers provides;The electronic invoice interface that the revenue department of the different provinces and cities of docking provides.
By detailed description of the invention above, described those skilled in the art can readily realize the present invention.It is understood that the present invention is not limited to above-mentioned detailed description of the invention.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realize different technical schemes.
In addition to the technical characteristic described in description, it is the known technology of those skilled in the art.
Claims (7)
1. the method for a dynamic Selection and call external system interface, it is characterised in that it realizes process and is:
First the information of alternative external interface is defined;
The selection mode of alternative external interface is set, dynamically selects suitable interface;
Context data is adapted for the form required by the interface of this selection and calls;
The data compilation returned by external interface is unified form.
The method of a kind of dynamic Selection and call external system interface the most according to claim 1, it is characterized in that, the information of alternative external interface: the Selection and call mode of interface, in all alternative interfaces, select the condition of this interface, the mode that context data is adapted for this interface parameters, the mode that data compilation is consolidation form that returned by interface.
The method of a kind of dynamic Selection and call external system interface the most according to claim 2, it is characterised in that the information of described alternative external interface is stored in relevant database.
The method of a kind of dynamic Selection and call external system interface the most according to claim 2, it is characterized in that, described interface Selection and call mode includes: by the way of context data selects, the mode that randomly chooses and by the way of plug-in program collection selects.
The method of a kind of dynamic Selection and call external system interface the most according to claim 2, it is characterised in that the concrete steps of described data adaptation include:
When the parameter that interface needs is xml, context data is converted to object format by xslt;
When the parameter that interface needs is json, context data is converted to object format by built-in transducer;
When the parameter that interface needs is binary format, context data is converted to object format by plug-in program collection.
The method of a kind of dynamic Selection and call external system interface the most according to claim 5, it is characterised in that the data after adaptation call and specifically include: based on Http agreement call, calls including WebService;Based on Socket call;This locality based on procedure set is called.
The method of a kind of dynamic Selection and call external system interface the most according to claim 5, it is characterised in that the mode that data compilation is consolidation form that interface is returned, particularly as follows:
When interface returns xml, return data are converted to consolidation form by xslt;
When interface returns json, return data are converted to consolidation form by built-in transducer;
When interface returns binary data, return data are converted to consolidation form by plug-in program collection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610152539.8A CN105824926A (en) | 2016-03-17 | 2016-03-17 | Method for dynamically selecting and calling external system interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610152539.8A CN105824926A (en) | 2016-03-17 | 2016-03-17 | Method for dynamically selecting and calling external system interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105824926A true CN105824926A (en) | 2016-08-03 |
Family
ID=56523515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610152539.8A Pending CN105824926A (en) | 2016-03-17 | 2016-03-17 | Method for dynamically selecting and calling external system interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105824926A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106294177A (en) * | 2016-08-22 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The method for testing pressure of a kind of interface and test equipment |
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN107770225A (en) * | 2016-08-22 | 2018-03-06 | 北京京东尚科信息技术有限公司 | A kind of webService accesses system and the method for accessing webService |
US9946681B1 (en) * | 2015-06-29 | 2018-04-17 | Western Digital Technologies, Inc. | Host configured multi serial interface device |
CN108021710A (en) * | 2017-12-28 | 2018-05-11 | 广东蜂助手网络技术股份有限公司 | A kind of dynamic socket conversion method, device, terminal device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216760A (en) * | 2007-12-28 | 2008-07-09 | 北京方正国际软件系统有限公司 | Dynamic mapping interface calling system and method |
US20090043657A1 (en) * | 2007-08-06 | 2009-02-12 | Palm, Inc. | System and methods for selecting advertisements based on caller identifier information |
CN104506486A (en) * | 2014-11-15 | 2015-04-08 | 北京锐安科技有限公司 | Software service interface calling method and system with high security levels |
CN104639539A (en) * | 2015-01-27 | 2015-05-20 | 深圳市汇朗科技有限公司 | Method and device for interface calling |
-
2016
- 2016-03-17 CN CN201610152539.8A patent/CN105824926A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090043657A1 (en) * | 2007-08-06 | 2009-02-12 | Palm, Inc. | System and methods for selecting advertisements based on caller identifier information |
CN101216760A (en) * | 2007-12-28 | 2008-07-09 | 北京方正国际软件系统有限公司 | Dynamic mapping interface calling system and method |
CN104506486A (en) * | 2014-11-15 | 2015-04-08 | 北京锐安科技有限公司 | Software service interface calling method and system with high security levels |
CN104639539A (en) * | 2015-01-27 | 2015-05-20 | 深圳市汇朗科技有限公司 | Method and device for interface calling |
Non-Patent Citations (1)
Title |
---|
王金玉: "《Oracle XML DB应用开发Oracle Database 11g》", 31 May 2012, 清华大学出版社 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9946681B1 (en) * | 2015-06-29 | 2018-04-17 | Western Digital Technologies, Inc. | Host configured multi serial interface device |
US10095652B2 (en) | 2015-06-29 | 2018-10-09 | Western Digital Technologies, Inc. | Host configured multi serial interface device |
CN106294177A (en) * | 2016-08-22 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The method for testing pressure of a kind of interface and test equipment |
CN107770225A (en) * | 2016-08-22 | 2018-03-06 | 北京京东尚科信息技术有限公司 | A kind of webService accesses system and the method for accessing webService |
CN107391379A (en) * | 2017-07-28 | 2017-11-24 | 武汉斗鱼网络科技有限公司 | Interface automatic test approach and device |
CN108021710A (en) * | 2017-12-28 | 2018-05-11 | 广东蜂助手网络技术股份有限公司 | A kind of dynamic socket conversion method, device, terminal device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105824926A (en) | Method for dynamically selecting and calling external system interface | |
CN109672888B (en) | Picture compression method, equipment and computer readable storage medium | |
CN110457256A (en) | Date storage method, device, computer equipment and storage medium | |
CN105446799A (en) | Method and system for performing rule management in computer system | |
WO2017113732A1 (en) | Layout method and system for user interface control, and control method and system therefor | |
CN103020089A (en) | Method and device for importing data in EXCEL file to database | |
CN110888842A (en) | File storage method, file query method, file storage device, file query device and file query equipment | |
CN109636301A (en) | Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business | |
CN105868196A (en) | Method for generating industrial data report in server | |
CN110807002B (en) | Report generation method, system and equipment based on workflow and storage medium | |
CN107766313B (en) | A kind of introduction method and its terminal of data list | |
CN114626134B (en) | BIM-based pipeline comprehensive optimization method and device, electronic equipment and storage medium | |
CN106294400A (en) | The introduction method of batch data and system | |
CN104765939A (en) | Pick-up and converting DWG format electrical diagram method and device | |
CN107784085B (en) | Data list exporting method and terminal thereof | |
CN103942280A (en) | Automatic code generating method based on data structure | |
CN105912740A (en) | CAE distributed cooperative work method based on cloud calculation | |
CN105868170A (en) | Method for generating industrial data report in server | |
CN103377052A (en) | Method and system for automatically downloading adaptive application programs on basis of file synchronization service | |
CN104486444A (en) | Heterogeneous API conversion system for cloud management platforms | |
US10922459B2 (en) | Methods for converting circuits in circuit simulation programs | |
CN105740251B (en) | Method and system for integrating different content sources in bus mode | |
KR101482668B1 (en) | System and method for generating database based on SCL | |
CN104252463B (en) | A kind of db2 data base management methods based on web system | |
CN114138813A (en) | Attribute configuration method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160803 |
|
RJ01 | Rejection of invention patent application after publication |