CN102137079A - Method and device for developing service for RPC (Remote Procedure Call) - Google Patents
Method and device for developing service for RPC (Remote Procedure Call) Download PDFInfo
- Publication number
- CN102137079A CN102137079A CN201010204322XA CN201010204322A CN102137079A CN 102137079 A CN102137079 A CN 102137079A CN 201010204322X A CN201010204322X A CN 201010204322XA CN 201010204322 A CN201010204322 A CN 201010204322A CN 102137079 A CN102137079 A CN 102137079A
- Authority
- CN
- China
- Prior art keywords
- configuration
- running environment
- business
- procedure call
- model
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and device for developing a service for RPC (Remote Procedure Call), relating to the technical field of network communication. The embodiment of the invention provides a method for developing the service for the RPC, comprising the following steps of acquiring operation environment configuration and main model configuration required and supported by the service development; configuring a corresponding extended model for a main model according to the operation environment configuration; and generating description files of the service according to the operation environment configuration, the selected main model and the corresponding extended model. By utilizing the embodiment of the invention, the repeated development of the same service logic can be avoided, and the development complexity of the service logic is reduced.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of business development method and device of remote procedure call.
Background technology
At present, the client in the telecommunications distributed platform can be passed through a kind of RPC (Remote ProcedureCall, remote procedure call protocol) far call is carried out in the service that service end provided in the execution environment.Wherein, described remote procedure call RPC generally is made up of following several parts:
(1) interface of service end and client unified Definition remote service; For example: CORBA (CommonObject Request Broker Architecture, Common Object Request Broker Architecture), COM (Component Object Model, The Component Object Model) IDL (Interface Definition Language, IDL), SOAP (Simple ObjectAccess Protocol, based on Simple Object Access Protocol) WSDL (Web Services Description Language, WSDL), EJB (EnterpriseJava Bean, the Java Emterprise JavaBeans, the server-side component model) java of RMI (Remote Method Invocation, RMI);
(2) need to call the client-side program of described remote service in the specific implementation of service end medium-long range service and the client;
(3) stake (Stub) file in service end middle frame (Skeleton) file and the client;
(4) execution environment in service end and the client, and a name service that is provided by described execution environment, its allows client can get access to the agency of this remote service, calls thereby initiate remote service to service end.
Based on the above remote procedure call RPC, because the development environment difference that different vendor provides, it is different with the coded system of the remote service interface of client unified Definition to need to pass through the hand-coding service end, so realize that the mode of service logic is also different; Like this, just need carry out overlapping development, cause the significant wastage of human resources at the coded system of different development environments and remote service interface for the exploitation of same service logic.
Summary of the invention
The embodiment of the invention provides a kind of business development method and device of remote procedure call, need not overlapping development to realize same service logic.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the embodiment of the invention provides a kind of business development method of remote procedure call, comprising:
Obtain the running environment configuration and the master cast configuration of the required support of business development;
According to described running environment configuration, be the corresponding extended model of described master cast configuration;
According to described running environment configuration, selection master cast and corresponding extended model, generate the description document of described business.
On the other hand, the embodiment of the invention provides a kind of business development device of remote procedure call, comprising:
The configuration information acquiring unit is used to obtain the running environment configuration and the master cast configuration of the required support of business development;
The extended model dispensing unit is used for according to described running environment configuration, is the corresponding extended model of described master cast configuration;
File generating unit is used for according to described running environment configuration, selects master cast and corresponding extended model, generates the description document of described business.
The business development method and the device of a kind of remote procedure call that the embodiment of the invention provides are by the running environment configuration and the master cast configuration of obtaining the required support of business development; According to described running environment configuration, be the corresponding extended model of described master cast configuration; According to described running environment configuration, selection master cast and corresponding extended model, generate the description document of described business.Like this, server just can be automatically generates described service logic corresponding service description document according to the configuration of different running environment and master cast configuration, thereby can avoid the overlapping development of same service logic, reduces the exploitation complexity of service logic.
Description of drawings
The business development method flow diagram of a kind of remote procedure call that Fig. 1 provides for the embodiment of the invention;
The business development method specific implementation flow chart of a kind of remote procedure call that Fig. 2 provides for the embodiment of the invention;
The business development apparatus structure schematic diagram of a kind of remote procedure call that Fig. 3 provides for the embodiment of the invention;
The signal flow graph of the business development method of a kind of remote procedure call that Fig. 4 provides for the embodiment of the invention.
Embodiment
The business development method and the device of a kind of remote procedure call that the embodiment of the invention is provided below in conjunction with accompanying drawing are described in detail.
As shown in Figure 1, the business development method of a kind of remote procedure call that provides for the embodiment of the invention, this method comprises:
101: the running environment configuration and the master cast configuration of obtaining the required support of business development;
102:, be the corresponding extended model of described master cast configuration according to described running environment configuration;
103:, generate the description document of described business according to described running environment configuration, selection master cast and corresponding extended model.
Based on above embodiment, the running environment of establishing the required support of described business development comprises: CORBA running environment, SOAP running environment, RMI (Remote Method Invocation, RMI) running environment; Comprise with the corresponding extended model of running environment of the required support of described business development: SOAP extended model, CORBA extended model, RMI extended model; As shown in Figure 2, its concrete implementation procedure is as follows:
201, the running environment that described business development is set is MDV (model-driven development scheme).
202, the running environment of extracting described business development disposes as shown in Figure 4, and the running environment of described business development includes but not limited to: CORBA running environment, SOAP running environment, RMI running environment; The main flow interface description language that described master cast is based on described running environment (for example: the pairing main flow interface description language of CORBA running environment IDL; The pairing main flow interface description language of SOAP running environment WSDL; The pairing main flow interface description language of RMI running environment JAVA) characteristics extract the constructed model of universal performance of described main flow interface description language.The information that on behalf of running environment, the dotted arrow among Fig. 4 generate automatically; Solid arrow is represented message flow.
203, obtain the running environment configuration and the master cast configuration of the required support of business development.
204,, be the corresponding extended model of described master cast configuration according to described running environment configuration; Concrete extended model configuration is finished according to described running environment, as shown in Figure 4, the configuration of described running environment comprises: CORBA running environment, SOAP running environment, RMI running environment, so extended model can corresponding being configured to: CORBA extended model, SOAP extended model, RMI extended model.
205,, generate the description document of described business according to described running environment configuration, selection master cast and corresponding extended model.Wherein, the description document of described business comprises: IDL description document, or WSDL description document, or JAVA description document.This professional description document is according to the difference of running environment and difference.
206, according to the description document and the configuration of described running environment of described business, select to dispose corresponding configuration converter with described running environment; The specific implementation of this step comprises: as shown in Figure 4, if select the running environment of CORBA, then select corresponding CORBA configuration converter; If select the running environment of SOAP, then select corresponding SOAP configuration converter; If select the running environment of RMI, then select corresponding RMI configuration converter.
207, the description document of described business is generated the document framework and the stake file of correspondence by the configuration converter of described selection; Wherein, described framework (Skeleton) file is used for service end, and described stake (Stub) file is used for client.For example: the description document of described business is that described running environment is configured to CORBA for the IDL description document, and a then described document framework and a stake file that generates correspondence is the C++ code file.
Need to prove that a described document framework and a stake file are the C++ code file, or JAVA code file is determined by the running environment of described business.
208, document framework and the stake file with described generation is encapsulated as model.Concretely, the document framework and the stake file of described generation can be encapsulated as the figure meta-model, thereby make the user of client in the process of carrying out remote procedure call, need not to carry out service call according to the corresponding interface language of each different running environment, only need to select calling service figure meta-model to get final product, thereby the realization remote procedure call can support multiple running environment, still concrete business development and the pairing main flow interface description language of described running environment to have nothing to do.
As shown in Figure 3, the business development device of a kind of remote procedure call that provides for the embodiment of the invention, this device comprises:
Configuration information acquiring unit 301 is used to obtain the running environment configuration and the master cast configuration of the required support of business development;
Extended model dispensing unit 302 is used for according to described running environment configuration, is the corresponding extended model of described master cast configuration;
It should be noted that this device, also comprise:
The converter selected cell is used for description document and the configuration of described running environment according to described business, selects to dispose corresponding configuration converter with described running environment;
The service scripts generation unit is used for the description document of the described business configuration converter by described selection is generated a corresponding document framework and a stake file;
The model encapsulation unit is used for the document framework and the stake file of described generation are encapsulated as model.
It is also to be noted that this device also comprises:
Development scheme is provided with the unit, and the running environment that is used to be provided with described business development is the model-driven development scheme.
It is also to be noted that this device also comprises:
Information extraction unit is used to extract the running environment configuration of described business development.
The business development method and the device of a kind of remote procedure call that the embodiment of the invention provides are by the running environment configuration and the master cast configuration of obtaining the required support of business development; According to described running environment configuration, be the corresponding extended model of described master cast configuration; According to described running environment configuration, selection master cast and corresponding extended model, generate the description document of described business.Like this, server just can be automatically generates described service logic corresponding service description document according to the configuration of different running environment and master cast configuration, thereby can avoid the overlapping development of same service logic, reduces the exploitation complexity of service logic.Also because the business development method and the device of the remote procedure call that the embodiment of the invention provides, in the service operation environment, adopt MDV (model-driven exploitation) mode, be that the business development environment provides pel mode business logic development for the user, professional code according to running environment configuration and model generation concrete syntax, finish business development, so the user of client need not to carry out service call according to the corresponding interface language of each different running environment in the process of carrying out remote procedure call, only need to select calling service figure meta-model to get final product, thereby the realization remote procedure call can be supported multi-protocols, multiple running environment; And the pairing main flow interface description language of concrete business development and described running environment is irrelevant, has significantly reduced user's development, has reduced human cost.
Through the above description of the embodiments, one of ordinary skill in the art will appreciate that: realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (8)
1. the business development method of a remote procedure call is characterized in that, comprising:
Obtain the running environment configuration and the master cast configuration of the required support of business development;
According to described running environment configuration, be the corresponding extended model of described master cast configuration;
According to described running environment configuration, selection master cast and corresponding extended model, generate the description document of described business.
2. the business development method of remote procedure call according to claim 1 is characterized in that, this method also comprises:
According to the description document and the configuration of described running environment of described business, select to dispose corresponding configuration converter with described running environment;
The description document of described business is generated the document framework and the stake file of correspondence by the configuration converter of described selection;
The document framework and the stake file of described generation are encapsulated as model.
3. the business development method of remote procedure call according to claim 2 is characterized in that, this method also comprises:
The running environment that described business development is set is the model-driven development scheme.
4. the business development method of remote procedure call according to claim 3 is characterized in that, this method also comprises:
Extract the running environment configuration of described business development.
5. the business development device of a remote procedure call is characterized in that, comprising:
The configuration information acquiring unit is used to obtain the running environment configuration and the master cast configuration of the required support of business development;
The extended model dispensing unit is used for according to described running environment configuration, is the corresponding extended model of described master cast configuration;
File generating unit is used for according to described running environment configuration, selects master cast and corresponding extended model, generates the description document of described business.
6. the business development device of remote procedure call according to claim 5 is characterized in that, this device also comprises:
The converter selected cell is used for description document and the configuration of described running environment according to described business, selects to dispose corresponding configuration converter with described running environment;
The service scripts generation unit is used for the description document of the described business configuration converter by described selection is generated a corresponding document framework and a stake file;
The model encapsulation unit is used for the document framework and the stake file of described generation are encapsulated as model.
7. the business development device of remote procedure call according to claim 6 is characterized in that, this device also comprises:
Development scheme is provided with the unit, and the running environment that is used to be provided with described business development is the model-driven development scheme.
8. the business development device of remote procedure call according to claim 7 is characterized in that, this device also comprises:
Information extraction unit is used to extract the running environment configuration of described business development.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010204322.XA CN102137079B (en) | 2010-06-21 | 2010-06-21 | Method and device for developing service for RPC (Remote Procedure Call) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010204322.XA CN102137079B (en) | 2010-06-21 | 2010-06-21 | Method and device for developing service for RPC (Remote Procedure Call) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102137079A true CN102137079A (en) | 2011-07-27 |
CN102137079B CN102137079B (en) | 2014-04-02 |
Family
ID=44296737
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010204322.XA Expired - Fee Related CN102137079B (en) | 2010-06-21 | 2010-06-21 | Method and device for developing service for RPC (Remote Procedure Call) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102137079B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871289A (en) * | 2019-02-01 | 2019-06-11 | 北京顺丰同城科技有限公司 | A kind of remote procedure call service creation method and device |
CN112540858A (en) * | 2019-09-23 | 2021-03-23 | 成都华为技术有限公司 | Task processing method, server, client and system |
CN117573395A (en) * | 2024-01-13 | 2024-02-20 | 杭州杰竞科技有限公司 | Remote scheduling method and system between micro services |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120691A1 (en) * | 2001-02-23 | 2002-08-29 | Basavaraj Patil | Service control device and method |
CN101051267A (en) * | 2006-05-26 | 2007-10-10 | 华为技术有限公司 | Extendable file model and method for managing file model |
CN101158901A (en) * | 2007-11-27 | 2008-04-09 | 北大方正集团有限公司 | Method for bridging corporation level and common level JAVABEAN |
-
2010
- 2010-06-21 CN CN201010204322.XA patent/CN102137079B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020120691A1 (en) * | 2001-02-23 | 2002-08-29 | Basavaraj Patil | Service control device and method |
CN101051267A (en) * | 2006-05-26 | 2007-10-10 | 华为技术有限公司 | Extendable file model and method for managing file model |
CN101158901A (en) * | 2007-11-27 | 2008-04-09 | 北大方正集团有限公司 | Method for bridging corporation level and common level JAVABEAN |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871289A (en) * | 2019-02-01 | 2019-06-11 | 北京顺丰同城科技有限公司 | A kind of remote procedure call service creation method and device |
CN112540858A (en) * | 2019-09-23 | 2021-03-23 | 成都华为技术有限公司 | Task processing method, server, client and system |
CN112540858B (en) * | 2019-09-23 | 2023-10-27 | 华为云计算技术有限公司 | Task processing method, server, client and system |
CN117573395A (en) * | 2024-01-13 | 2024-02-20 | 杭州杰竞科技有限公司 | Remote scheduling method and system between micro services |
CN117573395B (en) * | 2024-01-13 | 2024-04-02 | 杭州杰竞科技有限公司 | Remote scheduling method and system between micro services |
Also Published As
Publication number | Publication date |
---|---|
CN102137079B (en) | 2014-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109246251B (en) | Micro-service calling method, device, system, equipment and readable storage medium | |
CN114375069B (en) | Communication method and network equipment | |
JP4909591B2 (en) | System and method for creating and communicating with component-based wireless applications | |
CN102591724B (en) | Method and device for information interaction | |
CN113268319A (en) | Business process customization and distributed process scheduling method based on micro-service architecture | |
JP2002215486A (en) | Communication system for controller based on wsdl | |
US20110238498A1 (en) | Service stage for subscription management | |
JP2010511214A (en) | Aggregation of portlets used in the client environment without depending on server resources | |
CA2511916A1 (en) | System and method of building wireless component applications | |
US8387039B2 (en) | System and method for customized provisioning of application content | |
CN101021786A (en) | Method for calling universal structure | |
CN113296742A (en) | APP data processing method and device and mobile terminal | |
KR100670605B1 (en) | System and method for servicing multimedia contents and recording medium thereof | |
CN102801544B (en) | The method and system that unified terminal is managed under a kind of Internet of Things framework | |
CN102137079B (en) | Method and device for developing service for RPC (Remote Procedure Call) | |
CN111414261A (en) | Cross-network calling method and device of distributed system and related components | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
KR100833494B1 (en) | Apparatus for lightweighting application through duplicating management of application in environment of OSGi middleware for embedded terminal and method thereof | |
CN101964742A (en) | Method, system and device for using network open ability | |
CN109005163B (en) | HTTP dynamic request service calling method | |
CN115567604A (en) | Service calling method based on micro-service system and server | |
CN102438021B (en) | Processing method and device for telecommunications service development | |
KR100738041B1 (en) | Method for transmitting message in open mobile business supporting system | |
CN102821116B (en) | A kind of online service provides method, device and information system | |
CN105677312A (en) | Business presenting method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140402 Termination date: 20160621 |