CN105827672A - Remote call method and remote call device - Google Patents
Remote call method and remote call device Download PDFInfo
- Publication number
- CN105827672A CN105827672A CN201510004057.3A CN201510004057A CN105827672A CN 105827672 A CN105827672 A CN 105827672A CN 201510004057 A CN201510004057 A CN 201510004057A CN 105827672 A CN105827672 A CN 105827672A
- Authority
- CN
- China
- Prior art keywords
- message call
- information
- message
- execution result
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
Embodiments of the invention relate to a remote call method and a remote call device. The method comprises the following steps: a server receives a first call message sent by a client, wherein the first call message is generated after the client encapsulates custom service data according to a first type protocol; the server analyzes the first call message according to the first type protocol; the server acquires the custom service data according to the analysis result of the first call message; the server executes a service operation on the custom service data to get execution result information; and the server encapsulates the execution result information according to the first type protocol to generate a second call message, and returns the second call message to the client to enable the client to analyze the second call message according to the first type protocol and acquire the execution result information according to the analysis result of the second call message. Thus, the efficiency of information transmission is improved, and the purpose of communication resource saving is achieved.
Description
Technical field
The application relates to communication technical field, particularly relates to a kind of remote invocation method and device.
Background technology
Remote procedure call (RemoteProcedureCall, RPC) mainly asks service, general employing client-side/server-side pattern by network from remote computer.Specifically, client call process one recalls information having process parameter of transmission, to service processes, then waits response message.In service end, process keeps sleep state until recalls information arrives.When a recalls information arrives, service end obtains process parameter, result of calculation, sends reply message, then waits next recalls information, and finally, client call process receives reply message, it is thus achieved that proceeding results, then calls execution and proceeds.
In prior art, RPC method of calling is roughly divided into two kinds: the first is network service (WebServices) mode, i.e. web services definition language (WebServiceDefinitionLanguage, WSDL)+Simple Object Access Protocol (SimpleObjectAccessProtocol, SOAP)+HTML (Hypertext Markup Language) (HypertextTransferProtocol, HTTP);The second is HTTP mode, i.e. HTTP+javaScript object representation (JavaScriptObjectNotation, JSON).Although first kind of way is to best suit Services Oriented Achitecture (ServiceOrientedArchitecture, SOA) technology of design principle, but by being then based on extensible markup language (ExtensibleMarkupLanguage, XML) file transfer data, the file structure of XML is based on label, therefore analyzing efficiency is the highest, and can produce substantial amounts of hash (tag head and label tail) in the transmitting procedure of network;Second way http protocol in network transmission process can create substantial amounts of hash (being concentrated mainly on packet header) equally, even if doing the optimization of GNU floppy drive (GZIP) compression etc, efficiency of transmission is generally also not as a lot of binary formats.
As can be seen here, existing RPC call method would generally carry a large amount of hash, thus existing RPC call method efficiency of transmission can be caused low, and the problem of the extra consumption communication resource.
Summary of the invention
The embodiment of the present application provides a kind of remote invocation method and device, by utilizing high efficiency first kind agreement in far call, thus can improve the efficiency of transmission of information, and can reach to save the purpose of the communication resource.
First aspect, it is provided that a kind of remote invocation method, the method includes:
Service end receives the first message call that client sends, and described first message call generates after being packaged self-defining business datum according to first kind agreement by described client;
According to described first kind agreement, resolve described first message call;
According to the result of described first message call of parsing, obtain described self-defining business datum;
Described self-defining business datum is performed business operation, obtains execution result information;
According to described first kind agreement, described execution result information is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Second aspect, it is provided that a kind of remote invocation method, the method includes:
Self-defining business datum is packaged by client according to first kind agreement, generates the first message call;
Described first message call is sent to service end, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, return described second message call to described client;
Receive described second message call;
According to described first kind agreement, described second message call is resolved;
According to the result of described second message call of parsing, obtain described execution result information.
The third aspect, it is provided that a kind of far call device, this device includes: receive unit, resolution unit, acquiring unit, performance element and signal generating unit;
Described reception unit, for receiving the first message call that client sends, described first message call generates after being packaged self-defining business datum according to first kind agreement by described client;
Described resolution unit, for according to described first kind agreement, resolving described first message call that described reception unit receives;
Described acquiring unit, for resolving the result of described first message call according to described resolution unit, obtains described self-defining business datum;
Described performance element, performs business operation for the described self-defining business datum obtaining described acquiring unit, obtains execution result information;
Described signal generating unit, for according to described first kind agreement, the execution result information obtaining described performance element is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Fourth aspect, it is provided that a kind of far call device, this device includes: signal generating unit, transmitting element, reception unit, resolution unit and acquiring unit;
Described signal generating unit, for being packaged self-defining business datum according to first kind agreement, generates the first message call;
Described transmitting element, for sending, to service end, described first message call that described signal generating unit generates, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, described second message call is returned to described client;
Described reception unit, is used for receiving described second message call;
Described resolution unit, for according to described first kind agreement, described second message call receiving described reception unit resolves;
Described acquiring unit, for resolving the result of described second message call according to described resolution unit, obtains described execution result information.
The remote invocation method of the application offer and device, service end receives the first message call that client sends, and described first message call generates after being packaged self-defining business datum according to first kind agreement by described client;According to described first kind agreement, resolve described first message call;According to the result of described first message call of parsing, obtain described self-defining business datum;Described self-defining business datum is performed business operation, obtains execution result information;According to described first kind agreement, described execution result information is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.Thus, the present processes can improve the efficiency of transmission of information, and can reach to save the purpose of the communication resource.
Accompanying drawing explanation
The network architecture schematic diagram that Fig. 1 provides for the application;
The remote invocation method flow chart that Fig. 2 provides for the embodiment of the present application one;
Fig. 3 is the Frame schematic diagram of the first kind agreement of the application;
The remote invocation method flow chart that Fig. 4 provides for the embodiment of the present application two;
The far call device schematic diagram that Fig. 5 provides for the embodiment of the present application three;
The far call device schematic diagram that Fig. 6 provides for the embodiment of the present application four.
Detailed description of the invention
For making the purpose of the embodiment of the present application, technical scheme and advantage clearer, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is some embodiments of the present application rather than whole embodiments.Based on the embodiment in the application, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of the application protection.
For ease of the understanding to the embodiment of the present application, being further explained explanation below in conjunction with accompanying drawing with specific embodiment, embodiment is not intended that the restriction to the embodiment of the present application.
The remote invocation method of the embodiment of the present application offer and device are be applicable to e-commerce system, it is particularly suited for user and carries out paying the bill or performing other business operation by Alipay system, wherein, Alipay system includes communicating based on first kind agreement between client and service end, and client and service end.The network architecture schematic diagram that Fig. 1 provides for the application, as shown in Figure 1, the remote invocation method of the application, communication network between client and service end can be divided into four layers, wherein, ground floor encapsulates the transmission carrying out packet according to transmission control protocol (TransmissionControlProtocol, TCP);The second layer defines a set of unified communications access interface, third layer is for synchronizing to block input and output (BlockingInputOutput, BIO) and synchronize non-obstruction input and output (Non-blockingInputOutput, NIO) define a set of unified event model;The 4th layer of efficient parsing module encapsulating BIO, NIO and first kind agreement.
The advantage that the first kind agreement of the application can have following four aspects: 1) multiplexing request: connect, single, the initiation request that energy is concurrent, be not limiting as number of request;2) Request Priority: client can request that certain resource is having the preferentially transmitted, this avoids the high priority requests problem by non-key resource Blocking Networks passage;3) protocol massages header suppression;4) service end pushes stream: service end can be to client push data, it is not necessary to client initiates a request.So, the remote invocation method efficiency of transmission of the application is high, and can reach to save the purpose of the communication resource.
The remote invocation method flow chart that Fig. 2 provides for the embodiment of the present application one, the executive agent of described method can be service end.As in figure 2 it is shown, described method specifically includes:
Step 210, service end receives the first message call that client sends, and described first message call generates after being packaged self-defining business datum according to first kind agreement by described client.
Preferably, first kind agreement is SPDY agreement.
The Frame schematic diagram of first kind agreement shown in Figure 3, as shown in Figure 3, the Frame of first kind agreement includes heading and message body, wherein, message body encapsulates self-defining business datum, self-defining business datum includes: protocol contents part and data division, and described protocol contents part takies 128bit, and in 128bit, everybody is as follows:
Multiplexed port information (0-7bit): multiplexed port refers to that the port that client sends request use to service end is identical with the port that service end returns response message use to client;
Protocol type information (8-15bit): the network protocol type used for labelling, for example, it is possible to be SPDY agreement, http protocol, Transmission Control Protocol or udp protocol;
Serializing mode information (16-20bit): the binary data stream in network becomes user can be in the way of the information identified for representing;
Event information (21bit): the identification information used in cataloged procedure;
Whether two-way communication information (22bit): two-way communication represents that the response message that client need not receiving service end return after service end sends request can send new request;
Type of message information (23bit): be used for representing that message is in response to message or request message;
Status information (24-31bit): for representing the type of response message, for example, it is possible to be 300-305;
Service identifiers id information (32-99bit): for identifying the type of service, e.g., gathering service or payment service etc.;
Data length (100-127bit): for representing the length of data portions contents.
For example, when user completes payment transaction operation by Alipay system, in self-defining business datum, the content of data division can be: the information such as commodity ID and Payment Amount.Specifically, after client data portion adds protocol contents, obtain self-defining business datum, namely the message body of the Frame of first kind agreement, after above-mentioned self-defining business datum is added the heading of first kind agreement, it is possible to generate the first message call;The first message call generated is sent to service end by client.
Step 220, according to described first kind agreement, resolves described first message call.
Step 230, according to the result of described first message call of parsing, obtains described self-defining business datum.
Service end is after receiving the first message call that client sends, first message call is resolved, obtain resolving the result of the first message call: the heading of first kind protocol data frame and the message body of first kind protocol data frame, after removing the heading of first kind protocol data frame, just can get the message body of first kind protocol data frame, namely the self-defining business datum of client can be got, and including: protocol contents part and data division.
Step 240, performs business operation to described self-defining business datum, obtains execution result information.
It should be noted that described client and described service end consult the information that in described self-defining business datum, various piece represents in advance.Such as, client can represent service identifiers id information with the information of 32-99bit in service end in advance agreement protocol content part, the information table that 128bit starts shows data division, then receiving, when service end, the first message call that client sends, if and needed to obtain the COS of client request, then would directly read the content of 32-99bit in protocol contents part;And if need obtain data division content, then directly read the content that in protocol contents part, 128bit starts.
For example, assume that the protocol type that in protocol contents part, protocol type information represents is first kind agreement, the type of message that type of message information represents is request message, the COS that service identifiers id information represents is payment service, and the content of hypothesis data division is: commodity ID:XXYY and Payment Amount: 100 yuan.Then service end performs business operation particularly as follows: based on first kind agreement to self-defining business datum, self-defining business datum is resolved, and first analysis protocol content part, the service obtaining client request is payment service, then service end calls corresponding payment service process, then payment service process is according to the commodity ID:XXYY of data division, finds corresponding commodity, and completes its payment operation of 100 yuan further;If above-mentioned payment service process is correctly completed payment operation, then the execution result information obtained can be: represents the identification information of successful payment;If above-mentioned payment service process is not fully complete payment operation because of Sorry, your ticket has not enough value in payment wallet, then the execution result information obtained can be: pays wallet balances not enough, it is impossible to completes payment.Finally, payment service process returns execution result information obtained above to service end.
Step 250, according to described first kind agreement, described execution result information is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Wherein, described first kind agreement is SPDY agreement, described is packaged described execution result information according to described first kind agreement, generates the second message call, including:
Described execution result information is added described protocol contents part;
To add the message body as described SPDY agreement of the execution result information after described protocol contents part, and add the heading of described SPDY agreement, generate the second message call.
In previous example, if the execution result information that payment service process returns to service end is: pay wallet balances not enough, it is impossible to complete payment.Above-mentioned execution result information is added protocol contents part by service end, as, in the protocol contents part added, protocol type information (8-15bit) is the information for labelling SPDY agreement, the type of message information (23bit) added is the information for representing response message, the message body as described SPDY agreement of the execution result information after protocol contents part will be added, and add the heading of described SPDY agreement, generate the second message call.Finally, the second message call generated is back to client by service end.
Client is after receiving the second message call, second message call is resolved, obtain resolving the result of the second message call: the heading of SPDY protocol data frame and the message body of SPDY protocol data frame, after removing the heading of SPDY protocol data frame, just can get the message body of SPDY protocol data frame, and after the protocol contents part of message body is removed, can be obtained by data division, namely the execution result information that service end returns can be got: pay wallet balances not enough, it is impossible to complete payment.Thus displayed to the user that above-mentioned execution result information by client.
To sum up, the remote invocation method that the embodiment of the present application provides, service end receives the first message call that client sends;According to described first kind agreement, resolve described first message call;According to the result of described first message call of parsing, obtain described self-defining business datum;Described self-defining business datum is performed business operation, obtains execution result information;According to described first kind agreement, described execution result information is packaged, generates the second message call, and return described second message call to described client.And owing to first kind agreement is high efficiency agreement, therefore, the efficiency of transmission that the present processes has information is high, and can reach to save the purpose of the communication resource.
The remote invocation method flow chart that Fig. 4 provides for the embodiment of the present application two, the executive agent of described method can be client, and as shown in Figure 4, described method specifically may include that
Step 410, self-defining business datum is packaged by client according to first kind agreement, generates the first message call.
Preferably, first kind agreement is SPDY agreement.
For example, when user completes payment transaction operation by Alipay system, in self-defining business datum, the content of data division can be: the information such as commodity ID and Payment Amount.Specifically, after client data portion adds protocol contents, obtain the message body in self-defining business datum, namely the Frame of first kind agreement, after above-mentioned self-defining business datum is added the heading of first kind agreement, it is possible to generate the first message call.
Step 420, described first message call is sent to service end, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, return described second message call to described client.
Service end is after receiving the first message call that client sends, first message call is resolved, obtain resolving the result of the first message call: the heading of first kind protocol data frame and the message body of first kind protocol data frame, after removing the heading of first kind protocol data frame, just can get the message body of first kind Y protocol data frame, namely the self-defining business datum of client can be got, and including: protocol contents part and data division.Herein, the information that during client and described service end consult described self-defining business datum in advance, various piece represents.
Service end performs business operation particularly as follows: based on first kind agreement to self-defining business datum, self-defining business datum is resolved, and first analysis protocol content part, the service obtaining client request is payment service, then service end calls corresponding payment service process, then payment service process is according to the commodity ID:XXYY of data division, finds corresponding commodity, and completes its payment operation of 100 yuan further;If above-mentioned payment service process is correctly completed payment operation, then the execution result information obtained can be: represents the identification information of successful payment;If above-mentioned payment service process is not fully complete payment operation because of Sorry, your ticket has not enough value in payment wallet, then the execution result information obtained can be: pays wallet balances not enough, it is impossible to completes payment.Finally, payment service process returns execution result information obtained above to service end.
Described execution result information is added described protocol contents part;To add the message body as described first kind agreement of the execution result information after described protocol contents part, and add the heading of described first kind agreement, generate the second message call.
Step 430, receives described second message call.
Step 440, according to described first kind agreement, resolves described second message call.
Step 450, according to the result of described second message call of parsing, obtains described execution result information.
Client is after receiving the second message call, second message call is resolved, obtain resolving the result of the second message call: the heading of first kind protocol data frame and the message body of first kind protocol data frame, after removing the heading of first kind protocol data frame, just can get the message body of first kind protocol data frame, and after the protocol contents part of message body is removed, can be obtained by data division, namely the execution result information that service end returns can be got.
With above-described embodiment one provide remote invocation method accordingly, a kind of far call device that the embodiment of the present application three also provides for, as it is shown in figure 5, this device includes: receive unit 501, resolution unit 502, acquiring unit 503, performance element 504 and signal generating unit 505.
Receiving unit 501, for receiving the first message call that client sends, described first message call generates after being packaged self-defining business datum according to first kind agreement by described client.
Described self-defining business datum includes: protocol contents part and data division, wherein, described protocol contents part includes: multiplexed port information, protocol type information, serializing mode information, event information, whether two-way communication information, type of message information, status information, service identifiers id information and data length.
Resolution unit 502, for according to described first kind agreement, resolving and receive described first message call that unit 501 receives.
Acquiring unit 503, for resolving the result of described first message call according to resolution unit 502, obtains described self-defining business datum.
Performance element 504, performs business operation for the described self-defining business datum obtaining acquiring unit 503, obtains execution result information.
Signal generating unit 505, for according to described first kind agreement, the execution result information obtaining performance element 504 is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Signal generating unit 505 specifically for:
Described execution result information is added described protocol contents part;
To add the message body as described SPDY agreement of the execution result information after described protocol contents part, and add the heading of described SPDY agreement, generate the second message call.
Alternatively, the information that during described client and service end consult described self-defining business datum in advance, various piece represents.
The device that the embodiment of the present application three provides implants the method that the embodiment of the present application one provides, therefore, the specific works process of the device that the application provides, and repeats the most again at this.
The device that the embodiment of the present application three provides, receives unit 501 and receives the first message call that client sends;Resolution unit 502, according to described first kind agreement, resolves described first message call;Acquiring unit 503, according to the result of described first message call of parsing, obtains described self-defining business datum;Performance element 504 performs business operation to described self-defining business datum, obtains execution result information;Described execution result information, according to described first kind agreement, is packaged by signal generating unit 505, generates the second message call, and returns described second message call to described client.Thus, the efficiency of transmission that the device of the application has information is high, and can reach to save the purpose of the communication resource.
With above-described embodiment two provide remote invocation method accordingly, a kind of far call device that the embodiment of the present application four also provides for, as shown in Figure 6, this device includes: signal generating unit 601, transmitting element 602, reception unit 603, resolution unit 604 and acquiring unit 605.
Signal generating unit 601, for being packaged self-defining business datum according to first kind agreement, generates the first message call.
Described self-defining business datum includes: protocol contents part and data division, wherein, described protocol contents part includes: multiplexed port information, protocol type information, serializing mode information, event information, whether two-way communication information, type of message information, status information, service identifiers id information and data length.
Transmitting element 602, for sending, to service end, described first message call that signal generating unit 601 generates, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, described second message call is returned to described client.
Wherein, described first kind agreement is SPDY agreement, described is packaged described execution result information according to described first kind agreement, generates the second message call, including:
Described execution result information is added described protocol contents part;
To add the message body as described SPDY agreement of the execution result information after described protocol contents part, and add the heading of described SPDY agreement, generate the second message call.
Receive unit 603, be used for receiving described second message call.
Resolution unit 604, for according to described first kind agreement, resolving described second message call receiving unit 603 reception.
Acquiring unit 605, for resolving the result of described second message call according to resolution unit 604, obtains described execution result information.
Alternatively, the information that during client and described service end consult described self-defining business datum in advance, various piece represents.
Professional should further appreciate that, the object of each example described in conjunction with the embodiments described herein and algorithm steps, can be with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, the most generally describe composition and the step of each example according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel specifically should can be used for using different methods to realize described function to each, but this realization is it is not considered that exceed scope of the present application.
The method described in conjunction with the embodiments described herein or the step of algorithm can use the software module that hardware, processor perform, or the combination of the two is implemented.In any other form of storage medium that software module is known in can being placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described detailed description of the invention; purpose, technical scheme and the beneficial effect of the application is further described; it is it should be understood that; the foregoing is only the detailed description of the invention of the application; it is not used to limit the protection domain of the application; all within spirit herein and principle, any modification, equivalent substitution and improvement etc. done, within should be included in the protection domain of the application.
Claims (10)
1. a remote invocation method, it is characterised in that the method includes:
Service end receives the first message call that client sends, and described first message call generates after being packaged self-defining business datum according to first kind agreement by described client;
According to described first kind agreement, resolve described first message call;
According to the result of described first message call of parsing, obtain described self-defining business datum;
Described self-defining business datum is performed business operation, obtains execution result information;
According to described first kind agreement, described execution result information is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Method the most according to claim 1, it is characterized in that, described self-defining business datum includes: protocol contents part and data division, wherein, described protocol contents part includes: multiplexed port information, protocol type information, serializing mode information, event information, whether two-way communication information, type of message information, status information, service identifiers id information and data length.
Method the most according to claim 2, it is characterised in that described first kind agreement is SPDY agreement, described is packaged described execution result information according to described first kind agreement, generates the second message call, including:
Described execution result information is added described protocol contents part;
To add the message body as described SPDY agreement of the execution result information after described protocol contents part, and add the heading of described SPDY agreement, generate the second message call.
4. according to the method described in any one of claim 1-3, it is characterised in that described client and described service end consult the information that in described self-defining business datum, various piece represents in advance.
5. a remote invocation method, it is characterised in that described method includes:
Self-defining business datum is packaged by client according to first kind agreement, generates the first message call;
Described first message call is sent to service end, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, return described second message call to described client;
Receive described second message call;
According to described first kind agreement, described second message call is resolved;
According to the result of described second message call of parsing, obtain described execution result information.
6. a far call device, it is characterised in that described device includes: receive unit, resolution unit, acquiring unit, performance element and signal generating unit;
Described reception unit, for receiving the first message call that client sends, described first message call generates after being packaged self-defining business datum according to first kind agreement by described client;
Described resolution unit, for according to described first kind agreement, resolving described first message call that described reception unit receives;
Described acquiring unit, for resolving the result of described first message call according to described resolution unit, obtains described self-defining business datum;
Described performance element, performs business operation for the described self-defining business datum obtaining described acquiring unit, obtains execution result information;
Described signal generating unit, for according to described first kind agreement, the execution result information obtaining described performance element is packaged, generate the second message call, and return described second message call to described client, so that described client is according to described first kind agreement, resolve described second message call, and according to resolving the result of described second message call, obtain described execution result information.
Device the most according to claim 6, it is characterized in that, described self-defining business datum includes: protocol contents part and data division, wherein, described protocol contents part includes: multiplexed port information, protocol type information, serializing mode information, event information, whether two-way communication information, type of message information, status information, service identifiers id information and data length.
Device the most according to claim 7, it is characterised in that described signal generating unit specifically for:
Described execution result information is added described protocol contents part;
To add the message body as described SPDY agreement of the execution result information after described protocol contents part, and add the heading of described SPDY agreement, generate the second message call.
9. according to the device described in any one of claim 6-8, it is characterised in that described client and service end consult the information that in described self-defining business datum, various piece represents in advance.
10. a far call device, it is characterised in that described device includes: signal generating unit, transmitting element, reception unit, resolution unit and acquiring unit;
Described signal generating unit, for being packaged self-defining business datum according to first kind agreement, generates the first message call;
Described transmitting element, for sending, to service end, described first message call that described signal generating unit generates, so that described first message call is resolved by described service end according to described first kind agreement, according to the result resolving described first message call, obtain described self-defining business datum, described self-defining business datum is performed business operation, obtain execution result information, and make described server according to described first kind agreement, described execution result information is packaged, generate the second message call, described second message call is returned to described client;
Described reception unit, is used for receiving described second message call;
Described resolution unit, for according to described first kind agreement, described second message call receiving described reception unit resolves;
Described acquiring unit, for resolving the result of described second message call according to described resolution unit, obtains described execution result information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004057.3A CN105827672A (en) | 2015-01-05 | 2015-01-05 | Remote call method and remote call device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004057.3A CN105827672A (en) | 2015-01-05 | 2015-01-05 | Remote call method and remote call device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105827672A true CN105827672A (en) | 2016-08-03 |
Family
ID=56513586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510004057.3A Pending CN105827672A (en) | 2015-01-05 | 2015-01-05 | Remote call method and remote call device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827672A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295007A (en) * | 2017-07-31 | 2017-10-24 | 浪潮天元通信信息系统有限公司 | A kind of method of servicing for supporting various protocols, apparatus and system |
CN110971576A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Security authentication method and related device |
CN111338828A (en) * | 2020-03-24 | 2020-06-26 | 广州华多网络科技有限公司 | Terminal equipment and application program interface calling control method thereof |
CN111443961A (en) * | 2020-03-24 | 2020-07-24 | 广州华多网络科技有限公司 | Terminal equipment and cross-process communication method thereof |
CN112367294A (en) * | 2020-10-13 | 2021-02-12 | 成都精灵云科技有限公司 | Network communication method between multiple hosts adapting to edge computing architecture |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040052273A1 (en) * | 2002-09-17 | 2004-03-18 | Jeyhan Karaoguz | System and method for providing a super channel in a multi-band multi-protocol hybrid wired/wireless network |
CN101409717A (en) * | 2008-12-01 | 2009-04-15 | 用友软件股份有限公司 | Protocol-independent SOA system and method for processing business |
CN102098296A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | Method and system for realizing remote call |
-
2015
- 2015-01-05 CN CN201510004057.3A patent/CN105827672A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040052273A1 (en) * | 2002-09-17 | 2004-03-18 | Jeyhan Karaoguz | System and method for providing a super channel in a multi-band multi-protocol hybrid wired/wireless network |
CN101409717A (en) * | 2008-12-01 | 2009-04-15 | 用友软件股份有限公司 | Protocol-independent SOA system and method for processing business |
CN102098296A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | Method and system for realizing remote call |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295007A (en) * | 2017-07-31 | 2017-10-24 | 浪潮天元通信信息系统有限公司 | A kind of method of servicing for supporting various protocols, apparatus and system |
CN110971576A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Security authentication method and related device |
CN111338828A (en) * | 2020-03-24 | 2020-06-26 | 广州华多网络科技有限公司 | Terminal equipment and application program interface calling control method thereof |
CN111443961A (en) * | 2020-03-24 | 2020-07-24 | 广州华多网络科技有限公司 | Terminal equipment and cross-process communication method thereof |
WO2021190469A1 (en) * | 2020-03-24 | 2021-09-30 | 广州华多网络科技有限公司 | Terminal apparatus, and control method for calling application program interface therefor |
CN111443961B (en) * | 2020-03-24 | 2023-04-11 | 广州方硅信息技术有限公司 | Terminal equipment and cross-process communication method thereof |
CN112367294A (en) * | 2020-10-13 | 2021-02-12 | 成都精灵云科技有限公司 | Network communication method between multiple hosts adapting to edge computing architecture |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108306877B (en) | NODE JS-based user identity information verification method and device and storage medium | |
Soni et al. | API features individualizing of web services: REST and SOAP | |
CN110022289B (en) | Data transmission method, device and system | |
CN102790776B (en) | Heartbeat connection normalizing processing method, terminal, server and communication system | |
CN105827672A (en) | Remote call method and remote call device | |
CN105763619B (en) | The method and device that client and server-side are communicated | |
CN111163166B (en) | Enterprise service bus system | |
CN102082771A (en) | Service management middleware based on ESB (enterprise service bus) technology | |
CN101282333A (en) | Method for message exchange between distributed multi-protocol agent and central system | |
CN112714180A (en) | Service calling method and device, electronic equipment and storage medium | |
CN107332857B (en) | Network data transmission method, device, system and storage medium | |
US9871848B1 (en) | Integration engine for communications between source and target applications | |
CN111294235A (en) | Data processing method, device, gateway and readable storage medium | |
Mangas et al. | WOTPY: A framework for web of things applications | |
CN106572051A (en) | Distributed lock service realizing method and device for distributed system | |
CN111367690A (en) | Method and device for supporting combined API service calling | |
CN111901384A (en) | System, method, electronic device and readable storage medium for processing message | |
CN103001962B (en) | Business support method and system | |
CN103595695A (en) | Method and system for providing services by service bus | |
CN101651713B (en) | Smart card network data transmitting method and device | |
CN102523307B (en) | B/S-based data transmission system | |
Shivakumar et al. | Designing the Integration Layer | |
CN108989157B (en) | Method and device for controlling intelligent equipment | |
CN113778499B (en) | Method, apparatus, device and computer readable medium for publishing services | |
CN117615043B (en) | Inter-service communication method and system on edge gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160803 |