CN110187983A - A kind of remote invocation method, device and electronic equipment - Google Patents

A kind of remote invocation method, device and electronic equipment Download PDF

Info

Publication number
CN110187983A
CN110187983A CN201910439710.7A CN201910439710A CN110187983A CN 110187983 A CN110187983 A CN 110187983A CN 201910439710 A CN201910439710 A CN 201910439710A CN 110187983 A CN110187983 A CN 110187983A
Authority
CN
China
Prior art keywords
format
data
rpc
interface
rest api
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
Application number
CN201910439710.7A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910439710.7A priority Critical patent/CN110187983A/en
Publication of CN110187983A publication Critical patent/CN110187983A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Abstract

The embodiment of the invention provides a kind of remote invocation method, device and electronic equipments.This method comprises: receiving the performance layer state that transmitting terminal is sent converts Application Programming Interface REST API communication information;It is stated based on preset interface mappings, positive format conversion processing is carried out to the data for including in the REST API communication information, obtains remote procedure call communication information;The RPC communication message is sent to the receiving end.Due in the embodiment of the present invention, mapping relations between the accessible data format of the accessible data format of transmitting terminal and receiving end are stored in interface mappings statement, change server can be by calling different interface mappings to state, it realizes and data communication is carried out using the transmitting terminal of different far call modes and receiving end, so as to shorten the R&D cycle for carrying out remote call service using the transmitting terminal of different far call interface modes and receiving end.

Description

