CN109672732B - Interface adaptation method, device and system - Google Patents

Interface adaptation method, device and system Download PDF

Info

Publication number
CN109672732B
CN109672732B CN201811553482.8A CN201811553482A CN109672732B CN 109672732 B CN109672732 B CN 109672732B CN 201811553482 A CN201811553482 A CN 201811553482A CN 109672732 B CN109672732 B CN 109672732B
Authority
CN
China
Prior art keywords
interface
information
adapter
configuration
analysis
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.)
Active
Application number
CN201811553482.8A
Other languages
Chinese (zh)
Other versions
CN109672732A (en
Inventor
温凌敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haoyun Technologies Co Ltd
Original Assignee
Haoyun Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haoyun Technologies Co Ltd filed Critical Haoyun Technologies Co Ltd
Priority to CN201811553482.8A priority Critical patent/CN109672732B/en
Publication of CN109672732A publication Critical patent/CN109672732A/en
Application granted granted Critical
Publication of CN109672732B publication Critical patent/CN109672732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/321Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers

Abstract

The invention discloses an interface adaptation method, a device and a system, wherein the method comprises the following steps: receiving an access service request sent by an access system; acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information; performing parameter analysis and assembly according to the interface information and the interface analysis configuration information; and according to the interface protocol information in the interface information, using a corresponding protocol adapter to forward the access service request. The invention can realize the quick butt joint of different service interfaces.

Description

Interface adaptation method, device and system
Technical Field
The present invention relates to the field of network application technologies, and in particular, to a method, an apparatus, and a system for interface adaptation.
Background
Service docking between large platforms, the parameter data structure and data integrity of an interface are often difficult to keep consistent, early definition is needed, and access can be performed only by subsequent customization development due to the difference of newly accessed platform services, data and protocols.
In the research and practice of the prior art, the inventor of the invention finds that with the expansion of the platform of the internet of things, the services of various functional modules are more and more, particularly for subsystems accessing new equipment. For such a situation, a method for implementing a fast access service is urgently needed to implement accurate and efficient docking.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an interface adaptation method, device and system, which can realize quick butt joint of different service interfaces, and are efficient and accurate.
To solve the above problem, an embodiment of the present invention provides an interface adaptation method, including:
receiving an access service request sent by an access system;
acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information;
performing parameter analysis and assembly according to the interface information and the interface analysis configuration information;
and according to the interface protocol information in the interface information, using a corresponding protocol adapter to forward the access service request.
Further, according to the interface information and the interface analysis configuration information, performing parameter analysis and assembly, specifically:
acquiring corresponding analysis configuration according to the interface information and interface analysis configuration information;
building an adapter using the parsed configuration;
and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
Further, the interface information includes interface type, interface parameter, protocol information of interface access, and interface address information.
Further, the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter, or a message queue transmission adapter.
Another embodiment of the present invention further provides an interface adapter device, including:
the access service request receiving module is used for receiving an access service request sent by an access system;
a server registration information acquisition module for acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information;
the adapter construction module is used for analyzing and assembling parameters according to the interface information and the interface analysis configuration information;
and the access service request forwarding module is used for forwarding the access service request by using a corresponding protocol adapter according to the interface protocol information in the interface information.
Further, the adapter construction module is specifically configured to obtain a corresponding analysis configuration according to the interface information and the interface analysis configuration information; building an adapter using the parsed configuration; and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
Further, the interface information includes interface type, interface parameter, protocol information of interface access, and interface address information.
Further, the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter, or a message queue transmission adapter.
The invention also provides an interface adapting system, which is characterized by comprising an adapter, an access system and an accessed system, wherein the access system and the accessed system are respectively connected with two ends of the adapter;
the access system is used for sending an access service request to the adapter;
the adapter is used for acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the visited system provided by the server side and interface analysis configuration information;
the adapter is also used for analyzing and assembling parameters according to the interface information and the interface analysis configuration information;
and the adapter is also used for forwarding the access service request by using the corresponding protocol adapter according to the interface protocol information in the interface information.
Further, the adapter is specifically further configured to obtain a corresponding analysis configuration according to the interface information and the interface analysis configuration information; building an adapter using the parsed configuration; and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
By implementing the embodiment of the invention, the interface docking of different services can be quickly realized on the interface by adding or modifying the configuration.
Drawings
Fig. 1 is a flowchart illustrating an interface adaptation method according to an embodiment of the present invention;
fig. 2 is another flow chart of an interface adaptation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an interface adapter according to another embodiment of the present invention;
fig. 4 is another schematic structural diagram of an interface adapter according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the step numbers presented herein are only for convenience of description and are not limited to the execution order of the steps.
A first aspect.
Referring to fig. 1-2, an embodiment of the present invention provides an interface adaptation method, including:
and S1, receiving the access service request sent by the access system.
The access system can be a client, the visited system can be a network server, and the client sends an access service request to the network server. Of course, the access system may also be a web server, and the visited system is a client, and the web server sends an access service request to the client. The present embodiment is not limited herein. Specifically, the content of the access service may be various, such as a service invocation request or a data query request, which is not limited herein. The request includes the unique identification of the interface to be accessed and the interface data.
In particular embodiments, the interface protocol for access may be various, including HTTP, TCP, RPC, message queue components, and the like. The accessed data format can be various, including JSON data, XML data and the like.
The following steps are collectively referred to as a client and a server for the access system.
S2, acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information.
The service registration information may be registered in the access service information storage device in advance based on the system name information and the interface information of each system. If there is no corresponding access service registration information in the access service information storage, a message that no access service registration information is found may be returned to the client. After the technician knows that the access service registration information is not found through the client system, the technician can register in the access service information storage device. After successful registration, the accessing system may proceed again with accessing services to the accessed system.
The service information storage device adopts a distributed storage component for storage, so that the service information stored when the service is clustered and the information such as interfaces, configuration and the like can be shared.
It should be noted that the service information storage device may be a database, and may be located at the side of the access system, or may be located at the side of the visited system.
The interface information comprises interface type, interface parameter, protocol information of interface access and interface address information.
And S3, analyzing and assembling parameters according to the interface information and the interface analysis configuration information.
Specifically, according to the interface information and the interface analysis configuration information, acquiring corresponding analysis configuration; building an adapter using the parsed configuration; and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
In a specific embodiment, it is determined whether an interface parsing configuration exists, and in the absence of the interface parsing configuration, the parsing process of the adapter may be skipped.
In a preferred embodiment, where there is a resolved configuration, the configuration is used to build the required adapters. And then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval.
And finally, the received request data is combined with the search result to be gathered, and a parameter structure required by the interface of the server-side system is established through the established adapter.
The parameter structure required by the server interface can be various, and comprises a JSON data structure, an XML data structure and the like.
In a preferred embodiment, if it is determined that the interface analysis configuration does not exist, that is, if the analysis configuration is not obtained, the analysis is not performed, and the data transparent transmission is performed.
The existing data means that the requested data and the summary of the results obtained by searching are obtained, and the data required by the interface provider is obtained.
After searching for a configuration and having the configuration, a search condition needs to be assembled, wherein the assembled search condition can be considered to be similar to the assembled query SQL statement.
And S4, according to the interface protocol information in the interface information, using the corresponding protocol adapter to forward the access service request.
Wherein, the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter or a message queue sending adapter.
It can be understood that, after the corresponding adapter is constructed according to the interface information, the interface address information of the server-side system is used for request forwarding.
In this embodiment, the adapter includes a configuration module, a protocol conversion template, a search completion module, and a data parsing and converting module. When a platform service interface is newly accessed, the non-matched interface is analyzed and configured, the corresponding interface parameter is analyzed and configured in the configuration module, and the process of requesting the service B for the service A after configuration is changed into the process that the service A requests the interface adapter, and the interface adapter requests the interface provided by the service B through conversion.
Specifically, the parsing configuration module configures parsing of the input data, and assembles the parsing into a data structure of an interface provided by a server (interface provider). In the parsing configuration module, which parameter data of the interface provided by the server (interface provider) are configured to be searched and completed. After configuration, the interface call of the client (interface consumer) to the server (interface provider) is changed into a call through the interface adapter. After receiving the request, the interface adapter searches for corresponding configuration, judges to perform data search completion, judges to perform data analysis conversion, and transmits data according to an interface protocol provided by a server (interface provider).
By implementing the embodiment, the interface docking of different services can be quickly realized on the interface by adding or modifying the configuration.
A second aspect.
Referring to fig. 3, another embodiment of the present invention further provides an interface adapter device, including:
an access service request receiving module 21, configured to receive an access service request sent by an access system.
The access system can be a client, the visited system can be a network server, and the client sends an access service request to the network server. Of course, the access system may also be a web server, and the visited system is a client, and the web server sends an access service request to the client. The present embodiment is not limited herein. Specifically, the content of the access service may be various, such as a service invocation request or a data query request, which is not limited herein. The request includes the unique identification of the interface to be accessed and the interface data.
In particular embodiments, the interface protocol for access may be various, including HTTP, TCP, RPC, message queue components, and the like. The accessed data format can be various, including JSON data, XML data and the like.
The following steps are collectively referred to as a client and a server for the access system.
A server registration information obtaining module 22, configured to obtain server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information.
The service registration information may be registered in the access service information storage device in advance based on the system name information and the interface information of each system. If there is no corresponding access service registration information in the access service information storage, a message that no access service registration information is found may be returned to the client. After the technician knows that the access service registration information is not found through the client system, the technician can register in the access service information storage device. After successful registration, the accessing system may proceed again with accessing services to the accessed system.
The service information storage device adopts a distributed storage component for storage, so that the service information stored when the service is clustered and the information such as interfaces, configuration and the like can be shared.
It should be noted that the service information storage device may be a database, and may be located at the side of the access system, or may be located at the side of the visited system.
The interface information comprises interface type, interface parameter, protocol information of interface access and interface address information.
And the adapter construction module 23 is configured to perform parameter analysis and assembly according to the interface information and the interface analysis configuration information.
The adapter construction module 23 is specifically configured to obtain corresponding analysis configuration according to the interface information and the interface analysis configuration information; and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
In a specific embodiment, it is determined whether an interface parsing configuration exists, and in the absence of the interface parsing configuration, the parsing process of the adapter may be skipped.
In a preferred embodiment, where there is a resolved configuration, the configuration is used to build the required adapters. And then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval.
And finally, the received request data is combined with the search result to be gathered, and a parameter structure required by the interface of the server-side system is established through the established adapter.
The parameter structure required by the server interface can be various, and comprises a JSON data structure, an XML data structure and the like.
In a preferred embodiment, if it is determined that the interface analysis configuration does not exist, that is, if the analysis configuration is not obtained, the analysis is not performed, and the data transparent transmission is performed.
The existing data means that the requested data and the summary of the results obtained by searching are obtained, and the data required by the interface provider is obtained.
After searching for a configuration and having the configuration, a search condition needs to be assembled, wherein the assembled search condition can be considered to be similar to the assembled query SQL statement.
And an access service request forwarding module 24, configured to forward the access service request by using a corresponding protocol adapter according to the interface protocol information in the interface information.
Wherein, the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter or a message queue sending adapter.
It can be understood that, after the corresponding adapter is constructed according to the interface information, the interface address information of the server-side system is used for request forwarding.
In this embodiment, the adapter includes a configuration module, a protocol conversion template, a search completion module, and a data parsing and converting module. When a platform service interface is newly accessed, the non-matched interface is analyzed and configured, the corresponding interface parameter is analyzed and configured in the configuration module, and the process of requesting the service B for the service A after configuration is changed into the process that the service A requests the interface adapter, and the interface adapter requests the interface provided by the service B through conversion.
Specifically, the parsing configuration module configures parsing of the input data, and assembles the parsing into a data structure of an interface provided by a server (interface provider). In the parsing configuration module, which parameter data of the interface provided by the server (interface provider) are configured to be searched and completed. After configuration, the interface call of the client (interface consumer) to the server (interface provider) is changed into a call through the interface adapter. After receiving the request, the interface adapter searches for corresponding configuration, judges to perform data analysis and conversion, and transmits data according to an interface protocol provided by a server (interface provider).
Or, in a preferred embodiment, after receiving the request, the interface adapter searches for the corresponding configuration, determines to perform data search completion, determines to perform data analysis conversion, and performs data transmission according to an interface protocol provided by a server (interface provider).
By implementing the embodiment, the interface docking of different services can be quickly realized on the interface by adding or modifying the configuration.
In a third aspect.
Referring to fig. 4, it should be noted that the client (interface consumer) in fig. 4 represents an accessing system, and the server (interface provider) represents an accessed system.
The invention also provides an interface adapting system, which comprises an adapter, an access system and an accessed system, wherein the access system and the accessed system are respectively connected with two ends of the adapter;
the access system is used for sending an access service request to the adapter.
The access system can be a client, the visited system can be a network server, and the client sends an access service request to the network server. Of course, the access system may also be a web server, and the visited system is a client, and the web server sends an access service request to the client. The present embodiment is not limited herein. Specifically, the content of the access service may be various, such as a service invocation request or a data query request, which is not limited herein. The request includes the unique identification of the interface to be accessed and the interface data.
In particular embodiments, the interface protocol for access may be various, including HTTP, TCP, RPC, message queue components, and the like. The accessed data format can be various, including JSON data, XML data and the like.
The following steps are collectively referred to as a client and a server for the access system.
The adapter is used for acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the visited system provided by the server side and interface analysis configuration information.
The service registration information may be registered in the access service information storage device in advance based on the system name information and the interface information of each system. If there is no corresponding access service registration information in the access service information storage, a message that no access service registration information is found may be returned to the client. After the technician knows that the access service registration information is not found through the client system, the technician can register in the access service information storage device. After successful registration, the accessing system may proceed again with accessing services to the accessed system.
The service information storage device adopts a distributed storage component for storage, so that the service information stored when the service is clustered and the information such as interfaces, configuration and the like can be shared.
It should be noted that the service information storage device may be a database, and may be located at the side of the access system, or may be located at the side of the visited system.
The interface information comprises interface type, interface parameter, protocol information of interface access and interface address information.
The adapter is also used for analyzing and assembling parameters according to the interface information and the interface analysis configuration information.
Specifically, according to the interface information and the interface analysis configuration information, acquiring corresponding analysis configuration; building an adapter using the parsed configuration; and analyzing and assembling the existing data to obtain a parameter structure required by the interface of the visited system.
In a specific embodiment, it is determined whether an interface parsing configuration exists, and in the absence of the interface parsing configuration, the parsing process of the adapter may be skipped.
In a preferred embodiment, where there is a resolved configuration, the configuration is used to build the required adapters. And then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval.
And finally, the received request data is combined with the search result to be gathered, and a parameter structure required by the interface of the server-side system is established through the established adapter.
The parameter structure required by the server interface can be various, and comprises a JSON data structure, an XML data structure and the like.
In a preferred embodiment, if it is determined that the interface analysis configuration does not exist, that is, if the analysis configuration is not obtained, the analysis is not performed, and the data transparent transmission is performed.
The existing data means that the requested data and the summary of the results obtained by searching are obtained, and the data required by the interface provider is obtained.
After searching for a configuration and having the configuration, a search condition needs to be assembled, wherein the assembled search condition can be considered to be similar to the assembled query SQL statement.
And the adapter is also used for forwarding the access service request by using the corresponding protocol adapter according to the interface protocol information in the interface information.
Wherein, the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter or a message queue sending adapter.
It can be understood that, after the corresponding adapter is constructed according to the interface information, the interface address information of the server-side system is used for request forwarding.
In this embodiment, the adapter includes a configuration module, a protocol conversion template, a search completion module, and a data parsing and converting module. When a platform service interface is newly accessed, the non-matched interface is analyzed and configured, the corresponding interface parameter is analyzed and configured in the configuration module, and the process of requesting the service B for the service A after configuration is changed into the process that the service A requests the interface adapter, and the interface adapter requests the interface provided by the service B through conversion. The service A is an interface consumer and represents an access system, such as a client, and the service B is an interface provider and represents an accessed system, such as a server.
Specifically, the parsing configuration module configures parsing of the input data, and assembles the parsing into a data structure of an interface provided by a server (interface provider). In the parsing configuration module, which parameter data of the interface provided by the server (interface provider) are configured to be searched and completed. After configuration, the interface call of the client (interface consumer) to the server (interface provider) is changed into a call through the interface adapter. After receiving the request, the interface adapter searches for corresponding configuration, performs data analysis and conversion, and transmits data according to an interface protocol provided by a server (interface provider).
Or, in a preferred embodiment, after receiving the request, the interface adapter searches for the corresponding configuration, determines to perform data search completion, determines to perform data analysis conversion, and performs data transmission according to an interface protocol provided by a server (interface provider).
By implementing the embodiment, interface docking of different services can be quickly realized on the interface by adding or modifying the configuration, searching and completing can be performed on the lacking interface parameters, conversion can be performed on different protocols and calling modes, and code modification is not needed for recompilation.
The foregoing is directed to the preferred embodiment of the present invention, and it is understood that various changes and modifications may be made by one skilled in the art without departing from the spirit of the invention, and it is intended that such changes and modifications be considered as within the scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (7)

1. An interface adaptation method, comprising:
receiving an access service request sent by an access system;
acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information;
according to the interface information and the interface analysis configuration information, performing parameter analysis and assembly, specifically: acquiring corresponding analysis configuration according to the interface information and interface analysis configuration information; building an adapter using the parsed configuration; analyzing and assembling the existing data to obtain a parameter structure required by an interface of the visited system, wherein the corresponding analysis configuration is obtained according to the interface information and the interface analysis configuration information, and the method specifically comprises the following steps: judging whether interface analysis configuration exists or not, and skipping the analysis process of the adapter under the condition of no interface analysis configuration; if the analysis configuration exists, the needed adapter is constructed by using the configuration; then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval; if the interface analysis configuration does not exist, namely the analysis configuration is not acquired, the analysis is not carried out, and data transparent transmission is carried out;
and according to the interface protocol information in the interface information, using a corresponding protocol adapter to forward the access service request.
2. The interface adaptation method according to claim 1, wherein the interface information includes an interface type, an interface parameter, protocol information of interface access, and interface address information.
3. The interface adapting method according to claim 1, wherein the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter, or a message queue transmission adapter.
4. An interface adapter device, comprising:
the access service request receiving module is used for receiving an access service request sent by an access system;
a server registration information acquisition module for acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the accessed system provided by the server side and interface analysis configuration information;
the adapter construction module is used for analyzing and assembling parameters according to the interface information and the interface analysis configuration information, and is specifically used for acquiring corresponding analysis configuration according to the interface information and the interface analysis configuration information; building an adapter using the parsed configuration; analyzing and assembling the existing data to obtain a parameter structure required by an interface of the visited system, wherein the corresponding analysis configuration is obtained according to the interface information and the interface analysis configuration information, and the method specifically comprises the following steps: judging whether interface analysis configuration exists or not, and skipping the analysis process of the adapter under the condition of no interface analysis configuration; if the analysis configuration exists, the needed adapter is constructed by using the configuration; then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval; if the interface analysis configuration does not exist, namely the analysis configuration is not acquired, the analysis is not carried out, and data transparent transmission is carried out;
and the access service request forwarding module is used for forwarding the access service request by using a corresponding protocol adapter according to the interface protocol information in the interface information.
5. Interface adaptation device according to claim 4, characterized in that said interface information comprises interface type, interface parameters, protocol information of interface access, and interface address information.
6. The interface adapter according to claim 4, wherein the protocol adapter is any one of an HTTP protocol adapter, a TCP protocol adapter, or a message queue transmission adapter.
7. An interface adaptation system is characterized by comprising an adapter, an access system and an accessed system which are respectively connected with two ends of the adapter;
the access system is used for sending an access service request to the adapter;
the adapter is used for acquiring server registration information corresponding to the access service request; the server side registration information comprises server side information, interface information of the visited system provided by the server side and interface analysis configuration information;
the adapter is further configured to perform parameter analysis and assembly according to the interface information and interface analysis configuration information, and specifically, is further configured to obtain corresponding analysis configuration according to the interface information and the interface analysis configuration information; building an adapter using the parsed configuration; analyzing and assembling the existing data to obtain a parameter structure required by an interface of the visited system, wherein the corresponding analysis configuration is obtained according to the interface information and the interface analysis configuration information, and the method specifically comprises the following steps: judging whether interface analysis configuration exists or not, and skipping the analysis process of the adapter under the condition of no interface analysis configuration; if the analysis configuration exists, the needed adapter is constructed by using the configuration; then judging whether parameter completion searching is configured or not, and calling an accessed searching system by using the existing data for query retrieval; if the interface analysis configuration does not exist, namely the analysis configuration is not acquired, the analysis is not carried out, and data transparent transmission is carried out;
and the adapter is also used for forwarding the access service request by using the corresponding protocol adapter according to the interface protocol information in the interface information.
CN201811553482.8A 2018-12-18 2018-12-18 Interface adaptation method, device and system Active CN109672732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811553482.8A CN109672732B (en) 2018-12-18 2018-12-18 Interface adaptation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811553482.8A CN109672732B (en) 2018-12-18 2018-12-18 Interface adaptation method, device and system

Publications (2)

Publication Number Publication Date
CN109672732A CN109672732A (en) 2019-04-23
CN109672732B true CN109672732B (en) 2021-10-22

Family

ID=66144101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811553482.8A Active CN109672732B (en) 2018-12-18 2018-12-18 Interface adaptation method, device and system

Country Status (1)

Country Link
CN (1) CN109672732B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620721A (en) * 2019-10-25 2019-12-27 上海中通吉网络技术有限公司 Gateway equipment, application method and service system
CN112202798B (en) * 2020-10-09 2022-07-15 平安科技(深圳)有限公司 Data protocol conversion method, system, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571550A (en) * 2010-12-30 2012-07-11 北京亿阳信通软件研究院有限公司 General information interaction platform and method
CN102811199A (en) * 2011-05-30 2012-12-05 深圳市金蝶友商电子商务服务有限公司 Interface adaptation method, device and system
CN106920204A (en) * 2017-03-20 2017-07-04 泰华智慧产业集团股份有限公司 The dissemination method and system of interface service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571550A (en) * 2010-12-30 2012-07-11 北京亿阳信通软件研究院有限公司 General information interaction platform and method
CN102811199A (en) * 2011-05-30 2012-12-05 深圳市金蝶友商电子商务服务有限公司 Interface adaptation method, device and system
CN106920204A (en) * 2017-03-20 2017-07-04 泰华智慧产业集团股份有限公司 The dissemination method and system of interface service

Also Published As

Publication number Publication date
CN109672732A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
JP6912469B2 (en) Access request conversion method and device
US10747505B1 (en) API specification generation
RU2648966C2 (en) Apparatus and method for processing multiple open api
CN109600381B (en) Interface adaptation method, device and system
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CA3017523C (en) Technologies for auto discover and connect to a rest interface
CN109672732B (en) Interface adaptation method, device and system
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN107704256A (en) The method that Python relies on system library automation installation is realized on a kind of Ubuntu
CN111654542B (en) Proxy server, execution server, reception device, and task execution method
CN107291608A (en) The generation method of test script, subscription/register method of interface and device
US8027435B2 (en) Method and system for protocol embedded automated test control
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN105955790A (en) Data processing method and apparatus
US20050102606A1 (en) Modal synchronization control method and multimodal interface system
CN113190360A (en) Logistics data sharing method, device, equipment and storage medium based on cloud platform
US20060155817A1 (en) Web services integration systems and methods
CN112433752B (en) Page analysis method, device, medium and electronic equipment
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
JP4049653B2 (en) Protocol conversion program, protocol conversion method, and protocol conversion apparatus
CN112084245A (en) Data management method, device and equipment based on micro-service architecture and storage medium
CN108809900B (en) Framework and method for unified resource access
CN108170536B (en) Expanding method and device of WEB program

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