CN102497453A - Calling device and calling method for remote programs - Google Patents

Calling device and calling method for remote programs Download PDF

Info

Publication number
CN102497453A
CN102497453A CN2011104487450A CN201110448745A CN102497453A CN 102497453 A CN102497453 A CN 102497453A CN 2011104487450 A CN2011104487450 A CN 2011104487450A CN 201110448745 A CN201110448745 A CN 201110448745A CN 102497453 A CN102497453 A CN 102497453A
Authority
CN
China
Prior art keywords
far
program
client
unit
call
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
CN2011104487450A
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.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software 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 Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN2011104487450A priority Critical patent/CN102497453A/en
Publication of CN102497453A publication Critical patent/CN102497453A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a calling device for remote programs. The calling device comprises a client and a server. The client comprises a registration unit, a request generation unit and a request transmission unit, wherein the registration unit registers a plurality of remote programs to be called; the request generation unit generates a calling request corresponding to all the remote programs; and the request transmission unit transmits the calling request to the server. The server comprises a request receiving unit, a resolution unit, an execution unit and a result returning unit, wherein the request receiving unit receives the calling request from the client; the resolution unit resolves the calling request; the execution unit calls corresponding target programs, and acquires returned results corresponding to each target program; and the result returning unit returns all the returned results to the client. Correspondingly, the invention also provides a calling method for the remote programs. By the technical scheme, an application program can combine remote calling according to needs without additionally writing a remote calling combination program, so that remote calling efficiency is improved.

Description

