CN107179951A - Remote procedure calling (PRC) method and device - Google Patents

Remote procedure calling (PRC) method and device Download PDF

Info

Publication number
CN107179951A
CN107179951A CN201610132917.6A CN201610132917A CN107179951A CN 107179951 A CN107179951 A CN 107179951A CN 201610132917 A CN201610132917 A CN 201610132917A CN 107179951 A CN107179951 A CN 107179951A
Authority
CN
China
Prior art keywords
service
parameter
calling
required parameter
identifiers
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
CN201610132917.6A
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610132917.6A priority Critical patent/CN107179951A/en
Publication of CN107179951A publication Critical patent/CN107179951A/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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses remote procedure calling (PRC) method and device.One embodiment of methods described includes:Service call equipment is received by calling the recalls information that extensive interface is sent, wherein described recalls information includes parameter incoming during the extensive interface of service call equipment calls, the parameter is included to the service identifiers of called service and required parameter used in calling service be packaged formed by the first object;First object is parsed, to obtain the service identifiers and the required parameter;The service that the service identifiers are indicated is performed according to the required parameter.

Description

Remote procedure calling (PRC) method and device
Technical field
The application is related to field of computer technology, and in particular to network technique field, more particularly to Remote procedure calling (PRC) method and device.
Background technology
The invocation of procedure, is exactly delivered to another process B from a process A by control, returns Control process is given process A by process B when returning.When caller and callee are all given In a process in host computer system, they are to be connected when generating executable file by linker Get up, this kind of invocation of procedure is referred to as LPC.Remote procedure call (RPC, Remote Procedure Call) refer to process in procedure activation remote system on local system.
However, in existing RPC schemes, when using interface interchange remote service, Mei Gejie Mouth all corresponds to an IDL (Interface description language, interface description language). When across language call every time, it is necessary to parse each language form of oneself by correspondence IDL, How many interface must just generate how many IDL.Therefore, existing remote procedure call side IDL maintenance is complex in case, it is necessary to the flexibility of program when improving remote procedure call.
The content of the invention
The purpose of the application is to propose a kind of improved remote procedure calling (PRC) method and device, come Solve the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of remote procedure calling (PRC) method, methods described includes: Service call equipment is received by calling the recalls information that extensive interface is sent, wherein described call Information includes parameter incoming during the extensive interface of service call equipment calls, and the parameter includes pair The service identifiers of called service and call service used in required parameter be packaged and formed The first object;First object is parsed, to obtain the service identifiers and the request Parameter;The service that the service identifiers are indicated is performed according to the required parameter.
In certain embodiments, methods described also includes:The execution state of the service will be performed And/or implementing result is encapsulated as the second object;It regard second object as the extensive interface Return value is back to the service call equipment, so that what the service call equipment interconnection was received Second object is parsed to obtain the result data.
In certain embodiments, methods described also includes:Exception produced by service process will be performed Non-conformance description information and/or abnormality code be encapsulated as the 3rd object;Using the 3rd object as The exception object of the extensive interface is back to the service call equipment, so that the service is adjusted The exception object received with equipment interconnection parsed with obtain the non-conformance description information and/or Abnormality code.
In certain embodiments, parsing first object, to obtain the service identifiers And the required parameter, including:Obtain described from first object by reflex mechanism Service identifiers and the required parameter.
Second aspect, this application provides another remote procedure calling (PRC) method, methods described bag Include:By calling extensive interface to service providing device transmission recalls information, the recalls information The parameter transmitted including calling during extensive interface, wherein the parameter includes:To calling service Service identifiers and call service used in required parameter be packaged formed by first pair As;Receive the service providing device is returned as the return value of the extensive interface second Object, wherein, the service providing device is to obtain the clothes parsing first object Business mark and the required parameter simultaneously perform the service identifiers instruction according to the required parameter Service after, the execution state and/or implementing result that perform the service be encapsulated as described second Object;Second object is parsed to obtain the execution state and/or implementing result of the service.
In certain embodiments, methods described also includes:Receive the service providing device conduct The 3rd object that the exception object of the extensive interface is returned, wherein, the 3rd object is Abnormal non-conformance description information produced by the service providing device will perform service process and/or Formed by abnormality code is packaged;The 3rd object is parsed to obtain the non-conformance description Information and/or abnormality code.
The third aspect, this application provides a kind of remote procedure call device, described device includes: Receiving unit, for receiving service call equipment by calling the recalls information that extensive interface is sent, Wherein described recalls information includes parameter incoming during the extensive interface of service call equipment calls, institute Parameter is stated including the service identifiers to called service and calls the used required parameter of service to enter First object formed by row encapsulation;Resolution unit, for parsing first object, to obtain Take the service identifiers and the required parameter;Execution unit, for joining according to the request Number performs the service that the service identifiers are indicated.
In certain embodiments, described device also includes:First encapsulation unit, for that will perform The execution state and/or implementing result of the service are encapsulated as the second object;First returning unit, For the return value of second object as the extensive interface to be back into the service call Equipment, so that the second object that the service call equipment interconnection is received is parsed to obtain State result data.
In certain embodiments, described device also includes:Second encapsulation unit, for that will perform Abnormal non-conformance description information and/or abnormality code are encapsulated as the 3rd object produced by service process; Second returning unit, for the exception object of the 3rd object as the extensive interface to be returned The service call equipment is back to, so that the exception object that the service call equipment interconnection is received Parsed to obtain the non-conformance description information and/or abnormality code.
In certain embodiments, the resolution unit is further used for:By reflex mechanism from institute State and the service identifiers and the required parameter are obtained in the first object.
Fourth aspect, this application provides another remote procedure call device, described device bag Include:Transmitting element, for by call extensive interface to service providing device send recalls information, The recalls information includes calling the parameter transmitted during extensive interface, wherein the parameter includes: The service identifiers of called service are packaged and shape with required parameter used in calling service Into the first object;First receiving unit, receives the service providing device as described extensive The second object that the return value of interface is returned, wherein, the service providing device is in parsing First object is to obtain the service identifiers and the required parameter and according to the request Parameter performed after the service that the service identifiers are indicated, by perform the service execution state and/ Or implementing result is encapsulated as second object;First resolution unit, for parsing described second Object is to obtain the execution state and/or implementing result of the service.
In certain embodiments, described device also includes:Second receiving unit, for receiving The 3rd object that service providing device is returned as the exception object of the extensive interface is stated, its In, the 3rd object be the service providing device will perform service process produced by it is abnormal Formed by non-conformance description information and/or abnormality code are packaged;Second resolution unit, is used for The 3rd object is parsed to obtain the non-conformance description information and/or abnormality code.
Remote procedure calling (PRC) method and device that the application is provided, are sent by extensive interface and called Information service and by the service identifiers of called service and call service used in required parameter enter Used parameter when calling extensive interface is used as after first object formed by row encapsulation.Now Only one IDL of compiling generation, reduces the content for needing to safeguard, and reduce called clothes Business change to RPC across language call influence.
Brief description of the drawings
Retouched by reading with reference to the detailed of being made to non-limiting example of being made of the following drawings State, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the remote procedure calling (PRC) method according to the application;
Fig. 3 is the flow of another embodiment of the remote procedure calling (PRC) method according to the application Figure;
Fig. 4 is the structural representation of one embodiment of the remote procedure call device according to the application Figure;
Fig. 5 is that the structure of another embodiment of the remote procedure call device according to the application is shown It is intended to;
Fig. 6 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of server The structural representation of system.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to the hair Bright restriction.It also should be noted that, illustrate only for the ease of description, in accompanying drawing with About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments Application.
Fig. 1 shows the embodiment of the remote procedure calling (PRC) method and device that can apply the application Exemplary system architecture 100.
As shown in figure 1, system architecture 100 can include service call equipment 101, network 102 With service providing device 103.Network 102 is used in service call equipment 101 and server 103 Between provide communication link medium.Network 102 can include various connection types, for example, have Line, wireless communication link or fiber optic cables etc..
Service call equipment 101 can be interacted by network 102 to service providing device 103, To receive or send message etc..
Service providing device 103 can be to provide the server of various services, and it can be to service The data such as recalls information for calling equipment 101 to send are handled, and by the number after result According to feeding back to service call equipment 101.
It should be noted that the remote procedure call side that the application Fig. 2 correspondence embodiments are provided Method is typically performed by service providing device 103, correspondingly, and the remote process that Fig. 4 is provided is adjusted It is generally positioned at device in service providing device 103.The application Fig. 3 correspondence embodiments are carried The remote procedure calling (PRC) method of confession is typically performed by service call equipment 101, correspondingly, Fig. 5 The remote procedure call device provided is generally positioned in service call equipment 101.
It should be understood that the number of the service call equipment, network and service providing device in Fig. 1 It is only schematical.According to realizing needs, can have any number of service call equipment, Network and service providing device.It should be noted that above-mentioned service call equipment and service call Equipment can be various electronic equipments, such as server, terminal.
With continued reference to Fig. 2, a reality of the remote procedure calling (PRC) method according to the application is shown Apply the flow 200 of example.Described remote procedure calling (PRC) method, comprises the following steps:
Step 201, service call equipment is received by calling the recalls information that extensive interface is sent.
In the present embodiment, remote procedure calling (PRC) method operation electronic equipment thereon is (for example Service providing device shown in Fig. 1) wired connection mode or radio connection can be passed through Recalls information is received at service call equipment.Wherein, service call equipment can be by calling The extensive interface that electronic equipment is provided sends above-mentioned recalls information to electronic equipment.Wherein, on It can be a kind of extensive interface to state extensive interface, and carrying out long-range calling to every kind of service all may be used To be carried out using the extensive interface.
Electronic equipment calls the recalls information that extensive interface is sent, and can regard recalls information as tune With suction parameter during extensive interface.The suction parameter (i.e. recalls information) can be to service Identify and call service used in required parameter be packaged formed by the first object as tune Used parameter during with extensive interface, so, transmitted recalls information are that can include being somebody's turn to do Parameter.To service identifiers and the used required parameter of service will called to be packaged and formed During the first object, service identifiers and required parameter can as first object attribute.Need Illustrate, above-mentioned service identifiers are the interface identifier of actual calling interface, accordingly, ask Parameter is the parameter called and used required for above-mentioned actual calling interface.It should be noted that Service identifiers can use string representation, and required parameter can use the data after serializing. The object to be formed or class instantiation are instantiated in addition, the first object can be structure The object of formation.
It is pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connections, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections, UWB (ultra wideband) Connection and other currently known or exploitation in the future radio connections.
Step 202, the first object is parsed, to obtain service identifiers and required parameter.
In the present embodiment, based on the recalls information obtained in step 201, electronic equipment can be with Parameter incoming during the extensive interface of service call equipment calls is obtained from recalls information, i.e., it is above-mentioned First object.By to the service identifiers of called service and calling service in above-mentioned first object Formed by used required parameter is packaged, therefore, electronic equipment can parse this One object, so as to obtain the service identifiers and required parameter of the member as first object.Can Choosing, above-mentioned recalls information can also include the object type of above-mentioned first object, so that Electronic equipment can be parsed according to the object type to above-mentioned first object.The object type Another incoming parameter when can be the extensive interface of service call equipment calls.
Step 203, the service that service identifiers are indicated is performed according to required parameter.
In the present embodiment, based on the service identifiers and required parameter accessed by step 202, Electronic equipment can perform the service indicated by the service identifiers, and this can be used when performing service Required parameter.In this way, electronic equipment is that can perform the clothes called required for service call equipment Business.
In some optional implementations of the present embodiment, above-mentioned remote procedure calling (PRC) method is also wrapped Include following steps:First, electronic equipment can obtain execution state and/or hold when performing service Row result, and execution state and/or implementing result are encapsulated as the second object;Afterwards, electronics is set It is standby the return value of second object as above-mentioned extensive interface to be back to service call equipment. Wherein, implementing result can use the data after serializing, be held during the no return value of above-mentioned service Row result can be sky.Execution state is to represent actual calling interface implementation status, performs state It can be represented using enumeration structure type.
Wherein it is possible to be that this code represents to run succeeded using 200.In this way, Service call equipment is obtained with the second object and the second object can be parsed to obtain Above-mentioned execution state and/or implementing result.The execution state and/or implementing result may act as far The return information of the journey invocation of procedure.Wherein, the second object can structure instantiate to be formed Object or class instantiate the object to be formed.
Optionally, above-mentioned recalls information can also include the object type of above-mentioned second object, from And electronic equipment is encapsulated the state of execution and/or implementing result according to the object type Into the second object.The object type is incoming when can be the extensive interface of service call equipment calls Another item parameter.
In some optional implementations of the present embodiment, above-mentioned remote procedure calling (PRC) method is also wrapped Include following steps:
First, if if electronic equipment produced in service process is performed it is abnormal, can will be produced Abnormal non-conformance description information and/or abnormality code be encapsulated as the 3rd object, wherein non-conformance description Information is used to describe abnormal main information, character string type can be used to represent, abnormality code It is then to be used to judging the code of abnormal (such as interface is not present, or time-out etc.), the abnormal generation Code can also use enumeration structure to represent.
Afterwards, electronic equipment can return the exception object of the 3rd object as above-mentioned extensive interface It is back to the service call equipment.Optionally, above-mentioned recalls information can also include the above-mentioned 3rd The object type of object, so that electronic equipment can press execution state and/or implementing result The 3rd object is packaged into according to the object type.The object type can be service call equipment calls Incoming another item parameter during extensive interface.Wherein, the 3rd object can be structure instantiation The object or class of formation instantiate the object to be formed.
In some optional implementations of the present embodiment, in step 202, electronic equipment can be with Service identifiers and required parameter are obtained from the first subject by reflex mechanism.
The method that above-described embodiment of the application is provided, sends recalls information by extensive interface and takes Business and by the service identifiers of called service and call service used in required parameter be packaged Formed by used parameter when calling extensive interface is used as after the first object.Now only compile An IDL is generated, the content for needing to safeguard is reduced, and reduce called service change To RPC across language call influence.
With further reference to Fig. 3, it illustrates another of remote procedure calling (PRC) method embodiment Flow 300.The flow 300 of the remote procedure calling (PRC) method, comprises the following steps:
Step 301, by calling extensive interface to service providing device transmission recalls information.
In the present embodiment, remote procedure calling (PRC) method operation electronic equipment thereon is (for example Service providing device shown in Fig. 1) wired connection mode or radio connection can be passed through Recalls information is sent to service providing device, wherein, electronic equipment can be by calling extensive connect Mouthful mode send above-mentioned recalls information, the recalls information can be as when calling extensive interface Parameter.The parameter (i.e. recalls information) can include the first object, wherein the first object can be with To the service identifiers of called service and required parameter used in calling service is packaged and The object of formation.Wherein, above-mentioned service identifiers can be the interface identifier of actual calling interface, Accordingly, required parameter is the parameter called and used required for above-mentioned actual calling interface.
Step 302, service providing device is returned by the return value of extensive interface the is received Two objects.
In the present embodiment, the recalls information of service providing device is sent to based on step 301, Service call equipment can be handled recalls information to generate the second object, and by second pair As the return value as extensive interface is back to electronic equipment.So as to which electronic equipment can be obtained The second object that service providing device is returned.Service call equipment can be specific in the following way Processing:First, service providing device first obtain the first object in recalls information and parse this One object, to obtain above-mentioned service identifiers and above-mentioned required parameter;Then, service offer is set It is standby that the service that above-mentioned service identifiers are indicated can be performed according to above-mentioned required parameter;Then, service Above-mentioned second can be encapsulated as by the execution state and/or implementing result for the service that performs by providing equipment Object, and the return value of above-mentioned object as extensive interface is back to electronic equipment.Optionally, Above-mentioned recalls information can also include the object type of above-mentioned first object and the object of the second object Type, so that electronic equipment can be according to the object type of the first object to above-mentioned first pair As being parsed, the state of execution and/or implementing result can also be sealed according to default object type Dress up the second object.When these object types can also be service call equipment calls extensive interface Incoming parameter.
Step 303, the second object is parsed to obtain the execution state of above-mentioned service and/or perform knot Really.
In the present embodiment, the second object got based on step 302, electronic equipment can be with Second object is parsed, it is hereby achieved that the execution state that includes of the second object and/ Or implementing result.Optionally, when the object type of the second object be passed through by electronic equipment it is incoming Parameter when determining, electronic equipment can be parsed according to the object type to the second object. Above-mentioned execution state and/or implementing result may act as performing the return letter of remote procedure call Breath.
In some optional implementations of the present embodiment, above-mentioned remote procedure calling (PRC) method may be used also To comprise the following steps:Electronic equipment can receive service providing device as the different of extensive interface The 3rd object that normal object is returned, wherein, the 3rd object is that service providing device will perform clothes Formed by abnormal non-conformance description information and/or abnormality code are packaged produced by business process; Afterwards, electronic equipment can parse the 3rd object with obtain above-mentioned non-conformance description information and/ Or abnormality code.
The method that above-described embodiment of the application is provided, sends recalls information by extensive interface and takes Business and by the service identifiers of called service and call service used in required parameter be packaged Formed by used parameter when calling extensive interface is used as after the first object.Now only compile An IDL is generated, the content for needing to safeguard is reduced, and reduce called service change To RPC across language call influence.
With further reference to Fig. 4, as the realization to method shown in Fig. 2, this application provides one Plant one embodiment of remote procedure call device, the device embodiment and the method shown in Fig. 2 Embodiment is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 4, the remote procedure call device 400 described in the present embodiment includes:Receive Unit 401, resolution unit 402, execution unit 403.Wherein, receiving unit 401 is used to connect Service call equipment is received by calling the recalls information that extensive interface is sent, wherein recalls information bag Parameter incoming during the extensive interface of service call equipment calls is included, the parameter is included to calling clothes The service identifiers of business and call service used in required parameter be packaged formed by first pair As;Resolution unit 402 is used to parse the first object, to obtain service identifiers and required parameter; Execution unit 403 is configured to perform the service that service identifiers are indicated according to required parameter.
In the present embodiment, the receiving unit 401 of remote procedure call device 400, parsing are single Member 402, the specific processing of execution unit 403 may be referred to Fig. 2 correspondence embodiment step 201, Step 202 and step 203, are repeated no more here.
In some optional implementations of the present embodiment, remote procedure call device 400 may be used also With including:First encapsulation unit (not shown), for by perform service execution state and/or Implementing result is encapsulated as the second object;First returning unit (not shown), for by the second object Service call equipment is back to as the return value of extensive interface, so that service call equipment interconnection The second object received is parsed to obtain the result data.Specific processing may be referred to figure Corresponding implementation in 2 correspondence embodiments.
In some optional implementations of the present embodiment, remote procedure call device 400 may be used also With including:Second encapsulation unit (not shown), for will perform service process produced by it is abnormal Non-conformance description information and/or abnormality code are encapsulated as the 3rd object;Second returning unit (is not shown Go out), for the exception object of the 3rd object as extensive interface to be back into service call equipment, So that the exception object that service call equipment interconnection is received is parsed to obtain non-conformance description information And/or abnormality code.Specific processing may be referred to corresponding implementation in Fig. 2 correspondence embodiments.
In some optional implementations of the present embodiment, above-mentioned resolution unit 402 is further used In:The service identifiers and the request are obtained from first object by reflex mechanism Parameter.Specific processing may be referred to corresponding implementation in Fig. 2 correspondence embodiments.
With further reference to Fig. 5, as the realization to method shown in Fig. 3, this application provides one Plant one embodiment of remote procedure call device, the device embodiment and the method shown in Fig. 2 Embodiment is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 5, the remote procedure call device 500 described in the present embodiment includes:Send Unit 501, the first receiving unit 502, the first resolution unit 503.Wherein, transmitting element 501 For by calling extensive interface to service providing device transmission recalls information, recalls information to include The parameter transmitted during extensive interface is called, wherein above-mentioned parameter includes:To the clothes of called service Business mark and call service used in required parameter be packaged formed by the first object;The One receiving unit 502 is returned for receiving service providing device as the return value of extensive interface The second object, wherein, service providing device is to obtain service parsing first object Mark and required parameter are simultaneously performed after the service that service identifiers are indicated according to required parameter, will held The execution state and/or implementing result of row service are encapsulated as the second object;First resolution unit 503 For parsing the second object to obtain the execution state and/or implementing result of above-mentioned service.
In the present embodiment, the transmitting element 501 of remote procedure call device 500, first connect Receive unit 502, the specific processing of the first resolution unit 503 and may be referred to Fig. 3 correspondence embodiments Step 301, step 302 and step 303, repeat no more here.
In some optional implementations of the present embodiment, remote procedure call device 500 may be used also With including:Second receiving unit (not shown), connects for receiving service providing device as extensive The 3rd object that the exception object of mouth is returned, wherein, the 3rd object is that the service offer is set Abnormal non-conformance description information and/or abnormality code are sealed produced by the standby service process by execution Formed by dress;Second resolution unit (not shown), for parsing the 3rd object to obtain exception Description information and/or abnormality code.Specific processing may be referred to corresponding in Fig. 3 correspondence embodiments Implementation.
Below with reference to Fig. 6, it illustrates suitable for for realizing the terminal device of the embodiment of the present application Or the structural representation of the computer system 600 of server.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, its Can according to the program being stored in read-only storage (ROM) 602 or from storage part 608 The program that is loaded into random access storage device (RAM) 603 and perform various appropriate actions And processing.In RAM 603, the system that is also stored with 600 operates required various program sums According to.CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input / output (I/O) interface 605 is also connected to bus 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.; Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 607;Storage part 608 including hard disk etc.;And including such as LAN card, The communications portion 609 of the NIC of modem etc..Communications portion 609 is via such as The network of internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc., Be arranged on as needed on driver 610, in order to the computer program that reads from it according to Need to be mounted into storage part 608.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart can be with It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter Calculation machine program bag, which contains, is used for the program code of the method shown in execution flow chart.Implement such In example, the computer program can be downloaded and installed by communications portion 609 from network, And/or be mounted from detachable media 611.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, Architectural framework in the cards, function and the operation of method and computer program product.This point On, each square frame in flow chart or block diagram can represent a module, program segment or code A part, the part of the module, program segment or code is used for comprising one or more The executable instruction of logic function as defined in realizing.It should also be noted that being used as replacement at some In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair It is raw.For example, two square frames succeedingly represented can essentially be performed substantially in parallel, they Sometimes it can also perform in the opposite order, this is depending on involved function.It is also noted that It is, each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart Combination, can be realized with the special hardware based system of defined function or operation is performed, Or can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of software It is existing, it can also be realized by way of hardware.Described unit can also be arranged on processing In device, for example, can be described as:A kind of processor includes receiving unit, resolution unit, held Row unit.Wherein, the title of these units is not constituted to the unit in itself under certain conditions Restriction, for example, execution unit be also described as " according to the required parameter perform institute State the unit of the service of service identifiers instruction ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, The nonvolatile computer storage media can be described in above-described embodiment included in device Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or The multiple programs of person, when one or more of programs are performed by an equipment so that described Equipment:Service call equipment is received by calling the recalls information that extensive interface is sent, wherein institute Incoming parameter, the parameter when stating recalls information including the extensive interface of service call equipment calls Including the service identifiers to called service and call service used in required parameter be packaged Formed by the first object;First object is parsed, to obtain the service identifiers and institute State required parameter;The service that the service identifiers are indicated is performed according to the required parameter;Or, Above-mentioned nonvolatile computer storage media is stored with one or more program, when one Or multiple programs by an equipment when being performed so that the equipment:By calling extensive interface Recalls information is sent to service providing device, the recalls information includes passing when calling extensive interface The parameter passed, wherein the parameter includes:To the service identifiers of called service and call service Used required parameter be packaged formed by the first object;The service offer is received to set The second object that the standby return value as the extensive interface is returned, wherein, the service is carried It is to obtain the service identifiers and the required parameter parsing first object for equipment And performed according to the required parameter after the service that the service identifiers are indicated, the clothes will be performed The execution state and/or implementing result of business are encapsulated as second object;Parse second object To obtain the execution state and/or implementing result of the service.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, is not limited In the technical scheme of the particular combination of above-mentioned technical characteristic, do not departed from while should cover yet In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature Formed by other technical schemes.Such as features described above and (but not limited to) disclosed herein Technical characteristic with similar functions carries out technical scheme formed by replacement mutually.