A kind of remote invocation method, device and electronic equipment
Technical field
This application involves network communication technology fields, more particularly to a kind of remote invocation method, device and electronic equipment.
Background technique
Far call is that local method call is converted into across machine by network based on specific computer communication protocol Device calls, and is the basic function of Distributed Services.Specifically, far call can be it is right by the transmitting terminal side of service (request) Receiving end (providing a side of service) issues a communication information (service request), and receiving end then can be by the corresponding response of the message Return to transmitting terminal.
In the related technology, the far call interface mode that transmitting terminal generallys use is REST API (Representational State Transfer API, performance layer state convert Application Programming Interface), and receiving end uses Far call interface mode be RPC (Remote Procedure Protocol, remote procedure call).Due to receiving end and Transmitting terminal only uses identical far call interface mode, can just carry out far call, and therefore, research staff needs to be every Transmitting terminal and receiving end of the kind using different far call interface modes, all provide a unique proxy server.
For example, when transmitting terminal uses REST API far call interface mode, and receiving end uses RPC far call interface When mode, the modulus of conversion of a receiving end REST API may include in unique proxy server that research staff provides for it The conversion module of block and a RPC transmitting terminal.When the transmitting terminal of use REST API far call interface mode is remote to use RPC The receiving end of journey calling interface mode, after the communication information for sending a REST API format, in the proxy server The conversion module of the receiving end REST API converts the message into the communication information of RPC format, and calls the conversion of RPC transmitting terminal The communication information of the RPC format is sent to receiving end by module.After receiving end waiting handles the communication information of the RPC format, RPC The conversion module of transmitting terminal receives the response that receiving end is sent, and the response is converted into the response of REST API format.Then, The conversion module of transmitting terminal calls the conversion module of the receiving end REST API, and the response of the REST API format is sent to use The transmitting terminal of REST API far call interface mode.
Obviously, in the prior art, in order to give transmitting terminal and the receiving end using various different far call interface modes, mention For unique agency service, research staff needs to put into a large amount of R&D work, for using various different far calls interface sides The conversion module in corresponding proxy server is designed in the transmitting terminal of formula and receiving end, and time-consuming, affects using different The efficiency of data communication is realized in the transmitting terminal of far call interface mode and receiving end.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of remote invocation method, device and electronic equipment, to shorten use The R&D cycle that the transmitting terminal and receiving terminal of different far call interface modes are serviced.
Specific technical solution is as follows:
In a first aspect, the method is applied to change server the embodiment of the invention provides a kind of remote invocation method, The change server is connect with transmitting terminal and receiving end respectively, which comprises
It receives the performance layer state that transmitting terminal is sent and converts Application Programming Interface REST API communication information, the REST API communication information is the data comprising the transmitting terminal using corresponding first format of REST API far call interface mode Communication information;
It is stated based on preset interface mappings, positive format is carried out to the data for including in the REST API communication information Conversion process, obtains remote procedure call communication information, and the RPC communication message is to use far call comprising receiving end The communication information of the data of corresponding second format of RPC interface mode includes described the in the preset interface mappings statement Mapping relations between one format and second format;
The RPC communication message is sent to the receiving end.
Further, it is described the RPC communication message is sent to the receiving end after, can also include:
The RPC response message that the receiving end is sent is received, the RPC response message is the receiving end for described The response message of the data for the second format that RPC communication message is made;
It is stated based on the interface mappings, the data for including in the RPC response message is carried out at reversed format conversion Reason, obtains REST API response message;Wherein, the REST API response message is that transmitting terminal uses REST API far call The response message of the data of corresponding first format of interface mode;
The REST API response message is sent to the transmitting terminal.
Further, first format is JSON format;Second format is RPC format;
It is described to be stated based on preset interface mappings, the data for including in the REST API communication information are carried out positive Format conversion processing the step of obtaining RPC communication message, may include:
Based on preset JAVA format conversion algorithms, by the number for the JSON format for including in the REST API communication information According to the data for being converted into JAVA format;
Based on preset RPC format conversion algorithms, by the data conversion of the JAVA format at the data of RPC format;Its In, the data of the RPC format are the data for the second format for including in the RPC communication message.
Further, before the REST API communication information for receiving transmitting terminal transmission, can also include:
Obtain preset interface mappings statement;
Interface mappings statement is registered on the change server.
Further, described to be stated based on preset interface mappings, to the number for including in the REST API communication information According to positive format conversion processing is carried out, before obtaining RPC communication message, can also include:
According to the data for the first format that the REST API communication information includes, in preset interface mappings statement library Search whether the interface mappings statement for having comprising first format;Wherein, in the preset interface mappings statement library extremely Less comprising an interface mappings statement;
If there is the interface mappings statement comprising first format in the preset interface mappings statement library, it is based on Preset code generator and the interface mappings are stated, format conversion algorithms are generated.
Second aspect, the embodiment of the invention provides a kind of far call device, described device is applied to change server, The change server is connect with transmitting terminal and receiving end respectively, and described device includes:
First receiving module, the performance layer state conversion Application Programming Interface REST API for receiving transmitting terminal transmission are logical Believe message, the REST API communication information is corresponding using REST API far call interface mode comprising the transmitting terminal The communication information of the data of first format;
First conversion module, for being stated based on preset interface mappings, to including in the REST API communication information Data carry out positive format conversion processing, obtain remote procedure call communication information, the RPC communication message be comprising Receiving end uses the communication information of the data of corresponding second format of far call RPC interface mode, and the preset interface reflects It penetrates in statement comprising the mapping relations between first format and second format;
First sending module, for the RPC communication message to be sent to the receiving end.
Further, described device can also include:
Second receiving module, the RPC response message sent for receiving the receiving end, the RPC response message is institute State the response message that receiving end is directed to the data for the second format that the RPC communication message is made;
Second conversion module, for based on the interface mappings state, to the data for including in the RPC response message into The reversed format conversion processing of row, obtains REST API response message;Wherein, the REST API response message is transmitting terminal use The response message of the data of corresponding first format of REST API far call interface mode;
Second sending module, for the REST API response message to be sent to the transmitting terminal.
Further, first format is JSON format;Second format is RPC format;
First conversion equipment may include:
Third converting unit will be in the REST API communication information for being based on preset JAVA format conversion algorithms The data conversion for the JSON format for including at JAVA format data;
4th converting unit, for be based on preset RPC format conversion algorithms, by the data conversion of the JAVA format at The data of RPC format;Wherein, the data of the RPC format are the data for the second format for including in the RPC communication message.
Further, described device can also include:
Module is obtained, for obtaining preset interface mappings statement;
Registration module, for interface mappings statement to be registered in the change server.
Further, described device can also include:
Searching module, the data of the first format for including according to the REST API communication information, connects preset The interface mappings statement for having comprising first format is searched whether in mouth mapping announcements library;Wherein, the preset interface Interface mappings statement is contained at least one in mapping announcements library;
Generation module, if being reflected for there is the interface comprising first format in the preset interface mappings statement library Statement is penetrated, then is stated based on preset code generator and the interface mappings, format conversion algorithms are generated.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes following methods step:
It receives the performance layer state that transmitting terminal is sent and converts Application Programming Interface REST API communication information, the REST API communication information is the data comprising the transmitting terminal using corresponding first format of REST API far call interface mode Communication information;
It is stated based on preset interface mappings, positive format is carried out to the data for including in the REST API communication information Conversion process, obtains remote procedure call communication information, and the RPC communication message is to use far call comprising receiving end The communication information of the data of corresponding second format of RPC interface mode includes described the in the preset interface mappings statement Mapping relations between one format and second format;
The RPC communication message is sent to the receiving end.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Computer program is stored in storage media, the computer program realizes any of the above-described remote invocation method when being executed by processor Step.
5th aspect, the embodiment of the invention also provides a kind of computer program products comprising instruction, when it is being calculated When being run on machine, so that computer executes any of the above-described remote invocation method.
The embodiment of the invention provides a kind of remote invocation method, device and electronic equipments, receive the table that transmitting terminal is sent Existing layer state converts Application Programming Interface REST API communication information;It is stated based on preset interface mappings, to the REST The data for including in API communication information carry out positive format conversion processing, obtain remote procedure call communication information;By institute It states RPC communication message and is sent to the receiving end.Due in the embodiment of the present invention, by the accessible data format of transmitting terminal with connect Mapping relations between the accessible data format of receiving end are stored in interface mappings statement.Therefore, change server can lead to It crosses and different interface mappings is called to state, realize that carrying out data using the transmitting terminal of different far call modes and receiving end leads to Letter, so as to shorten the research and development week for carrying out remote call service using the transmitting terminal of different far call interface modes and receiving end Phase.
Certainly, any product or method for implementing the application must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow diagram of remote invocation method provided in an embodiment of the present invention;
Fig. 2 is a kind of Data Format Transform schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another remote invocation method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another remote invocation method provided in an embodiment of the present invention;
Fig. 5 is a kind of example of remote invocation method Data Format Transform provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of far call device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of far call device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
For the R&D cycle that the transmitting terminal and receiving end that shorten using different far call interface modes are serviced, originally Inventive embodiments provide a kind of remote invocation method, device and electronic equipment, are described in detail separately below.
A kind of remote invocation method provided in an embodiment of the present invention is introduced first below.
A kind of executing subject of remote invocation method provided by the embodiment of the present invention can be change server, and this turn Server is changed to connect with transmitting terminal and receiving end respectively.In embodiments of the present invention, change server is different by calling Interface mappings statement, realizes and carries out data communication using the transmitting terminal of different far call interface modes and receiving end.Cause This, aiming at the problem that the various transmitting terminals using different far call interface modes and receiving end carry out remote call service, Research staff only need to be various transmitting terminals and receiving end using different far call interface modes, and exploitation is unique corresponding with it Interface mappings statement, the transmitting terminal and receiving end can be realized and carry out remote call service.Without using difference to be various Far call interface mode transmitting terminal and receiving end, develop different proxy servers, respectively so as to shorten using not The R&D cycle of remote call service is carried out with the transmitting terminal of far call interface mode and receiving end.
In embodiments of the present invention, the user terminal for sending remote call service request is known as transmitting terminal, will will be user The electronic equipment that terminal provides service is known as receiving end.Wherein, transmitting terminal can be the electronic equipments such as mobile phone, tablet computer.It connects Receiving end can be the electronic equipments such as personal computer (Personal Computer, PC), server.Change server can be REST API communication information for sending transmitting terminal is converted into the manageable communication information in receiving end, and (RPC communication disappears Breath), and receiving end handles REST API communication information, the RPC response of generation, which is converted into transmitting terminal, can handle Response (REST API response).Also, the change server can be independent electronic equipment, be also possible to be integrated in reception A component in end.
The present invention is so that by change server, as being illustrated for an independent electronic equipment, other situations are therewith It is similar.
In order to realize the remote call service between transmitting terminal and receiving end, change server can respectively with transmitting terminal and Receiving end establish communication connection, for example, change server can by 3G, 4G and WiFi (Wireless-Fidelity, wirelessly Local area network) etc. communication networks, connect with transmitting terminal and receiving end, carried out between transmitting terminal and receiving end to realize respectively Data transmission.
In practical applications, transmitting terminal is to realize certain function of itself cannot achieve, then needs from this may be implemented Service is requested on the remote computer program (receiving end, for example, remote server) of function.Only transmitting terminal and receiving end use Identical far call interface mode, the data that just can be achieved between transmitting terminal and receiving end are transmitted.Therefore, the embodiment of the present invention In a kind of optional implementation of middle offer, REST API far call interface side can will be used by change server The data progress of the transmitting terminal of formula and the different-format that the receiving end transmission serviced is provided using RPC far call interface mode Format conversion, to realize that transmitting terminal carries out the purpose of far call function to receiving end.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of remote invocation method provided in an embodiment of the present invention, this method packet Include following steps:
S110 receives the performance layer state that transmitting terminal is sent and converts Application Programming Interface REST API communication information.
In practical applications, the far call interface mode that the format and transmitting terminal for the data for including in communication information use There are one-to-one relationships.Specifically, when transmitting terminal uses REST API far call interface mode, it can in communication information To include requesting method, request path, request address parameter and request body and the data for responding this five kinds of elements of body.The present invention is real It applies in example, as a whole by the format of the data for a variety of elements for including in communication information, i.e. REST API communication information It may include the data of the first format.
Wherein, the first format is the format that transmitting terminal uses the corresponding data of REST API far call interface mode;Also REST API far call interface mode can be used for transmitting terminal, and the REST API communication information that transmitting terminal is sent is passing When using certain transport protocol in defeated process, the format for the data for including in the REST API communication information.
For example, if the first format is that transmitting terminal uses REST API far call interface mode, REST API is logical The format for believing data in message, then may include the data of different elements in REST API communication information.For example, when transmitting terminal is adopted When with REST API far call interface mode, requesting party may include in the REST API communication information which sends Method, request path, request address parameter and request body and the data for responding this five kinds of elements of body.
Specifically, the requesting method in the REST API communication information can be http (Hyper Text Transfer Protocol, hypertext transfer protocol) get (acquisition), post (modification), put (update) and the delete (deletion) etc. that provide Request function.Request path can be/api/users/14, and request address parameter can be date=2018-09-20, request Body can be name: " Zhang San ", age:33, skills:[{ name: ... }] }, response body can be status:ok, message:“success”}。
If the first format is that transmitting terminal uses REST API far call interface mode, and the REST API that transmitting terminal is sent When communication information uses certain transport protocol during transmission, the format for the data for including in REST API communication information, then The transport protocol that the REST API communication information uses during transmission can be open source transport protocol, for example, gRPC and thrift.Certainly, the transport protocol that above-mentioned REST API communication information uses during transmission is also possible to enterprise oneself The Data Transport Protocol of research and development, the application are not specifically limited.
In an implementation, transmitting terminal can send communication information (i.e. REST using REST API far call interface mode API communication information).Due to not only including the data format of transmitting terminal (or receiving end), also including in the statement of each interface mappings The corresponding far call interface mode of the data format of the transmitting terminal (or receiving end).Therefore, when change server receives hair After the REST API communication information that sending end is sent, the data format that can will include in the REST API communication information is and preparatory The data format for the transmitting terminal for including in the total interface mapping announcements being registered on the change server is compared.If should The data format for including in REST API communication information and some interface mappings sound registered in advance on the change server The data format of transmitting terminal in bright is identical, then can be corresponding remote by the data format of the transmitting terminal in interface mappings statement Journey calling interface mode is determined as the corresponding far call interface mode of data in the REST API communication information included, i.e., To determine that the transmitting terminal for sending the REST API communication information using which kind of far call interface mode, turns to determine The interface mappings that server is changed for this far call are stated.If the data format for including in the REST API communication information with The data format of transmitting terminal registered in advance in the total interface mapping announcements on the change server is different from, then is illustrated Change server can not carry out this far call, i.e., without processing.
S120 is stated based on preset interface mappings, carries out positive lattice to the data for including in REST API communication information Formula conversion process obtains remote procedure call communication information.
Wherein, RPC communication message can be to use corresponding second format of far call RPC interface mode comprising receiving end Data communication information.
In an implementation, when transmitting terminal uses certain far call interface mode, receiving end is also corresponding using a kind of Far call interface mode.For example, receiving end generallys use when transmitting terminal uses REST API far call interface mode RPC far call interface mode, at this point, the Data Elements for including in the manageable communication information in receiving end can be service Class, method name, parameter list and return value etc..In embodiments of the present invention, technical staff can be according to transmitting terminal and receiving end The far call interface mode being respectively adopted is its preset interface mappings statement, and transmitting terminal and receiving end is respectively adopted not The corresponding interface mappings statement of same far call interface mode is stored in preset interface mappings statement library.Wherein, interface It may include the mapping relations of the first format and the second format in mapping announcements.As shown in figure 5, being provided in an embodiment of the present invention A kind of exemplary schematic diagram of remote invocation method Data Format Transform.
Change server needs after the REST API communication information for receiving transmitting terminal transmission according to the REST API First format of the data for including in communication information selects in the total interface mapping announcements on the change server from registered It selects out and is stated for the interface mappings of this far call.Then, according to the first format for recording in interface mappings statement with The mapping relations of second format, change server carry out the data of the first format in the REST API communication information received Positive format conversion processing obtains the data of corresponding second format of data of the first format to get RPC communication message is arrived.
Optionally, one kind is provided in the embodiment of the present invention to state based on preset interface mappings, and REST API is communicated The data that include in message carry out positive format conversion processing, obtain the specific processing mode of RPC communication message, may include as Lower step:
Based on preset JAVA format conversion algorithms, the data for the JSON format for including in REST API communication information are turned Change the data of JAVA format into;Based on preset RPC format conversion algorithms, by the data conversion of JAVA format at RPC format Data.
Wherein, the data of RPC format are the data for the second format for including in RPC communication message;First format is JSON Format;Second format is RPC format.
In an implementation, the data format in REST API communication information that transmitting terminal is sent is JSON format.Such as Fig. 2 institute Show, when change server is in receiving end REST API communication information, change server is needed to the REST API communication information In include data carry out positive format conversion twice, can determine RPC communication message.Specifically, change server elder generation root According to the JAVA format conversion algorithms that the registered interface mappings statement on change server generates, by REST API communication information In include JSON format data conversion at JAVA format data (forward conversion).Again by the data of the JAVA format, root According to the RPC format conversion algorithms that the registered interface mappings statement on change server generates, it is converted into the data of RPC format (forward conversion).
It, will be between the accessible data format of the accessible data format of transmitting terminal and receiving end using the embodiment of the present invention Mapping relations be stored in interface mappings statement, change server can be realized by calling different interface mappings to state Data communication is carried out using the transmitting terminal of different far call modes and receiving end, so as to shorten different far calls are used The transmitting terminal of interface mode and receiving end carry out the R&D cycle of remote call service.
RPC communication message is sent to receiving end by S130.
In an implementation, REST API communication information is converted into RPC communication message by change server in step S120, as The data for the first format that the receiving end that transmitting terminal is sent cannot be handled, being converted into the receiving end can carry out at far call The data of second format of reason.Then, the RPC communication message of the data comprising the second format is sent to reception by change server End.Receiving end is after receiving RPC communication message, to the of the request service for the transmitting terminal for including in the RPC communication message The data of two formats are responded, and the REST API response message comprising the manageable data format of transmitting terminal is generated.
Optionally, the embodiment of the invention also provides one kind sends RPC communication message in step S130 change server After receiving end, change server how by receiving end send RPC response message be converted into the manageable number in receiving end According to the specific processing mode of the response message of format, may include steps of:
Receive the RPC response message that receiving end is sent;It is stated based on interface mappings, to the number for including in RPC response message According to reversed format conversion processing is carried out, REST API response message is obtained;REST API response message is sent to transmitting terminal.
Wherein, RPC response message can be directed to the response of the data for the second format that RPC communication message is made for receiving end Message;REST API response message can be transmitting terminal using corresponding first format of REST API far call interface mode The response message of data;
In an implementation, RPC response message is sent to change server by receiving end.Change server receives the RPC and rings After answering message, according to the mapping relations of the first format and the second format recorded in the statement of above-mentioned interface mappings, RPC is responded The response data of the second format in message is converted into the response message of the first format, i.e. generation REST API response message, and The REST API response message is sent to transmitting terminal, so that the transmitting terminal realizes the corresponding function of the response message.
Further, as shown in Fig. 2, RPC response message is converted into the mistake of REST API response message by change server Cheng Zhong, the reversed format conversion algorithms of JAVA for needing the interface mappings statement first according to registered on change server to generate, By the data conversion for the RPC format for including in RPC response message at the data (reverse conversion) of JAVA format.Again by the JAVA lattice The data of formula turn according to the JAVA format reverse conversion algorithm that the registered interface mappings statement on change server generates Change the data (reverse conversion) of JSON format into.
It is clearer in order to describe, below by a specific embodiment to a kind of long-range tune provided in an embodiment of the present invention It is described in detail with method.
Assuming that transmitting terminal uses REST API far call interface mode, receiving end uses RPC far call interface mode. Change server gets 10 interface mappings statements from the storage server for being stored with interface mappings statement library, and should 10 interface mappings statements are all registered on the change server.Specifically, change server states above-mentioned 10 interface mappings It is stored in local cache data pond, and according in the preset code generator of change server, generates the first format respectively With the transfer algorithm of the second format.
Wherein, the transfer algorithm of first format and the second format may include positive format conversion algorithms (i.e. the first lattice Transfer algorithm of the formula to the second format) and reversed format conversion algorithms (i.e. transfer algorithm of the second format to the first format).
When transmitting terminal itself cannot achieve certain function, transmitting terminal can send REST API communication to change server and disappear Breath.It wherein, include requesting method get, request path/api/users/14, request address parameter in REST API communication information Date=2018-09-20, request body name: " Zhang San ", age:33, skills:[{ name: ... }] } and respond body {status:ok,message:“success”}。
After change server receives the REST API communication information, will include in above-mentioned REST API communication information In 10 interface mappings statement in the data of five kinds of elements and change server local cache data pond the data of transmitting terminal into Row compares.If the data of transmitting terminal are also comprising request in the interface mappings statement that number is 7 in 10 interface mappings statements Method, request path, request address parameter, request body and response body, the data of this five kinds of elements.So, change server root The corresponding algorithm of code (positive format conversion algorithms) recorded in the interface mappings for being 7 according to number statement will be sent respectively The data for holding five kinds of elements in the REST API communication information sent are converted into service class, method name, parameter list and return Value, i.e., be converted into RPC communication message for REST API communication information.
RPC communication message is sent to receiving end by change server.Receiving end after receiving the RPC communication message, The data of the request service for the transmitting terminal for including in the RPC communication message are responded, RPC response message is generated.And it should RPC response message is sent to change server.
The reversed format conversion algorithms that the interface mappings statement that change server is 7 according to number generates, RPC response is disappeared The response data of the second format in breath is converted into the response data of the first format, i.e. generation REST API response message, and will The REST API response message is sent to transmitting terminal, so that the transmitting terminal realizes the corresponding function of the response data.
The embodiment of the present invention provides a kind of remote invocation method, receives the performance layer state conversion application that transmitting terminal is sent and compiles Journey interface REST API communication information;It is stated based on preset interface mappings, to the data for including in REST API communication information Positive format conversion processing is carried out, remote procedure call communication information is obtained;RPC communication message is sent to receiving end.By In the embodiment of the present invention, the mapping between the accessible data format of the accessible data format of transmitting terminal and receiving end is closed System is stored in interface mappings statement, and change server can be realized by calling different interface mappings to state using different Far call mode transmitting terminal and receiving end carry out data communication, so as to shorten different far call interface modes are used Transmitting terminal and receiving end carry out remote call service R&D cycle.
Optionally, as shown in figure 3, receiving the REST API communication information that transmitting terminal is sent in step S110 change server Before, can also include the following steps:
S310: preset interface mappings statement is obtained.
In an implementation, change server can obtain each from the storage server for being stored with interface mappings statement library Interface mappings statement.Library is stated since technical staff can update interface mappings according to the preset period,
Therefore, change server can also obtain preset interface from interface mappings statement library according to the preset period Mapping announcements.The implementation of the preset interface mappings statement of several acquisitions provided in the embodiment of the present invention is provided.
Mode one, change server can obtain updated interface from storage server and reflect according to the preset period Penetrate statement.
Wherein, it may include the mark of the registered total interface mapping announcements on the change server in detection request Know;It may include updated interface mappings statement in interface mappings statement library, and its mark in response message.
In an implementation, change server can according to the preset period to be stored with interface mappings statement library storage service Device sends detection request.When storage server receive the detection request after, will the detection request in include interface mappings The mark of each interface mappings statement stored in the mark of statement and local interface mapping announcements library is compared.If interface reflects It penetrates in statement library, exists and the interface mappings statement of the mark different (after update) of the interface mappings statement in detection request Mark, then the different interface mappings are stated and its are identified by storage server, are sent to change server, i.e., take to conversion Business device sends response message.If being wrapped in the mark for each interface mappings statement for including in interface mappings statement library and detection request All, then storage server requests without processing the detection to the mark of each interface mappings statement contained.
Certainly, the mark of interface mappings statement can be any for distinguishing the mark of each distinct interface mapping announcements, For example, the number of interface mappings statement, title of interface mappings statement etc., the present invention is not specifically limited.
Since in the embodiment of the present invention, change server passes through periodically to the storage for being stored with interface mappings statement library Server sends detection request, each interface mappings statement in the updated interface mappings statement library is obtained, to save The memory space of change server, and realize by real time obtaining different interface mappings statements, it preferably realizes and sends Hold the purpose that far call function is carried out to receiving end.
Mode two, change server can every time execute the step S130 by RPC communication message be sent to receiving end it Afterwards, it detects whether to receive the corresponding response of REST API communication information.When detecting the corresponding sound of REST API communication information At once, the interface mappings statement being registered on change server is deleted.
In an implementation, change server can execute the step S130 RPC communication message is sent to receiving end every time, And after detecting the corresponding response of REST API communication information, each interface mappings being registered on change server are deleted Statement.Subsequent change server of working as executes the step S110 in remote invocation method provided in an embodiment of the present invention to step again When S130, change server can be stated from each interface mappings obtained in the library in storage server again, and after execution Continuous step, the final purpose realized transmitting terminal and carry out far call function to receiving end.
Since in the embodiment of the present invention, change server is before executing step S110 to step S130 every time, all from new Each interface mappings statement in the library is obtained from the storage server for being stored with interface mappings statement library, can timely be obtained The interface mappings statement updated in storage server is got, to preferably realize that transmitting terminal carries out far call to receiving end The purpose of function.
S320: interface mappings statement is registered on change server.
In an implementation, the interface mappings statement that change server will acquire is registered on local server, as will acquire Interface mappings statement be stored in local cache data pond, and according in the preset code generator of change server, generate The transfer algorithm of first format and the second format, specific implementation is subsequent to will do it detailed description.
Optionally, as shown in figure 4, being stated in step S120 based on preset interface mappings, to REST API communication information In include data carry out positive format conversion processing, can also include such as before obtaining remote procedure call communication information Lower step:
S410: according to the data for the first format that REST API communication information includes, library is stated in preset interface mappings In search whether exist comprising the first format interface mappings statement.
Wherein, interface mappings statement can be contained at least one in preset interface mappings statement library.
In an implementation, when transmitting terminal uses REST API far call interface mode, the REST API of transmitting terminal transmission Include in communication information and only include requesting method, request path, request address parameter, request body and response body, this five kinds are wanted The data of element.Wherein, the request body and response body for including in REST API communication information are usually JSON (Javascript Object Notation, JS object numbered musical notation) format data.It, can when change server receives REST API communication information The data for including in REST API communication information to be compared with the data type of transmitting terminal in the statement of each interface mappings.If In the statement of some interface mappings, the element phase for the data for including in the corresponding data type of transmitting terminal and REST API communication information Together, then interface mappings statement is stated as the corresponding interface mappings of this far call.
For example, the corresponding Data Elements of transmitting terminal are service class, method name, parameter list and return in interface mappings statement 1 Value is returned, interface mappings state in 2 that the corresponding Data Elements of transmitting terminal are requesting method, request path, request address parameter, ask Body and response body are asked, the element for including in REST API communication information is requesting method, request path, request address parameter, asks Ask body and response body.Due to including in the corresponding data type of transmitting terminal and REST API communication information in interface mappings statement 2 Data Elements it is identical, therefore, change server can by interface mappings state 2, as the corresponding interface of this far call Mapping announcements.If the data type for including in above-mentioned REST API communication information is service class, method name, parameter list and return Value, then interface mappings can be stated 1 by change server, as the corresponding interface mappings statement of this far call.
S420: if there is the interface mappings statement comprising the first format in preset interface mappings statement library, based on pre- If code generator and the interface mappings state, generate format conversion algorithms.
In an implementation, the code in the statement of interface mappings that above-mentioned steps are determined can be input to by change server In preset code generator, the transfer algorithm of the first format and the second format is generated.
Wherein, the transfer algorithm of first format and the second format may include positive format conversion algorithms (i.e. the first lattice Transfer algorithm of the formula to the second format) and reversed format conversion algorithms (i.e. transfer algorithm of the second format to the first format).
Later, change server can be according to the first format of generation and the forward conversion algorithm of the second format, by REST The data for the first format for including in API communication information are converted into the RPC communication message of the data comprising the second format.This hair In bright embodiment, when transmitting terminal uses REST API far call interface mode, receiving end generallys use RPC far call interface When mode, the process that REST API communication information is converted into RPC communication message is as shown in Figure 5.
Wherein, in Fig. 5 REST api interface represent be transmitting terminal use far call interface mode, Thrift RPC What interface represented is the far call interface mode that receiving end uses.Post is in the REST API communication information that transmitting terminal is sent Requesting method, http://host/path/.../method? queryParam=x is request path, in request path QueryParam=x is request address parameter, and request is request body and response data is response body.
Further, the process that REST API communication information is converted into RPC communication message be may include: by change server The corresponding method of@post returjtype method code in (interface mappings statement) is defined according to interface mappings, will be sent The requesting method post data in the REST API communication information sent are held to be converted to the manageable return Value Data in receiving end With method name data.According to interface mappings define in@path ("/path/ ... someservice ") corresponding method of code, will The request path in REST API communication information that transmitting terminal is sent is converted to the manageable service class data in receiving end.According to The corresponding method of@pathparam and@QueryParam code in interface mappings definition, the REST API that transmitting terminal is sent is led to Request address supplemental characteristic in letter message is converted into the manageable supplemental characteristic in receiving end.
As shown in Figure 5, according to interface mappings state in the corresponding method of code that records, transmitting terminal can be sent Data format in REST API communication information is converted into the manageable data format in receiving end.
The embodiment of the present invention provides a kind of remote invocation method, receives the performance layer state conversion application that transmitting terminal is sent and compiles Journey interface REST API communication information;It is stated based on preset interface mappings, to the data for including in REST API communication information Positive format conversion processing is carried out, remote procedure call communication information is obtained;RPC communication message is sent to receiving end.By In the embodiment of the present invention, the mapping between the accessible data format of the accessible data format of transmitting terminal and receiving end is closed System is stored in interface mappings statement, and change server can be realized by calling different interface mappings to state using different Far call mode transmitting terminal and receiving end carry out data communication, so as to shorten different far call interface modes are used Transmitting terminal and receiving end carry out remote call service R&D cycle.
Based on the same technical idea, corresponding to embodiment of the method shown in Fig. 1, the embodiment of the invention also provides a kind of remote Journey calling device, as shown in Figure 6.The device is applied to change server, and the change server and transmitting terminal and receiving end connect It connects, which includes:
First receiving module 610, the performance layer state for receiving transmitting terminal transmission convert Application Programming Interface REST API communication information, REST API communication information are comprising transmitting terminal using REST API far call interface mode corresponding the The communication information of the data of one format;
First conversion module 620, for being stated based on preset interface mappings, to including in REST API communication information Data carry out positive format conversion processing, obtain remote procedure call communication information, and RPC communication message is to include receiving end Using the communication information of the data of corresponding second format of far call RPC interface mode, wrapped in preset interface mappings statement Containing the mapping relations between the first format and the second format;
First sending module 630, for RPC communication message to be sent to receiving end.
In embodiments of the present invention, above-mentioned apparatus can also include:
Second receiving module, for receiving the RPC response message of receiving end transmission, RPC response message is directed to for receiving end The response message of the data for the second format that RPC communication message is made;
Second conversion module carries out reversed lattice to the data for including in RPC response message for stating based on interface mappings Formula conversion process obtains REST API response message;Wherein, REST API response message is that transmitting terminal is long-range using REST API The response message of the data of corresponding first format of calling interface mode;
Second sending module, for REST API response message to be sent to transmitting terminal.
In embodiments of the present invention, the first format is JSON format;Second format is RPC format;
Above-mentioned apparatus can also include:
Third converting unit, for will include in REST API communication information based on preset JAVA format conversion algorithms JSON format data conversion at JAVA format data;
4th converting unit, for being based on preset RPC format conversion algorithms, by the data conversion of JAVA format at RPC The data of format;Wherein, the data of RPC format are the data for the second format for including in RPC communication message.
Referring to Fig. 7, in embodiments of the present invention, above-mentioned apparatus can also include:
Module 710 is obtained, for obtaining preset interface mappings statement;
Registration module 720, for interface mappings statement to be registered in change server.
Referring to Fig. 7, in embodiments of the present invention, above-mentioned apparatus can also include:
Searching module 730, the data of the first format for including according to REST API communication information, in preset interface The interface mappings statement for having comprising the first format is searched whether in mapping announcements library;Wherein, preset interface mappings state library In contain at least one interface mappings statement;
Generation module 740, if for there is the interface mappings sound comprising the first format in preset interface mappings statement library It is bright, then it is stated based on preset code generator and the interface mappings, generates format conversion algorithms.
The embodiment of the invention provides a kind of far call device, receives the performance layer state that transmitting terminal is sent and convert application Programming interface REST API communication information;It is stated based on preset interface mappings, to including in the RESTAPI communication information Data carry out positive format conversion processing, obtain remote procedure call communication information;The RPC communication message is sent to The receiving end.Due in the embodiment of the present invention, by the accessible data format of transmitting terminal and the accessible data lattice in receiving end Mapping relations between formula are stored in interface mappings statement.Therefore, change server can be by calling different interfaces to reflect Statement is penetrated, realizes and data communication is carried out using the transmitting terminal of different far call modes and receiving end, so as to shorten using The transmitting terminal of different far call interface modes and receiving end carry out the R&D cycle of remote call service.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802, Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804 At mutual communication,
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes provided in an embodiment of the present invention one Kind remote invocation method.
Specifically, a kind of above-mentioned remote invocation method, specifically comprises the following steps:
It receives the performance layer state that transmitting terminal is sent and converts Application Programming Interface REST API communication information, REST API is logical Believe that message is the communication information comprising transmitting terminal using the data of corresponding first format of REST API far call interface mode;
It is stated based on preset interface mappings, positive format conversion is carried out to the data for including in REST API communication information Processing, obtains remote procedure call communication information, and RPC communication message is to use the interface side far call RPC comprising receiving end The communication information of the data of corresponding second format of formula, in the statement of preset interface mappings comprising the first format and the second format it Between mapping relations;
RPC communication message is sent to receiving end.
Specific implementation and relevant explanation content about each step of this method may refer to shown in above-mentioned Fig. 1,2 and 3 Embodiment of the method, this will not be repeated here.
In addition, processor 801 execute the program stored on memory 803 and a kind of remote invocation method for realizing its His implementation, it is identical as implementation mentioned by preceding method embodiment part, it also repeats no more here.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment The remote invocation method stated.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any remote invocation method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment and computer readable storage medium embodiment, since it is substantially similar to the method embodiment, so description It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (11)