The calling device of far-end program and call method
Technical field
The present invention relates to field of computer technology, in particular to the calling device and the call method of far-end program.
Background technology
Along with development of computer network and universal, increasing computer information system dependency network is as basic service conditions, and most system has all adopted C/S (Client/Server, the client/server) model of broad sense.Even be called as the model of B/S structure (Browser/Server, browser/server), in fact also be to utilize web browser (Web Browser) to be used as a general client computer.
Based on this computation model, operate in a program on the machine and must call the subprogram that operates on the other computer, this process is called as far call.The calling each other of two programs on same the computer, the time overhead of far call is much bigger, often differs more than three one magnitude, in addition more.Therefore the time overhead that reduces far call is the key that improves the efficient of this type systematic.
The time overhead of far call promptly initiates to begin to getting access to the time that return value spends from calling, and equals called program operation institute's time spent to add data and between two computers, transmit the time that is spent.In general program runtime is difficult reduces, and the time that transfer of data spent can be reduced actual data volume through Network Transmission through means such as compression algorithms and reduced.
But some immobilizes basically in the time overhead of transfer of data, can't reduce, and that is exactly the expense that network communication protocol causes.Briefly, in order to carry out far call, two computers need to set up " connection ", also need the time and connect.Short for some running times, the little far call of data amount transmitted, the shared time that connects will account for the larger proportion of whole time cost.Also have communication delay in addition, promptly packet comes and goes between the two ends of communication and also need take the regular hour, and this is particularly evident at wide area network and satellite network.
For an independent far call, time that connects and network delay are unavoidable.But in the actual program, in order to accomplish a relatively independent function, program need be carried out repeatedly far call.To the general treating method of this situation is to merge far call repeatedly.
Bright for instance its principle is supposed need call three programs of A, B, C on the remote computer in order to accomplish a certain function.Can write a program M who operates on the remote computer in addition, in program M, call A, B, C respectively, and with the result who calls for three times in the lump as the return value of program M.Certainly, the parameter of program M need be the union of the parameter of program A, B, C.In client, carry out far call no longer respectively three times, but make caller M into, so just repeatedly far call is reduced to once.
The maximum shortcoming of this method is exactly that cost is very high.
The first, need to increase a program M, this itself just needs to increase the extra exploitation and the cost of maintenance.
The second, when demand changes, such as except A, B, C, also need caller D, so just need make amendment to program M, let also caller D of M.Worse situation is perhaps arranged, and M, possibly just can't make amendment to M in order to guarantee compatibility again by other routine call, in this case again must program N of increase, and realize these four programs are merged and call.
The 3rd, the applicability of M is narrower.Suppose to have the another one program need fall with program A, B, D and realize its demand, M also is useless in this case, needs to write a program K more in addition and realizes the merging of A, B, D is called.When this combination maybe be a lot of the time, possibly to write the cost that merges caller be inconceivable for every kind.
Therefore in the system of reality, because the consideration of cost, the mode that can only adopt merging to call to the situation of minority is optimized.
As previously mentioned, the mode that at present far call is merged is exactly the occasion that far call each occurred repeatedly, and submeter is write a program and merged far call repeatedly.This method major defect is exactly that development cost is higher; And the high reason of cost is exactly; The combination of every kind of far call all needs one to write special program and do the merging far call; When the demand of software changes, just possibly cause to revise the program that merging is called, or increase new merging caller.
Therefore, need a kind of new far call scheme, realize that application program can merge its far call as required, and need not write the program that far call merges in addition, improve the efficient of far call.
Summary of the invention
The technical problem that the present invention will solve is to provide a kind of new far call scheme, can merge its far call as required with the realization application program, and need not write the program that far call merges in addition, improves the efficient of far call.
In view of this, the present invention proposes a kind of calling device of far-end program, comprising: the client and server end, wherein, said client comprises: registering unit, respectively the far-end program that a plurality of needs call is registered; The request generation unit after the far-end program that all need call is accomplished said registration, generates the call request corresponding to all said far-end programs; Request transmitting unit, the said call request that the described request generation unit is generated is sent to said server end; And said server end comprises: the request receiving element receives the said call request from said client; Resolution unit is resolved the call request that the described request receiving element receives; Performance element according to the analysis result of said resolution unit, calls corresponding target program, and obtains the return results corresponding to each said target program; The result returns the unit, and all said return results that said performance element is obtained are back to said client.
In this technical scheme; After registering through the far-end program that needs are called simultaneously; Transmission comprises the request of the information of these far-end programs; Server end can be asked according to this, to these far-end programs with calling in an invoked procedure, thereby the time that reduces invoked procedure widely and consumed.
In technique scheme, preferably, said client also comprises: inquiry unit, whether inquiry has obtained the return results that this calls, if do not exist, then sends to the described request generation unit and generates order.In this technical scheme,, need register all the far-end programs that need call owing to need merge when calling; And in order to recognize the registration of whether having accomplished last far-end program, thereby carry out the transmission of call request, can postpone the strategy that calls; Promptly when taking place when calling result's inquiry; Show and accomplish registration, begun to wait for and called the result, then generate and send call request this moment.
In technique scheme, preferably, said client also comprises: the sign generation unit, for each said far-end program generates corresponding identification; And identification unit as a result, according to the said sign that said sign generation unit generates, obtain return results respectively corresponding to each said far-end program.In this technical scheme; After registering at every turn; Generate the sign of a far-end program of calling corresponding to needs, then merge call completion after, for a plurality of results of calling that return; Can distinguish through the sign that generates before, exactly each called the result and be dispensed to corresponding program.
In technique scheme, preferably, said server end also comprises: encapsulation unit is packaged into packet with all said return results according to preset form; And said result returns the unit said packet is back to said client.
In technique scheme, preferably, said server end also comprises: the debugging unit, check whether said far-end program mistake occurs when carrying out; And when mistake occurring, after the abnormal results that said encapsulation unit generates correspondence carries out said encapsulation with normal result, return the unit by said result and be back to said client.In this technical scheme; The mistake that occurs is write down and returns; Having influence on other program implementation unusually or carrying out out returning of result because of having influence on unusually of a program of a program can prevent because simultaneously, also can be used as a kind of special result; Make that after returning this result the user can in time recognize situation about calling.
According to another aspect of the invention, a kind of call method of far-end program is provided also, has comprised: step 202, client are registered the far-end program that a plurality of needs call respectively; Step 204 after the far-end program that all need call is accomplished said registration, generates the call request corresponding to all said far-end programs, and is sent to server end; Step 206, said server end is resolved said call request, calls corresponding target program, and obtains the return results corresponding to each said target program; Step 208, said server end is sent to said client with all said return results.
In this technical scheme; After registering through the far-end program that needs are called simultaneously; Transmission comprises the request of the information of these far-end programs; Server end can be asked according to this, to these far-end programs with calling in an invoked procedure, thereby the time that reduces invoked procedure widely and consumed.
In technique scheme, preferably, in said step 204, also comprise: whether inquiry has obtained the return results that this calls, if do not exist, then generates said call request, and is sent to said server end.In this technical scheme,, need register all the far-end programs that need call owing to need merge when calling; And in order to recognize the registration of whether having accomplished last far-end program, thereby carry out the transmission of call request, can postpone the strategy that calls; Promptly when taking place when calling result's inquiry; Show and accomplish registration, begun to wait for and called the result, then generate and send call request this moment.
In technique scheme, preferably, in said step 202, also comprise: for each said far-end program generates corresponding identification; And in said step 208, also comprise: obtain return results according to said sign corresponding to each said far-end program by said client.In this technical scheme; After registering at every turn; Generate the sign of a far-end program of calling corresponding to needs, then merge call completion after, for a plurality of results of calling that return; Can distinguish through the sign that generates before, exactly each called the result and be dispensed to corresponding program.
In technique scheme, preferably, in said step 208, also comprise: said server end is back to said client after all said return results are packaged into packet according to preset form.
In technique scheme, preferably, also comprise:, then generate abnormal results if said far-end program mistake occurs when carrying out; And, be sent to said client with said abnormal results and after the result carries out said encapsulation normally.In this technical scheme; The mistake that occurs is write down and returns; Having influence on other program implementation unusually or carrying out out returning of result because of having influence on unusually of a program of a program can prevent because simultaneously, also can be used as a kind of special result; Make that after returning this result the user can in time recognize situation about calling.
In sum, through technical scheme of the present invention, realized when the demand of calling changes; Application program can merge its far call as required, and need not write the program that far call merges in addition, only needs to revise the sign that client application generated; And need not to adjust server end; Can increase at an easy rate or far call that deletion need to merge, improve the efficient of far call widely, reduce cost of developing; Client application can merge a plurality of far calls as required, reduces network latency, improves the response speed of software, improves user experience; And can let client realize merging more neatly to a plurality of far calls, development cost is lower.
Description of drawings
Fig. 1 is the block diagram of the calling device of far-end program according to an embodiment of the invention;
Fig. 2 is the flow chart of the call method of far-end program according to an embodiment of the invention;
Fig. 3 is that client application calls the sketch map of the process of backstage service through registering unit according to an embodiment of the invention;
Fig. 4 postpones the flow chart that calls according to an embodiment of the invention;
Fig. 5 is the flowchart of performance element according to an embodiment of the invention;
Fig. 6 is that client represents the flow chart of the process at interface according to an embodiment of the invention;
Fig. 7 is that client represents the reciprocal process sketch map between the system in the interface process according to an embodiment of the invention.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, the present invention is further described in detail below in conjunction with accompanying drawing and embodiment.
Set forth a lot of details in the following description so that make much of the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following disclosed specific embodiment.
Fig. 1 is the block diagram of the calling device of far-end program according to an embodiment of the invention.
The present invention proposes a kind of calling device 100 of far-end program, as shown in Figure 1, comprising: client 102 and server end 104, wherein, client 102 comprises: registering unit 102A, register the far-end program that a plurality of needs call respectively; Request generation unit 102B after the far-end program that all need call is accomplished registration, generates the call request corresponding to all far-end programs; Request transmitting unit 102C, the call request that request generation unit 102B is generated is sent to server end 104; And server end 104 comprises: request receiving element 104A receives the call request from client 102; Resolution unit 104B resolves the call request that request receiving element 104A receives; Performance element 104C according to the analysis result of resolution unit 104B, calls corresponding target program, and obtains the return results corresponding to each target program; The result returns unit 104D, and all return results that performance element 104C is obtained are back to client 102.
In this technical scheme; After registering through the far-end program that needs are called simultaneously; Transmission comprises the request of the information of these far-end programs; Server end 104 can be asked according to this, to these far-end programs with calling in an invoked procedure, thereby the time that reduces invoked procedure widely and consumed.
In technique scheme, client 102 also comprises: inquiry unit 102D, whether inquiry has obtained the return results that this calls, if do not exist, then sends to request generation unit 102B and generates order.In this technical scheme,, need register all the far-end programs that need call owing to need merge when calling; And in order to recognize the registration of whether having accomplished last far-end program, thereby carry out the transmission of call request, can postpone the strategy that calls; Promptly when taking place when calling result's inquiry; Show and accomplish registration, begun to wait for and called the result, then generate and send call request this moment.
In technique scheme, client 102 also comprises: sign generation unit 102E, for each far-end program generates corresponding identification; And identification unit 102F as a result, according to the sign that sign generation unit 102E generates, obtain return results respectively corresponding to each far-end program.In this technical scheme; After registering at every turn; Generate the sign of a far-end program of calling corresponding to needs, then merge call completion after, for a plurality of results of calling that return; Can distinguish through the sign that generates before, exactly each called the result and be dispensed to corresponding program.
In technique scheme, server end 104 also comprises: encapsulation unit 104E is packaged into packet with all return results according to preset form; And the result returns unit 104D packet is back to client 102.
In technique scheme, server end 104 also comprises: debugging unit 104F, and whether inspection far-end program mistake occurs when carrying out; And when mistake occurring, after the abnormal results that encapsulation unit 104E generates correspondence encapsulates with normal result, return unit 104D by the result and be back to client 102.In this technical scheme; The mistake that occurs is write down and returns; Having influence on other program implementation unusually or carrying out out returning of result because of having influence on unusually of a program of a program can prevent because simultaneously, also can be used as a kind of special result; Make that after returning this result the user can in time recognize situation about calling.
Fig. 2 is the flow chart of the call method of far-end program according to an embodiment of the invention
The present invention also provides a kind of call method of far-end program, and is as shown in Figure 2, comprising: step 202, client are registered the far-end program that a plurality of needs call respectively; Step 204 after the far-end program that all need call is accomplished registration, generates the call request corresponding to all far-end programs, and is sent to server end; Step 206, server end is resolved call request, calls corresponding target program, and obtains the return results corresponding to each target program; Step 208, server end is sent to client with all return results.
In this technical scheme; After registering through the far-end program that needs are called simultaneously; Transmission comprises the request of the information of these far-end programs; Server end can be asked according to this, to these far-end programs with calling in an invoked procedure, thereby the time that reduces invoked procedure widely and consumed.
In technique scheme, in step 204, also comprise: whether inquiry has obtained the return results that this calls, if do not exist, then generates call request, and is sent to server end.In this technical scheme,, need register all the far-end programs that need call owing to need merge when calling; And in order to recognize the registration of whether having accomplished last far-end program, thereby carry out the transmission of call request, can postpone the strategy that calls; Promptly when taking place when calling result's inquiry; Show and accomplish registration, begun to wait for and called the result, then generate and send call request this moment.
In technique scheme, in step 202, also comprise: for each far-end program generates corresponding identification; And in step 208, also comprise: obtain return results according to sign corresponding to each far-end program by client.In this technical scheme; After registering at every turn; Generate the sign of a far-end program of calling corresponding to needs, then merge call completion after, for a plurality of results of calling that return; Can distinguish through the sign that generates before, exactly each called the result and be dispensed to corresponding program.
In technique scheme, in step 208, also comprise: server end is back to client after all return results are packaged into packet according to preset form.
In technique scheme, also comprise:, then generate abnormal results if the far-end program mistake occurs when carrying out; And, be sent to client with abnormal results and after the result encapsulates normally.In this technical scheme; The mistake that occurs is write down and returns; Having influence on other program implementation unusually or carrying out out returning of result because of having influence on unusually of a program of a program can prevent because simultaneously, also can be used as a kind of special result; Make that after returning this result the user can in time recognize situation about calling.
Fig. 3 is client application according to an embodiment of the invention calls the process of backstage service through registering unit a sketch map.
As shown in Figure 3; The calling device of far-end program is divided into two parts from structure; One is the performance element P (corresponding to the server among Fig. 1 104) that operates in server end, and another is the registering unit R (corresponding to the client among Fig. 1 102) that operates in client.Registering unit R major function is the information of collecting a plurality of far calls of client-side program, and through calling the result that performance element P carried out and obtained far call.The major function of performance element P is to receive and resolve the far call information that registering unit R passes over, and carries out the far call of being asked one by one, and returns to R to the result.
Here describe client application and called the process of backstage service through registering unit R.Client application App submits to registering unit R to the far call request that needs are carried out, and R communicates through network and performance element P then, the program of being asked at server calls App by P again, S1, S2 or the like.
Below introduce the concrete design of registering unit R and performance element P respectively.
One, registering unit R mainly provides three functions.
1. registration recalls information
To calling of a teleprogram, can be described as a doublet C=(S, A).Wherein S representes that the program that need call, A represent to call the set of S parameters needed.Registering unit R provides a function register, supplies client application registration recalls information, and it defines as follows:
Token?register(C?c)
It is parameter that the register function is accepted aforementioned doublet C, and returns a token Token, supplies follow-up obtaining to call result's use.
The Register function can be called repeatedly, registers the information of a far call at every turn.
2. submission call request
Registering unit R provides a commit function, submits to the performance element P of server end to the far call information of collecting through the register function, and accepts the return value of P passback.Return value can be preserved, and supplies client application to obtain.
To merge the effect of calling in order reaching, to carry out after commit obviously must call at all register.Therefore but client application might disperse calling of register very much, and its order may adjust, and when calling commit by the client application decision is infeasible sometimes.
In order to solve the problem that commit calls opportunity, can adopt and postpone the strategy call, promptly client application does not need initiatively to call commit, but when it is obtaining first and calls as a result, calls the commit function by accreditation process R.Its concrete call flow is as shown in Figure 4:
Step 402, client application are called getResult (token) and are obtained the result.
Step 404 judges whether it is to call getResult for the first time, if then go to step 406; If not, then go to step 408.
Step 406 is called commit and is preserved return value.
Step 408 is got corresponding return value according to token.
3. obtain and call the result
After calling the commit function as previously mentioned, can get access to the return value of calling from server, this return value is the set of the corresponding return value of a plurality of far calls registered through the register function.Registering unit R provides a getResult function to obtain the return value of each far call.It defines as follows:
Result?getResult(Token?t)
Wherein Token is aforesaid token.
Resultant token can obtain corresponding return value as parameter call getReuslt when calling register.Return type Result is an encapsulation to the far call result.For the programming language that abnormal mechanism is arranged, such as C++ or Java, remote program call may produce unusually, therefore also will be encapsulated in the Result type as a kind of special return value unusually.The definition of describing Result with Java is following:
Client gets access to after the Result, checks at first whether Result.exception exists, if exist then explain that current far call failed, has captured on the backstage unusually, and client application need get into exception handling logic.If do not exist, then directly obtain returnValue, carry out normal logic.
As a kind of prioritization scheme, can be the getResult function definition (is example with the Java language) also:
Object?getResult(Token?t)throws?Throwable
Promptly check by accreditation process R whether far call is successful, client application only need normally obtain the result and handle possibly occur unusual.
Two, performance element P major function is divided into three.
1. parsing recalls information
Performance element P receives the far call information that registering unit R submits to, and promptly a series of doublet C (S, A).Each doublet all corresponding to the call request of a program on the server.Performance element P need resolve these doublet, the definite program that need call, and corresponding parameters.
2. carry out and call
After having resolved recalls information, performance element P will carry out by the program of request call one by one.Because mistake might appear in the program that is performed, and has dished out unusually such as program.Executive program P needs to guarantee: a. can not occur unusual because of one of them program, and the program after stopping to carry out; B. can not occur unusually because of one of them program, and the result of the program of having carried out before having influence on.
3. the result is called in encapsulation
Performance element P need encapsulate each program implementation result.No matter program is normal execution, returned return value, it is unusual still to carry out appearance, and performance element P need be perhaps unusual with the return value of program, records in the aforesaid Result data structure.With the result that calls of a plurality of programs, be packaged into the set of a Result then, return to client.
Fig. 5 is the flowchart of performance element P according to an embodiment of the invention.
As shown in Figure 5, the execution flow process of performance element P is following:
Step 502, take out a pending recalls information C (S, A).
Step 504 is resolved recalls information, confirms program and the parameter that will carry out.
Step 506, executive program.
Step 508, whether determining program is normally carried out, if then go to step 510; If not, then go to step 514.
Step 510, the record return value is to calling the result.
Step 512 is calling outcome record to calling result set.
Step 514, recording exceptional information is to calling the result.
Step 516 judges whether to also have untreated recalls information, if having then go to step 502; If no, then go to step 518.
Step 518 is returned and is called results set to client.
Be the applicating example of the calling device of said distal ends program below.
At present a lot of enterprises adopt some management information systems to realize the operational management of its enterprise.Because various organizational framework of businesses, management mode difference are very big, the management information system of commercialization has generally been considered a lot of condition of different when design, in software, have and designed the parameter that much can adjust, dispose.These management softwares need " enforcement " process after deployment is installed by enterprise.Its main work comprises some the parameter settings of adjustment software, to meet the needs of enterprise.Generally there is a subsystem that is called as " personalization " to let the user can adjust the setting of software in these softwares.
Very important one is exactly in these adjustment, adjusts the interface of software.Simpler comprise the icon on the adjustment interface, some enterprise hopes can show on the software sign of own company, therefore need replace original icon in the product.More complicated comprise some elements on the adjustment software interface, such as the order of adjustment typing project, hide the typing project that some enterprises can not use.These adjustment work can not revised the code of software, but get off as data record, generally are to be kept in the database on backstage.
In addition, enterprise requires to have different controls of authority to using software different operation person.The more operable functions in manager post, the business personnel possibly just can not operate.Management software has " rights management " subsystem to come for different operation person the function that it can use to be set.The authority setting also can have influence on the interface, and menu, button or certain sub-interface for certain operator haves no right to use can not be revealed when this operator uses.
The situation of comprehensive above-mentioned two aspects, as an operator during at use and management software, the client of management software needs two category informations correctly to show to be respectively at the interface at least: interface personalized information and authority information.Mean that also client end interface shows that subsystem needs respectively personalized subsystem and the rights management subsystem communication with the backstage, just need carry out twice far call.When operate in time delay than higher network on the time, far call repeatedly can improve the response time of software significantly, the user can feel that program is slow in reacting.
If the apparatus and method that propose among application the present invention can be merged into twice far call once, thereby the response time of reducing software is to a certain extent improved user's experience.
Fig. 6 is that client represents the flow chart of the process at interface according to an embodiment of the invention.
The process that client after the improvement represents the interface can be divided into following step basically:
Step 602 is called the call request of registering unit R registration to personalization system, and the Token that record returns is t1.
Step 604 is called the call request of registering unit R registration to permission system, and the Token that record returns is t2.
Step 606 is the getResult function of parameter call registering unit R with t1, obtains the customized information at interface.
Step 608 is the getResult function of parameter call registering unit R with t2, obtains current operator's authority information.
Step 610 obtains information according to step 606 and 608 and represents the interface.
The process at client shows interface relates to the showing interface subsystem, registering unit R, performance element P, personalized subsystem, authority subsystem.In above step, the reciprocal process sketch map between the system is as shown in Figure 7.
More than be described with reference to the accompanying drawings technical scheme of the present invention, in sum, realized when the demand of calling changes; Application program can merge its far call as required, and need not write the program that far call merges in addition, only needs to revise the sign that client application generated; And need not to adjust server end; Can increase at an easy rate or far call that deletion need to merge, improve the efficient of far call widely, reduce cost of developing; Client application can merge a plurality of far calls as required, reduces network latency, improves the response speed of software, improves user experience; And can let client realize merging more neatly to a plurality of far calls, development cost is lower.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the calling device of a far-end program is characterized in that, comprising:
The client and server end, wherein,
Said client comprises:
Registering unit is registered the far-end program that a plurality of needs call respectively;
The request generation unit after the far-end program that all need call is accomplished said registration, generates the call request corresponding to all said far-end programs;
Request transmitting unit, the said call request that the described request generation unit is generated is sent to said server end; And
Said server end comprises:
The request receiving element receives the said call request from said client;
Resolution unit is resolved the call request that the described request receiving element receives;
Performance element according to the analysis result of said resolution unit, calls corresponding target program, and obtains the return results corresponding to each said target program;
The result returns the unit, and all said return results that said performance element is obtained are back to said client.
2. the calling device of far-end program according to claim 1 is characterized in that, said client also comprises:
Inquiry unit, whether inquiry has obtained the return results that this calls, if do not exist, then sends to the described request generation unit and generates order.
3. the calling device of far-end program according to claim 1 is characterized in that, said client also comprises:
The sign generation unit is for each said far-end program generates corresponding identification; And
Identification unit according to the said sign that said sign generation unit generates, obtains the return results corresponding to each said far-end program respectively as a result.
4. according to the calling device of each described far-end program in the claim 1 to 3, it is characterized in that said server end also comprises:
Encapsulation unit is packaged into packet with all said return results according to preset form; And
Said result returns the unit said packet is back to said client.
5. the calling device of far-end program according to claim 4 is characterized in that, said server end also comprises:
The debugging unit checks whether said far-end program mistake occurs when carrying out; And
When mistake occurring, after the abnormal results that said encapsulation unit generates correspondence carries out said encapsulation with normal result, return the unit by said result and be back to said client.
6. the call method of a far-end program is characterized in that, comprising:
Step 202, client are registered the far-end program that a plurality of needs call respectively;
Step 204 after the far-end program that all need call is accomplished said registration, generates the call request corresponding to all said far-end programs, and is sent to server end;
Step 206, said server end is resolved said call request, calls corresponding target program, and obtains the return results corresponding to each said target program;
Step 208, said server end is sent to said client with all said return results.
7. the call method of far-end program according to claim 6 is characterized in that, in said step 204, also comprises:
Whether inquiry has obtained the return results that this calls, if do not exist, then generates said call request, and is sent to said server end.
8. the call method of far-end program according to claim 6 is characterized in that, in said step 202, also comprises:
For each said far-end program generates corresponding identification; And
In said step 208, also comprise:
Obtain return results by said client according to said sign corresponding to each said far-end program.
9. according to the call method of each described far-end program in the claim 6 to 8, it is characterized in that, in said step 208, also comprise:
Said server end is back to said client after all said return results are packaged into packet according to preset form.
10. the call method of far-end program according to claim 9 is characterized in that, also comprises:
If said far-end program mistake occurs when carrying out, then generate abnormal results; And
With said abnormal results and after the result carries out said encapsulation normally, be sent to said client.
CN2011104487450A 2011-12-28 2011-12-28 Calling device and calling method for remote programs Pending CN102497453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104487450A CN102497453A (en) 2011-12-28 2011-12-28 Calling device and calling method for remote programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104487450A CN102497453A (en) 2011-12-28 2011-12-28 Calling device and calling method for remote programs