Claims (12)

1. a kind of remote procedure calling (PRC) method, it is characterised in that methods described includes:
Service call equipment is received by calling the recalls information that extensive interface is sent, wherein described Incoming parameter, the parameter bag during extensive as the service call equipment calls interface of recalls information Include to the service identifiers of called service and required parameter used in calling service is packaged and The first object formed;
First object is parsed, to obtain the service identifiers and the required parameter;
The service that the service identifiers are indicated is performed according to the required parameter.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
The execution state and/or implementing result that perform the service are encapsulated as the second object;
The return value of second object as the extensive interface is back to the service call Equipment, so that the second object that the service call equipment interconnection is received is parsed to obtain State result data.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
By non-conformance description information abnormal produced by execution service process and/or abnormality code encapsulation For the 3rd object;
The exception object of 3rd object as the extensive interface is back to the service to adjust With equipment, so that the exception object that the service call equipment interconnection is received is parsed to obtain The non-conformance description information and/or abnormality code.
4. the method according to one of claim 1-3, it is characterised in that the parsing institute The first object is stated, to obtain the service identifiers and the required parameter, including:By anti- Penetrate mechanism and the service identifiers and the required parameter are obtained from first object.
5. a kind of remote procedure calling (PRC) method, it is characterised in that methods described includes:
By calling extensive interface to service providing device transmission recalls information, the recalls information As the parameter transmitted when calling extensive interface, wherein the parameter includes:To calling service Service identifiers and call service used in required parameter be packaged formed by first pair As;
Receive the service providing device is returned as the return value of the extensive interface second Object, wherein, the service providing device is to obtain the clothes parsing first object Business mark and the required parameter simultaneously perform the service identifiers instruction according to the required parameter Service after, the execution state and/or implementing result that perform the service be encapsulated as described second Object;
Second object is parsed to obtain the execution state and/or implementing result of the service.
6. method according to claim 5, it is characterised in that methods described also includes:
Receive the service providing device is returned as the exception object of the extensive interface Three objects, wherein, the 3rd object is that the service providing device will perform service process institute Formed by the abnormal non-conformance description information of generation and/or abnormality code are packaged;
The 3rd object is parsed to obtain the non-conformance description information and/or abnormality code.
7. a kind of remote procedure call device, it is characterised in that described device includes:
Receiving unit, for receiving service call equipment by calling calling for extensive interface transmission Information, wherein ginseng incoming during extensive as the service call equipment calls interface of the recalls information Number, the parameter is including the service identifiers to called service and calls service is used to ask Parameter be packaged formed by the first object;
Resolution unit, for parsing first object, to obtain the service identifiers and institute State required parameter;
Execution unit, for performing the service that the service identifiers are indicated according to the required parameter.
8. device according to claim 7, it is characterised in that described device also includes:
First encapsulation unit, for the execution state and/or implementing result of performing the service to be sealed Fill as the second object;
First returning unit, for using second object as the extensive interface return value The service call equipment is back to, so that the second couple that the service call equipment interconnection is received As being parsed to obtain the result data.
9. device according to claim 7, it is characterised in that described device also includes:
Second encapsulation unit, abnormal non-conformance description information produced by for service process will to be performed And/or abnormality code is encapsulated as the 3rd object;
Second returning unit, for the exception of the 3rd object as the extensive interface is right As being back to the service call equipment, so that the exception that the service call equipment interconnection is received Object is parsed to obtain the non-conformance description information and/or abnormality code.
10. the device according to one of claim 7-9, it is characterised in that the parsing Unit is further used for:The service identifiers are obtained from first object by reflex mechanism And the required parameter.
11. a kind of remote procedure call device, it is characterised in that described device includes:
Transmitting element, for by call extensive interface to service providing device send recalls information, The recalls information is as the parameter transmitted when calling extensive interface, wherein the parameter includes: The service identifiers of called service are packaged and shape with required parameter used in calling service Into the first object;
First receiving unit, receives the service providing device as the return of the extensive interface The second object that value is returned, wherein, the service providing device is to parse described first pair As with obtain the service identifiers and the required parameter and according to the required parameter perform institute State after the service that service identifiers are indicated, the execution state and/or implementing result of the service will be performed It is encapsulated as second object;
First resolution unit, for parsing second object to obtain the execution shape of the service State and/or implementing result.
12. device according to claim 11, it is characterised in that described device also includes:
Second receiving unit, for receiving the service providing device as the extensive interface The 3rd object that exception object is returned, wherein, the 3rd object is that the service offer is set Abnormal non-conformance description information and/or abnormality code are sealed produced by the standby service process by execution Formed by dress;
Second resolution unit, for parsing the 3rd object to obtain the non-conformance description information And/or abnormality code.
CN201610132917.6A 2016-03-09 2016-03-09 Remote procedure calling (PRC) method and device Pending CN107179951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610132917.6A CN107179951A (en) 2016-03-09 2016-03-09 Remote procedure calling (PRC) method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610132917.6A CN107179951A (en) 2016-03-09 2016-03-09 Remote procedure calling (PRC) method and device