1. a kind of remote invocation method, which is characterized in that the method is applied to change server, the change server difference It is connect with transmitting terminal and receiving end, which comprises
It receives the performance layer state that transmitting terminal is sent and converts Application Programming Interface REST API communication information, the REST API is logical Believe that message is the communication comprising the transmitting terminal using the data of corresponding first format of REST API far call interface mode Message;
It is stated based on preset interface mappings, positive format conversion is carried out to the data for including in the REST API communication information Processing, obtains remote procedure call communication information, and the RPC communication message is to be connect comprising receiving end using far call RPC The communication information of the data of corresponding second format of mouthful mode includes first format in the preset interface mappings statement With the mapping relations between second format;
The RPC communication message is sent to the receiving end.
2. the method according to claim 1, wherein the RPC communication message is sent to described connect described After receiving end, further includes:
The RPC response message that the receiving end is sent is received, the RPC response message is that the receiving end is logical for the RPC The response message of the data for the second format that letter message is made;
It is stated based on the interface mappings, reversed format conversion processing is carried out to the data for including in the RPC response message, is obtained To REST API response message;Wherein, the REST API response message is that transmitting terminal uses REST API far call interface The response message of the data of corresponding first format of mode;
The REST API response message is sent to the transmitting terminal.
3. the method according to claim 1, wherein first format is JSON format;Second format For RPC format;
It is described to be stated based on preset interface mappings, positive format is carried out to the data for including in the REST API communication information Conversion process, the step of obtaining RPC communication message, comprising:
Based on preset JAVA format conversion algorithms, the data for the JSON format for including in the REST API communication information are turned Change the data of JAVA format into;
Based on preset RPC format conversion algorithms, by the data conversion of the JAVA format at the data of RPC format;Wherein, institute The data for stating RPC format are the data for the second format for including in the RPC communication message.
4. the method according to claim 1, wherein the REST API communication information for receiving transmitting terminal and sending Before, further includes:
Obtain preset interface mappings statement;
Interface mappings statement is registered on the change server.
5. the method according to claim 1, wherein described stated based on preset interface mappings, to described The data that include in REST API communication information carry out positive format conversion processing, before obtaining RPC communication message, further includes:
According to the data for the first format that the REST API communication information includes, searched in preset interface mappings statement library With the presence or absence of the interface mappings statement comprising first format;Wherein, it is at least wrapped in the preset interface mappings statement library It is stated containing an interface mappings;
If there is the interface mappings statement comprising first format in the preset interface mappings statement library, based on default Code generator and the interface mappings state, generate format conversion algorithms.
6. a kind of far call device, which is characterized in that described device is applied to change server, the change server difference It is connect with transmitting terminal and receiving end, described device includes:
First receiving module, the performance layer state conversion Application Programming Interface REST API communication for receiving transmitting terminal transmission disappear Breath, the REST API communication information are to use REST API far call interface mode corresponding first comprising the transmitting terminal The communication information of the data of format;
First conversion module, for being stated based on preset interface mappings, to the number for including in the REST API communication information According to positive format conversion processing is carried out, remote procedure call communication information is obtained, the RPC communication message is comprising receiving Communication information of the end using the data of corresponding second format of far call RPC interface mode, the preset interface mappings sound Include the mapping relations between first format and second format in bright;
First sending module, for the RPC communication message to be sent to the receiving end.
7. device according to claim 6, which is characterized in that described device further include:
Second receiving module, the RPC response message sent for receiving the receiving end, the RPC response message are described connect The response message of the data for the second format that receiving end is made for the RPC communication message;
Second conversion module carries out the data for including in the RPC response message anti-for being stated based on the interface mappings To format conversion processing, REST API response message is obtained;Wherein, the REST API response message is that transmitting terminal uses REST The response message of the data of corresponding first format of API far call interface mode;
Second sending module, for the REST API response message to be sent to the transmitting terminal.
8. device according to claim 6, which is characterized in that first format is JSON format;Second format For RPC format;
First conversion equipment includes:
Third converting unit, for will include in the REST API communication information based on preset JAVA format conversion algorithms JSON format data conversion at JAVA format data;
4th converting unit, for being based on preset RPC format conversion algorithms, by the data conversion of the JAVA format at RPC The data of format;Wherein, the data of the RPC format are the data for the second format for including in the RPC communication message.
9. device according to claim 6, which is characterized in that described device further include:
Module is obtained, for obtaining preset interface mappings statement;
Registration module, for interface mappings statement to be registered in the change server.
10. device according to claim 6, which is characterized in that described device further include:
Searching module, the data of the first format for including according to the REST API communication information are reflected in preset interface It penetrates and searches whether to exist the interface mappings statement comprising first format in statement library;Wherein, the preset interface mappings Interface mappings statement is contained at least one in statement library;
Generation module, if for there is the interface mappings sound comprising first format in the preset interface mappings statement library It is bright, then it is stated based on preset code generator and the interface mappings, generates format conversion algorithms.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-5.
CN201910439710.7A 2019-05-24 2019-05-24 A kind of remote invocation method, device and electronic equipment Pending CN110187983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910439710.7A CN110187983A (en) 2019-05-24 2019-05-24 A kind of remote invocation method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910439710.7A CN110187983A (en) 2019-05-24 2019-05-24 A kind of remote invocation method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110187983A true CN110187983A (en) 2019-08-30