Publications (1)

Publication Number Publication Date
CN102497453A true CN102497453A (en) 2012-06-13

Family

ID=46189238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104487450A Pending CN102497453A (en) 2011-12-28 2011-12-28 Calling device and calling method for remote programs

Country Status (1)

Country Link
CN (1) CN102497453A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593191A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 Method and device for calling application program data
CN103744050A (en) * 2014-01-23 2014-04-23 国家电网公司 Field detection device of intelligent electric energy meter
WO2014114128A1 (en) * 2013-01-24 2014-07-31 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN104142856A (en) * 2013-05-07 2014-11-12 华为技术有限公司 Service program call method, service program call system and intelligent equipment thereof
CN104537284A (en) * 2014-12-19 2015-04-22 葛胜锦 Software protecting system and method based on remote service
CN104978176A (en) * 2014-04-10 2015-10-14 腾讯科技(北京)有限公司 Application program interface calling method and device
CN105550043A (en) * 2015-12-08 2016-05-04 深圳市华讯方舟软件技术有限公司 Data returning method, receiving method, returning apparatus and receiving apparatus
US9632804B2 (en) 2013-01-24 2017-04-25 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN106980545A (en) * 2016-01-15 2017-07-25 阿里巴巴集团控股有限公司 remote invocation method and device
CN107025145A (en) * 2016-11-09 2017-08-08 阿里巴巴集团控股有限公司 Error code analysis method and device
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment
CN110268388A (en) * 2017-01-30 2019-09-20 微软技术许可有限责任公司 Postpone the call request to remote object
CN112083987A (en) * 2014-06-23 2020-12-15 谷歌有限责任公司 Remote invocation of mobile device actions

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070283367A1 (en) * 2006-06-05 2007-12-06 International Business Machines Corporation Method and system for improved computer network efficiency in use of remote procedure call applications
CN101442472A (en) * 2008-12-11 2009-05-27 金蝶软件(中国)有限公司 Method and apparatus for combining and responding service request
CN101764843A (en) * 2009-12-28 2010-06-30 福建星网锐捷网络有限公司 Processing method and system for remote process call, client end and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070283367A1 (en) * 2006-06-05 2007-12-06 International Business Machines Corporation Method and system for improved computer network efficiency in use of remote procedure call applications
CN101442472A (en) * 2008-12-11 2009-05-27 金蝶软件(中国)有限公司 Method and apparatus for combining and responding service request
CN101764843A (en) * 2009-12-28 2010-06-30 福建星网锐捷网络有限公司 Processing method and system for remote process call, client end and server

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014114128A1 (en) * 2013-01-24 2014-07-31 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
US9632804B2 (en) 2013-01-24 2017-04-25 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and communication system for implementing internet application
CN104142856B (en) * 2013-05-07 2018-08-14 华为技术有限公司 Service routine call method, system and its smart machine
CN104142856A (en) * 2013-05-07 2014-11-12 华为技术有限公司 Service program call method, service program call system and intelligent equipment thereof
CN103593191A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 Method and device for calling application program data
CN103744050A (en) * 2014-01-23 2014-04-23 国家电网公司 Field detection device of intelligent electric energy meter
CN104978176A (en) * 2014-04-10 2015-10-14 腾讯科技(北京)有限公司 Application program interface calling method and device
US10853437B2 (en) 2014-04-10 2020-12-01 Tencent Technology (Shenzhen) Company Limited Method and apparatus for invoking application programming interface
CN112083987A (en) * 2014-06-23 2020-12-15 谷歌有限责任公司 Remote invocation of mobile device actions
CN104537284A (en) * 2014-12-19 2015-04-22 葛胜锦 Software protecting system and method based on remote service
CN104537284B (en) * 2014-12-19 2017-05-03 葛胜锦 Software protecting system and method based on remote service
CN105550043A (en) * 2015-12-08 2016-05-04 深圳市华讯方舟软件技术有限公司 Data returning method, receiving method, returning apparatus and receiving apparatus
CN106980545B (en) * 2016-01-15 2021-03-23 创新先进技术有限公司 Remote calling method and device
CN106980545A (en) * 2016-01-15 2017-07-25 阿里巴巴集团控股有限公司 remote invocation method and device
CN107025145A (en) * 2016-11-09 2017-08-08 阿里巴巴集团控股有限公司 Error code analysis method and device
CN108289060B (en) * 2017-01-09 2020-11-06 腾讯科技(深圳)有限公司 Data processing method and device based on RPC service
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
CN110268388A (en) * 2017-01-30 2019-09-20 微软技术许可有限责任公司 Postpone the call request to remote object
CN110268388B (en) * 2017-01-30 2023-06-20 微软技术许可有限责任公司 Deferring call requests to remote objects
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment

Similar Documents

Publication Publication Date Title
CN102497453A (en) Calling device and calling method for remote programs
CN107729139B (en) Method and device for concurrently acquiring resources
CA3000422C (en) Workflow service using state transfer
US6757730B1 (en) Method, apparatus and articles-of-manufacture for network-based distributed computing
US7756944B2 (en) Information providing apparatus, information providing method, information providing program, and recording medium
US20070250365A1 (en) Grid computing systems and methods thereof
JP5893730B2 (en) Cloud security management system
US20190158626A1 (en) Method, apparatus and computer readable storage medium for processing service
WO2013059797A1 (en) Service based information technology platform
US8789151B2 (en) Remote device communication platform
US20230342191A1 (en) Task Scheduling Method and System
US20110083137A1 (en) Application cooperation method, system, computer-readable medium, and information processing apparatus
US20220179711A1 (en) Method For Platform-Based Scheduling Of Job Flow
US10803413B1 (en) Workflow service with translator
US20090300478A1 (en) Image forming apparatus, information processing method and program
TWI224916B (en) A common scheduler web service for distributed network environments
JP5200639B2 (en) Image forming apparatus, information processing method, and program
US20080294594A1 (en) Audit trail management method, system and processing program
US8458716B2 (en) Enterprise resource planning with asynchronous notifications of background processing events
US8353013B2 (en) Authorized application services via an XML message protocol
CN114924783A (en) Interface calling method, device, equipment and storage medium of application program
CN112347191A (en) Method and device for sharing and exchanging data, computer equipment and storage medium
JP2015082183A (en) Document creation system
KR102425978B1 (en) Composite web UI provision system in cloud service platform
CN112016115B (en) Event subscription system based on block chain

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120613