Publications (1)

Publication Number Publication Date
CN107179951A true CN107179951A (en) 2017-09-19

Family

ID=59830408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610132917.6A Pending CN107179951A (en) 2016-03-09 2016-03-09 Remote procedure calling (PRC) method and device

Country Status (1)

Country Link
CN (1) CN107179951A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798098A (en) * 2017-10-27 2018-03-13 链家网(北京)科技有限公司 A kind of method and device for realizing dynamic socket field
CN109660573A (en) * 2017-10-10 2019-04-19 北京京东尚科信息技术有限公司 Data transmission method and device
CN110245027A (en) * 2018-09-21 2019-09-17 浙江大华技术股份有限公司 A kind of method and apparatus of interprocess communication
CN110247841A (en) * 2019-06-14 2019-09-17 北京达佳互联信息技术有限公司 Method for sending information and device, service server and storage medium
CN111352801A (en) * 2020-02-26 2020-06-30 北京九州云动科技有限公司 Rest service monitoring method and system
CN112084046A (en) * 2020-09-12 2020-12-15 朱领军 Dubbo generalization interface calling method and device
CN113157523A (en) * 2021-04-21 2021-07-23 平安付科技服务有限公司 Service monitoring method and device, computer equipment and storage medium
CN114172966A (en) * 2021-12-07 2022-03-11 中国工商银行股份有限公司 Service calling method and device and service processing method and device under unitized architecture
WO2023137997A1 (en) * 2022-01-20 2023-07-27 中广核工程有限公司 Design software calling method and apparatus, computer device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7290267B2 (en) * 2002-01-23 2007-10-30 International Business Machines Corporation Multi-protocol object distribution
CN102438048A (en) * 2011-12-15 2012-05-02 北京新媒传信科技有限公司 Method and system for calling remote service from Internet
CN103002047A (en) * 2012-12-19 2013-03-27 上海斐讯数据通信技术有限公司 RPC (Remote Procedure Call) type WEB SOA (Service-Oriented Architecture) method
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7290267B2 (en) * 2002-01-23 2007-10-30 International Business Machines Corporation Multi-protocol object distribution
CN102438048A (en) * 2011-12-15 2012-05-02 北京新媒传信科技有限公司 Method and system for calling remote service from Internet
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)
CN103002047A (en) * 2012-12-19 2013-03-27 上海斐讯数据通信技术有限公司 RPC (Remote Procedure Call) type WEB SOA (Service-Oriented Architecture) method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
精品资料: ""userguide-zh-dubbo_20130110"", 《豆丁网》 *
鲜永菊主编: "《入侵检测》", 31 August 2009 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660573A (en) * 2017-10-10 2019-04-19 北京京东尚科信息技术有限公司 Data transmission method and device
CN109660573B (en) * 2017-10-10 2021-10-15 北京京东尚科信息技术有限公司 Data transmission method and device
CN107798098A (en) * 2017-10-27 2018-03-13 链家网(北京)科技有限公司 A kind of method and device for realizing dynamic socket field
CN110245027B (en) * 2018-09-21 2024-05-14 浙江大华技术股份有限公司 Inter-process communication method and device
CN110245027A (en) * 2018-09-21 2019-09-17 浙江大华技术股份有限公司 A kind of method and apparatus of interprocess communication
CN110247841A (en) * 2019-06-14 2019-09-17 北京达佳互联信息技术有限公司 Method for sending information and device, service server and storage medium
CN110247841B (en) * 2019-06-14 2021-08-17 北京达佳互联信息技术有限公司 Information sending method and device, service server and storage medium
CN111352801A (en) * 2020-02-26 2020-06-30 北京九州云动科技有限公司 Rest service monitoring method and system
CN112084046A (en) * 2020-09-12 2020-12-15 朱领军 Dubbo generalization interface calling method and device
CN113157523A (en) * 2021-04-21 2021-07-23 平安付科技服务有限公司 Service monitoring method and device, computer equipment and storage medium
CN113157523B (en) * 2021-04-21 2022-11-11 平安付科技服务有限公司 Service monitoring method and device, computer equipment and storage medium
CN114172966B (en) * 2021-12-07 2024-02-06 中国工商银行股份有限公司 Service calling method, service processing method and device under unitized architecture
CN114172966A (en) * 2021-12-07 2022-03-11 中国工商银行股份有限公司 Service calling method and device and service processing method and device under unitized architecture
WO2023137997A1 (en) * 2022-01-20 2023-07-27 中广核工程有限公司 Design software calling method and apparatus, computer device, and storage medium