Family

ID=67717657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910439710.7A Pending CN110187983A (en) 2019-05-24 2019-05-24 A kind of remote invocation method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110187983A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868452A (en) * 2019-10-23 2020-03-06 中国建设银行股份有限公司 Data transmission method and system
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN112565215A (en) * 2020-11-25 2021-03-26 电信科学技术第十研究所有限公司 REST application architecture and construction method based on distributed service agent
CN112925998A (en) * 2021-03-30 2021-06-08 北京奇艺世纪科技有限公司 Interface data processing method, device and system, electronic equipment and storage medium
CN113676483A (en) * 2021-08-26 2021-11-19 中国联合网络通信集团有限公司 Multi-block chain access management method and system and capacity opening device thereof
CN114741168A (en) * 2020-08-31 2022-07-12 华为技术有限公司 Proxy service-based device calling method, electronic device and readable storage medium
CN115118757A (en) * 2022-06-24 2022-09-27 浙江海规技术有限公司 Network remote calling method and device, computer equipment and storage medium
CN115334135A (en) * 2022-08-01 2022-11-11 北京神州云合数据科技发展有限公司 Multi-cloud api asynchronous processing method, device and equipment based on event bus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161477A1 (en) * 2009-12-30 2011-06-30 Bmc Software, Inc. Method and System to Automatically Adapt Web Services from One Protocol/Idiom to Another Protocol/Idiom
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system
CN104579792A (en) * 2015-01-26 2015-04-29 四川中电启明星信息技术有限公司 Architecture and method for achieving centralized management of various types of virtual resources based on multiple adaptive modes
CN105144111A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Relay service for different WEB service architectures
CN105183452A (en) * 2015-08-06 2015-12-23 福州闽嘉电力科技有限公司 Spring AOP based remote protocol service middleware for monitoring power distribution device
CN107835178A (en) * 2017-11-13 2018-03-23 北京奇艺世纪科技有限公司 A kind of multi-protocols communication for service method, apparatus and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161477A1 (en) * 2009-12-30 2011-06-30 Bmc Software, Inc. Method and System to Automatically Adapt Web Services from One Protocol/Idiom to Another Protocol/Idiom
CN105144111A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Relay service for different WEB service architectures
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system
CN104579792A (en) * 2015-01-26 2015-04-29 四川中电启明星信息技术有限公司 Architecture and method for achieving centralized management of various types of virtual resources based on multiple adaptive modes
CN105183452A (en) * 2015-08-06 2015-12-23 福州闽嘉电力科技有限公司 Spring AOP based remote protocol service middleware for monitoring power distribution device
CN107835178A (en) * 2017-11-13 2018-03-23 北京奇艺世纪科技有限公司 A kind of multi-protocols communication for service method, apparatus and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程继洪等: "《Ajax实用技术》", 30 April 2018 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868452A (en) * 2019-10-23 2020-03-06 中国建设银行股份有限公司 Data transmission method and system
CN110868452B (en) * 2019-10-23 2021-12-07 中国建设银行股份有限公司 Data transmission method and system
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN114741168A (en) * 2020-08-31 2022-07-12 华为技术有限公司 Proxy service-based device calling method, electronic device and readable storage medium
CN114741168B (en) * 2020-08-31 2023-03-24 华为技术有限公司 Proxy service-based device calling method, electronic device and readable storage medium
CN112565215A (en) * 2020-11-25 2021-03-26 电信科学技术第十研究所有限公司 REST application architecture and construction method based on distributed service agent
CN112925998A (en) * 2021-03-30 2021-06-08 北京奇艺世纪科技有限公司 Interface data processing method, device and system, electronic equipment and storage medium
CN112925998B (en) * 2021-03-30 2023-07-25 北京奇艺世纪科技有限公司 Interface data processing method, device and system, electronic equipment and storage medium
CN113676483A (en) * 2021-08-26 2021-11-19 中国联合网络通信集团有限公司 Multi-block chain access management method and system and capacity opening device thereof
CN115118757A (en) * 2022-06-24 2022-09-27 浙江海规技术有限公司 Network remote calling method and device, computer equipment and storage medium
CN115334135A (en) * 2022-08-01 2022-11-11 北京神州云合数据科技发展有限公司 Multi-cloud api asynchronous processing method, device and equipment based on event bus

Similar Documents

Publication Publication Date Title
CN110187983A (en) A kind of remote invocation method, device and electronic equipment
CN106528432B (en) The construction method and device of test scene data bury a test method
Masek et al. Implementation of true IoT vision: survey on enabling protocols and hands-on experience
CN107241344B (en) Client is intercepted to the method, apparatus and system of the access of hostile network server
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN110351283A (en) A kind of data transmission method, device, equipment and storage medium
CN104702675B (en) The response method and device of customer incident
CN103532833B (en) Business system access method, terminal and agency service system
CN106878368A (en) The implementation method and device of information pushing
JP4444944B2 (en) Service linkage method
US11263267B1 (en) Apparatuses, methods, and computer program products for generating interaction vectors within a multi-component system
CN110365724A (en) Task processing method, device and electronic equipment
US9178952B2 (en) Systems and methods for service assurance using virtualized federated presence infrastructure
CN107171889A (en) Network application interface test method and device and electronic equipment
CN108306953A (en) A kind of strong compatible real time push method presented for Internet of Things application data
CN108880923A (en) The method and apparatus that policer operation applied to application server is requested
CN108234277A (en) A kind of mail transmission, the method and device of editor
Domingues et al. An energy-aware middleware for integrating wireless sensor networks and the internet
US20120221365A1 (en) Information processing system, apparatus, method, storage medium
JP5517255B2 (en) Service connection control method, control node server and program in a plurality of service node servers
CN110489326A (en) HTTPAPI adjustment method device, medium and equipment based on IDS
EP2809032A1 (en) Integrating data from various network nodes using a template stack
CN109144864A (en) Method and device for test window
CN107483294A (en) Monitor the method and device of network request
CN112887162B (en) Method and apparatus for detecting anomalies

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

Application publication date: 20190830

RJ01 Rejection of invention patent application after publication