Similar Documents

Publication Publication Date Title
CN107179951A (en) Remote procedure calling (PRC) method and device
TWI767182B (en) H5-Based Access Components and Mobile Terminals
US20080282223A1 (en) Xml push and remote execution of a wireless applications
CN110310034A (en) A kind of service orchestration applied to SaaS, business flow processing method and apparatus
CN106686023A (en) Flow designing method, client machine, server side apparatus and system
CN107301098A (en) A kind of remote procedure call device based on Thrift agreements, method and system
CN107729139A (en) A kind of method and apparatus for concurrently obtaining resource
CN105653933B (en) Plug-in loading method and device
CN110119294A (en) The generation method of menu page, apparatus and system
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN104717179B (en) A kind of processing method and processing device of communication service
CN109634751B (en) Method for realizing communication between application layer and bottom layer by utilizing electron framework
CN110489323A (en) Visual RPC API adjustment method, device, medium and equipment
CN106936932A (en) A kind of method wrapped by cloud service protocol access robot software
CN107104999A (en) The treating method and apparatus of service interface call request
CN108052548A (en) Method, system and the terminal device that a kind of webpage creates
CN107621987A (en) A kind of message based unmanned plane common ground station software architecture
CN107423079A (en) A kind of method of synchronous script, the method and apparatus for parsing message
CN108965375A (en) Service call proxy control system, method, server and readable storage medium storing program for executing
CN108600331A (en) Interactive interface rendering method, client, terminal and system
Liu et al. Accelerating COTS middleware acquisition: The i-Mate process
CN109582317A (en) Method and apparatus for debugging boarding application
CN105893235B (en) A kind of emulation test method, device and server
CN112631649A (en) Intelligent contract management method, device, terminal equipment and medium
CN108694120A (en) The method and apparatus of testing service component

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: 20170919

RJ01 Rejection of invention patent application after publication