CN102137135A - Method, device and system for realizing service combination - Google Patents

Method, device and system for realizing service combination Download PDF

Info

Publication number
CN102137135A
CN102137135A CN201010251891XA CN201010251891A CN102137135A CN 102137135 A CN102137135 A CN 102137135A CN 201010251891X A CN201010251891X A CN 201010251891XA CN 201010251891 A CN201010251891 A CN 201010251891A CN 102137135 A CN102137135 A CN 102137135A
Authority
CN
China
Prior art keywords
interface
wsrp
parameter
message
response message
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
Application number
CN201010251891XA
Other languages
Chinese (zh)
Other versions
CN102137135B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010251891.XA priority Critical patent/CN102137135B/en
Publication of CN102137135A publication Critical patent/CN102137135A/en
Application granted granted Critical
Publication of CN102137135B publication Critical patent/CN102137135B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, device and system for realizing service combination, belonging to the technical field of an information technology (IT), and aiming at reusing user interfaces and business logics. The method comprises the following steps: receiving a service request message from a client-side; using interface generating parameters in a combined service to call an interface service of web service for remote portlets (WSRP) in the combined service so as to obtain an interface calling response message in accordance with the service request message; and generating a client interface in accordance with the interface calling response message, and sending the client interface to the client-side. The method, device and system provided by the invention can be mainly applied in a service combination technology.

Description

Realize method, the Apparatus and system of combinations of services
Technical field
The present invention relates to the IT technical field, relate in particular to a kind of method, Apparatus and system of realizing combinations of services.
Background technology
When utilizing the function of business realizing system, single business often can't be finished whole demands, must rely on one group of business cooperation each other just can achieve the goal.One group of above-mentioned professional technology that forms new business is called combinations of services.Combinations of services important method flexible as realizing, fast integration is for application integration provides effective support.
Combinations of services is mainly concerned with user interface, two aspects of service logic.Wherein the integrated relationship between user oriented, visual, the different business interface has been described in UI (User Interface, user interface) combination; The control dependence between each business has been described in the service logic combination.Along with application and development more and more trends towards adopting the mechanism of reusing, also more and more stronger to the demand of the mechanism of reusing of user interface.
For addressing the above problem, WSRP (Web Service for Remote Portlets, remote portal Web service) technology has been proposed in the prior art.In the WSRP model, the client that an application program (Consumer) is served as Another application program (Producer), wherein, Producer is responsible for depositing user interface, and Consumer utilizes the WSRP agreement to collect user interface and and user interface interaction.In the WSRP agreement, also defined one group of Web services (Web service) that Producer realizes.Consumer can send information to these Web services, to check user interface and and user interface interaction.Wherein, in WSRP, defined Web Service interface, can be used in combination with BPEL (Web Service Business Process Execution Language, BPEL).
Summary of the invention
The embodiment of the invention provides a kind of method, Apparatus and system of realizing combinations of services, to realize reusing of user interface and service logic.
The embodiment of the invention adopts following technical scheme:
A kind of method that realizes combinations of services comprises:
Receive the business request information of client;
According to described business request information, utilize the interface generation parameter in the composite service that the remote portal Web service WSRP interface business in the described composite service is called, obtain the interface and call response message;
Call response message according to described interface and generate client end interface, and described client end interface is sent to described client.
A kind of device of realizing combinations of services comprises:
The message sink unit is used to receive the business request information of client;
The interface call unit is used for according to described business request information, utilizes the interface generation parameter in the composite service that the WSRP interface business in the described composite service is called, and obtains the interface and calls response message;
The interface transmitting element is used for calling response message according to described interface and generates client end interface, and described client end interface is sent to described client.
A kind of system that realizes combinations of services comprises:
Combine engine comprises the device of realizing combinations of services;
The WSRP server, the running environment of WSRP business is called for described combine engine, and calls response message to described combine engine transmission interface, comprises interface information in the dispatching response message of described interface;
The Web service server, the running environment of Web service is called for described combine engine.
Method, the Apparatus and system of the realization combinations of services of the embodiment of the invention, making by the interface generation parameter of expanding can be seamless integrated between WSRP and BPEL, thereby BPEL is combined user interface and service logic simultaneously, thereby realizes reusing of user interface and service logic.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done an introduction simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart that the embodiment of the invention one realizes the method for combinations of services;
Fig. 2 is the flow chart that the embodiment of the invention two realizes the method for combinations of services;
Fig. 3 is the flow chart that the embodiment of the invention three realizes the method for combinations of services;
Fig. 4 is the schematic representation of apparatus that the embodiment of the invention four realizes combinations of services;
Fig. 5 is the structure chart that the embodiment of the invention four realizes the device of combinations of services;
Fig. 6 is the schematic diagram of the device median surface requesting processing of the embodiment of the invention five;
Fig. 7 calls the schematic diagram of processing unit for the device median surface of the embodiment of the invention five;
Fig. 8 calls the another schematic diagram of processing unit for the device median surface of the embodiment of the invention five;
Fig. 9 calls the another schematic diagram of processing unit for the device median surface of the embodiment of the invention five;
Figure 10 is the schematic diagram of the device median surface transmitting element of the embodiment of the invention five;
Figure 11 is the schematic diagram that the embodiment of the invention six realizes the system of combinations of services;
Figure 12 is system's schematic diagram in concrete application of the embodiment of the invention six.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
In the prior art, the definition mode to the relevant schema information of business in WSRP and BPEL is different.Wherein, in WSRP, just utilize wsdl (Web Services Description Language, the web service description language (sdl)) defines general schema information, can not embody the characteristic of specific transactions, thereby in specific service logic, can't directly use this information; In BPEL, the schema information of definition can directly embody the characteristic of specific transactions.Because the definition mode to the relevant schema of business in WSRP and BPEL is different, can't realize the seamless integrated of WSRP and BPEL, this just makes can't realize reusing of user interface and service logic.
Therefore, for realizing reusing of user interface and service logic, the embodiment of the invention one provides a kind of method that realizes combinations of services.As shown in Figure 1, the method for the embodiment of the invention one comprises:
Step 11, combine engine receive the business request information of client.
In this step, client is by URL (Uniform Resource Locator, URL(uniform resource locator)) visit composite service, and this URL is the address of the composite service that generates in professional loading procedure.In described business request information, can also include conversation message, service request parameter etc.
Need to prove, the embodiment of the invention mainly is HTTP (the Hyper Text Transfer Protocol that handles from client, HTML (Hypertext Markup Language)) format messages, but not the message of SOAP (Simple Object Access Protocol, Simple Object Access Protocol) form.The process of the message of treatment S OAP form is with of the prior art identical.
Step 12, described combine engine utilize the interface generation parameter in the composite service that the WSRP interface business in the composite service is called according to described business request information, obtain the interface and call response message.
Lack professional specific description because the wsdl of present WSRP describes, be not enough to support the combination of user interface and service logic, therefore, to the business description information expansion of WSRP, increase the interface and generate parametric description in embodiments of the present invention.Described interface generates the parameter that parameter is meant need be provided when generating the interface; This parameter can be presented to client with the interface combinations that WSRP provides together.
In addition, portability interface required parameter in business request information, described interface required parameter is meant the parameter that client can be imported in the interface; This parameter sends to combine engine by client.
In this embodiment, for convenience of description, also proposed the notion of interface call parameters, it can comprise: the daughter element of movable input variable is called at the interface, the input variable that perhaps comprises the interface activity of calling comprises that perhaps the interface of the interface activity of calling generates parametric variable.Under different situations, this step can realize by following several modes.
Wherein the process of mode one is:
Step 121, the input variable assignment of WSRP given call movable input variable, and described interface is generated parameter convert the WSRP form to, and the interface after the format conversion is generated the parameter assignment is called the input variable (input) of activity (invoke activity) to the interface daughter element.Corresponding schema can be expressed as following form:
<complexType?name=″NamedString″>
<sequence>
<element?name=″value″type=″xsd:string″minOccurs=″0″/>
</sequence>
<attribute?name=″name″type=″xsd:string″use=″required″/>
</complexType>
In the process of assignment, the interface after the format conversion can be generated the daughter element that the parameter assignment is given the input variable of invoke activity, for example formParameters element.If this WSRP corresponding page is the homepage of composite service or when not needing to receive the user and importing, then this invoke unbounded is looked unfamiliar into parametric variable, does not then need assignment.
At this, Schema (pattern) is simply introduced.Schema mainly is a kind of language that is used to describe with the logical construction of standard XML document, and the effect of its maximum is exactly the correctness of verifying XML file logical structure.
Step 122, generate the interface message call, in the message call of described interface, comprise the address information of specifying WSRP interface business, and described message is sent to the WSRP server according to described input variable.
At this, mainly be the soap message that calls according to the input message variable generation interface of assembling.
Step 123, reception are called response message by the interface that the WSRP server sends, call at described interface and to comprise corresponding interface information in the response message, wherein said interface information is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
The process of mode two is:
Step 1211, described interface is generated parameter convert the WSRP form to, and the interface after the format conversion is generated the parameter assignment call movable input variable to the interface.
Step 1221, when determining that described interface calls movablely during for the calling of WSRP type, generate interface message call framework according to the input message element of described WSRP.
Step 1231, the xml fragment that insertion generates according to the described input variable of calling movable correspondence in the message call framework of described interface, generation interface message call.
Step 1241, reception are called response message by the interface that the WSRP server sends, call at described interface and to comprise corresponding interface information in the response message, wherein said interface information is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
The process of mode three is:
Step 1212, the input message element that the interface service is corresponding call movable input variable as the interface, and described interface is generated parameter convert the WSRP form to, and the interface after the format conversion is generated the parameter assignment call movable interface to the interface and generate parametric variable.
Step 1222, generate parameter and generate the interface message call, in the message call of described interface, comprise the address information of specifying WSRP interface business, and described message is sent to the WSRP server according to described movable input variable and the interface of calling
Step 1232, reception are called response message by the interface that the WSRP server sends, call at described interface and to comprise corresponding interface information in the response message, wherein said interface information is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
Step 13, described combine engine are called response message according to described interface and are generated client end interface, and described client end interface is sent to described client.This step can comprise following process:
Step 131, carry out answer activity (reply activity), and call response message according to described interface and generate service response message.
At this, can at first extract the movable pairing interface information of reply, also promptly extract described interface and call information such as mimeType, markupString in the response message, wherein mimeType is as the HTTP head of described service response message, and markupString is as the HTTP body of described service response message.
Step 132, described client end interface is sent to client by described service response message.
In addition, before described step 132, also can be included in the step of inserting the pairing session information of described composite service in the described service response message, make the later service request of client can both carry this conversation message; And the successor operation address in the described service response message replaced with the step of the address of combine engine, thereby make the subsequent requests of client all handle by described combine engine.
By above description as can be seen, the method of the realization combinations of services of the embodiment of the invention one, making by the interface generation parameter of expanding can be seamless integrated between WSRP and BPEL, thereby BPEL simultaneously combined user interface and service logic, thereby realize reusing of user interface and service logic.
On the basis of embodiment one, the method for the embodiment of the invention two realization combinations of services can comprise as shown in Figure 2:
Step 20, WSRP business have the composite service of user interface then to operation list issuing service descriptor according to described business description information creating.Detailed process is as follows:
The WSRP business wherein the universal description that defines, can comprise that also the interface at this specific transactions interface generates parameter, interface required parameter to operation list issuing service descriptor in the WSRP standard.In WSDL describes, in the operation of correspondence describes, except that input message, output message element, also increase UIGenerate message, UIRequest message element.These two element particular contents and WSRP business are closely related, and different WS RP business has different the description.When creating the composite service of zone boundary face, introduce professional WSDL from operation list, comprising the WSDL of web service and WSRP.
According to different situations, in program, can introduce different processing modules.
For example, when need receiving from the message of client and this message, generate receive activity (receive activity) from the WSRP interface, and with the interface required parameter of this WSRP correspondence as the movable corresponding variable of this receive.
For example, in the time of need obtaining the WSRP interface to the user, generate the invoke activity, and the interface of this WSRP correspondence is generated parameter generate variable as the movable corresponding interface of this invoke, with the input message variable of WSRP correspondence as the movable corresponding input variable of this invoke; Perhaps with the input message variable of WSRP correspondence as the movable corresponding input variable of this invoke, the interface of WSRP correspondence is generated the daughter element of parameter as the movable corresponding input variable of this invoke; Perhaps the interface with the WSRP correspondence generates parameter as the movable corresponding input variable of this invoke.
For example, when needing program WSRP interface to give the user, generate the reply activity, and the soap message that returns will call WSRP the time is as the movable corresponding variable of this reply.
At last, the business that loads establishment is to combine engine, and the address of generation composite service, calls for service requester.The address of wherein said composite service both can generate in creation environment, also can generate in combine engine.
Step 21, referring to the description of step 11.Wherein, in described business request information, carry the interface required parameter.
Step 22, described combine engine are given the BPEL BPEL variable of the reception activity that is used to receive described business request information in the composite service with described interface required parameter assignment, to accept the request from user interface.
In this step, can comprise following process:
Step 221, determine whether that according to described business request information needs create the composite service example again.
Concrete determination methods is: when determine in described business request information, to include described session information, when in combine engine, having found corresponding composite service example, determining does not need to create again the composite service example, obtains the interface required parameter in the described business request information simultaneously.Execution in step 222 then.
And when determining in described business request information, not comprise described session information or determining in described business request information, to include session information but when in combine engine, not finding corresponding composite service example, determine to create the composite service example again.Again create composite service this moment, flow process finishes.
Step 222, judge whether described interface required parameter is XML (Extensible Markup Language, extend markup language) form.When described interface required parameter is the XML form, utilize the schema of the interface required parameter correspondence of movable pairing WSRP described in the described composite service example to verify whether described interface required parameter is legal.If described interface required parameter is not the XML form, also need described interface required parameter is converted to the XML form, and then utilize the schema of the interface required parameter correspondence of movable pairing WSRP described in the described composite service example to verify whether described interface required parameter is legal.
At the form of checking described interface required parameter when whether being legal, at first to obtain the schema information of the WSRP interface required parameter of the movable correspondence of this receive by the composite service of creating, utilize this described interface of schema Information Authentication required parameter whether legal then.
When if described interface required parameter is illegal, flow process finishes.When described interface required parameter is legal, execution in step 223.
Step 223, described interface required parameter assignment given the BPEL variable of described receive activity.
The process of step 23-24 is referring to the process prescription of above-mentioned steps 12-13.
The method of the realization combinations of services by the embodiment of the invention two, interface by expansion generates parameter, the interface required parameter makes can be seamless integrated between WSRP and BPEL, thereby BPEL simultaneously combined user interface and service logic, thereby realize reusing of user interface and service logic.
Describe the method for the realization combinations of services of the embodiment of the invention in detail below in conjunction with embodiment three.
In this embodiment three, suppose to have the composite service of a virtual tourism business, this embodiment only analyzes its login part.Mainly comprise two WSRP interfaces in this login part, one is login interface (homepage), and another is the interface of login successfully afterwards.In addition, also comprise a Web Serivce (Web service), be used to provide user profile (user profile), user profile is carried out authentication, and user's current urban information is provided.
Wherein, do not need the interface to generate parameter in the WSRP login interface, but need the interface required parameter.Its median surface required parameter has encapsulated user's login user, login password information.In the operation of this WSRP, increase UIRequest message.For example,
<wsdl:operation?name=″getMarkup″>
<wsdl:input?message=″intf:getMarkup″name=″getMarkup″/>
<wsdl:output message=″intf:getMarkupResponse″
name=″getMarkupResponse″/>
<ext:UIRequest?message=″intf:loginInfo″name=″loginInfo″/>
</wsdl:operation>
WSRP logins and puts aside the interface required parameter in the successful interface, and its median surface generates the current urban information that parameter has mainly encapsulated the user.In the operation of this WSRP, increase UIGenerate message.
For example:
<wsdl:operation?name=″performBlockingInteraction″>
<wsdl:input message=″intf:performBlockingInteraction″
name=″performBlockingInteraction″/>
<wsdl:output message=″intf:performBlockingInteractionResponse″
name=″performBlocking?InteractionResponse″/>
<ext:UIRequest message=″intf:other″name=″other″/>
<ext:UIGenerate message=″intf:cityInfo″name=″cityInfo″/>
</wsdl:operation>
For this composite service, the combinational logic main contents are as follows:
<bpws:receive?createInstance=″yes″name=″initiate″operation=″initiate″partnerLink=″eTourPL″portType=″ns1:eTourPT″variable=″initiateIn″/>
Wherein, this receive activity mainly is based on the HTTP request that the user receives, creates a composite service example.
<bpws:invoke?inputVariable=″WSRPHomepageInput″name=″INV-HomepageWSRP″operation=″getMarkup″UIGenerate=″″outputVariable=″WSRPHomepageOutput″partnerLink=″WSRPHomepagePL″portType=″ns2:WSRPHomepagePT″/>
Wherein, this invoke activity mainly is to call homepage WSRP, obtains the homepage of this composite service, and wherein the UIGenerate parameter is empty.
<bpws:reply?name=″RPL-initiate″operation=″initiate″partnerLink=″eTourPL″portType=″ns1:eTourPT″variable=″WSRPHomepageOutput″>
Wherein, this reply activity mainly is that the WSRPHomepageOutput variable is changed into HTTP message, and sends to client.
<bpws:receive?name=″RCV-Login″operation=″Login″partnerLink=″eTourPL″portType=″ns1:eTourPT″variable=″UIRequestVarLoginInfo″/>
Wherein, this receive activity mainly is the logging request that receives from client, and wherein UIRequestVarLoginInfo is the interface required parameter that homepage WSRP provides.
<bpws:invoke?inputVariable=″UIRequestVarLoginInfo″name=″INV-authenticate″operation=″authenticate″outputVariable=″citiInfo″partnerLink=″authenticatePL″portType=″ns4:authenticatePT″/>
Wherein, this invoke activity is mainly called the authentication business user is authenticated, and returns the user and give tacit consent to urban information.
<bpws:invoke?inputVariable=″WSRPLoginSuccessInput″UIGenerate=″citiInfo″name=″INV-LoginSuccessWSRP″operation=″performBlockingInteraction″outputVariable=″WSRPLoginSuccessOutput″partnerLink=″WSRPLoginSuccessPL″portType=″ns3:WSRPLoginSuccessPT″/>
Wherein, this invoke activity mainly will be logined the interface generation parameter input message parameter combinations formation WSRP recalls information corresponding with WSRP of successful interface WSRP.
<bpws:reply?name=″RPL-Login″operation=″Login″partnerLink=″eTourPL″portType=″ns1:eTourPT″variable=″WSRPLoginSuccessOutput″>
Wherein, this reply activity mainly is that the WSRPLoginSuccessOutput variable is changed into HTTP message, and sends to client.
As shown in Figure 3, the method for the realization combinations of services of the embodiment of the invention three can comprise following process:
Step 31, client are by HTTP message http://ip:port/eTour visit homepage.
Step 32, combine engine are checked in the described HTTP message and are not carried session information, create composite service, and generate the session information of this composite service correspondence.If carry conversation message, and create composite service, then need not to create again composite service.
Step 33, combine engine are carried out the invoke activity of homepage WSRP, call homepage (being login interface) WSRP.Because it is empty that the interface generates parameter UIGenerate, therefore direct input message element according to the WSRP correspondence generates the SOAP request.
Step 34, homepage WSRP extract corresponding interface after receiving described SOAP request.Because the interface required parameter is empty, so do not need the interface reorganization.
Step 35, described homepage WSRP are included in interface information in the soap message and return.
Step 36, combine engine are carried out the reply activity, extract mimeType in the described soap message as the http head, extract markupString as the http body, generate HTTP message.
Owing to carry follow-up register in the interface,, make follow-up login through combine engine with the address that the address is made as combine engine of submitting of register.Simultaneously in HTTP message, insert session information, form http response message.
Step 37, combine engine return to client by described http response message with login interface.
Step 38, client are inputed user name, password and are submitted.
Step 39, client are asked to combine engine according to the address transmission HTTP that submits after replacing.Does this HTTP ask similar http://ip:port/eTour/login? user=admin﹠amp; Password=admin.Wherein in this request, also comprised session information mutual in the step 36.
Step 310, combine engine are carried out the receive activity, extract the session information of HTTP request, find corresponding composite service according to session information.Convert this HTTP request to the xml form simultaneously, as follows.
<login><user>admin</user><password>admin</password></login>
While is verified by the BPEL variable of back assignment to the receive correspondence according to the HTTP request message that the schema of the interface required parameter of the current needs processing of composite service verifies this xml form.
Step 311, combine engine are carried out web service and are called activity (invoke), and user profile is verified.
After step 312, checking are passed through, return user's acquiescence urban information, for example<city〉shenzhen</city 〉.
Step 313, combine engine are carried out WSRP invoke activity, the interface is generated parameter (promptly giving tacit consent to the city variable) convert the WSRP form to, and be as follows:
<formParameters?name=″city″><value>shenzhen</value></formParameters>。Simultaneously the input element according to activity generates interface message call framework, and the interface behind the format transformation is generated parameter is inserted in the interactionParams element in the message framework, and generates logining the recalls information of successful WSRP.
Step 314, WSRP server extract corresponding interface according to recalls information, and the interface of extracting simultaneously in this recalls information generates parameter information, is reassembled into new interface, sends soap message.
Step 315, WSRP server return the successful interface of login, and the current city of explicit user.
Step 316, combine engine are carried out the reply activity, and the mimeType in the extraction soap message as the http body, generates HTTP message as http head, extraction markupString.If carry follow-up operation in the interface, be made as the address of combine engine with submitting the address, make subsequent message through combine engine.Simultaneously in HTTP message, insert session information, form http response message.
Step 317, combine engine are returned the successful interface of login and are given client.
The method of the realization combinations of services by the embodiment of the invention three, interface by expansion generates parameter, the interface required parameter makes can be seamless integrated between WSRP and BPEL, thereby BPEL simultaneously combined user interface and service logic, thereby realize reusing of user interface and service logic.
As shown in Figure 4, the embodiment of the invention four also provides a kind of device of realizing combinations of services, comprising:
Message sink unit 41 is used to receive the business request information of client; Interface call unit 42 is used for according to described business request information, utilizes the interface generation parameter in the composite service that the WSRP interface business in the described composite service is called, and obtains the interface and calls response message; Interface transmitting element 43 is used for calling response message according to described interface and generates client end interface, and described client end interface is sent to described client.
That describes among the implication of described business request information and the method embodiment in this embodiment, is identical.
Wherein, in described business request information, go back portability interface required parameter.As shown in Figure 5, described device also can comprise: interface requesting processing 44 is used for described interface required parameter assignment is used to receive the BPEL BPEL variable of the reception activity of described HTTP message to composite service.
As shown in Figure 6, described interface requesting processing 44 comprises: parameter acquisition module 441, be used to resolve described business request information, and obtain described interface required parameter; Assignment module 442 is used for the BPEL variable of described interface required parameter assignment to described reception activity.Wherein, as shown in Figure 6, described assignment module 442 can comprise: judge submodule 4421, be used to judge whether described interface required parameter is the expandable mark language XML form; Checking submodule 4422, be used for when definite described interface required parameter is the expandable mark language XML form, utilize the schema of the interface required parameter correspondence of movable pairing WSRP described in the described composite service example to verify whether described interface required parameter is legal; Parameter processing sub 4423 is used for when described interface required parameter is legal, described interface required parameter assignment is given the BPEL variable of described activity.In order to improve assignment efficient, described assignment module 442 also can comprise: parameter conversion submodule 4424 is used for when definite described interface required parameter is not the expandable mark language XML form described interface required parameter being converted to the XML form.
The course of work of described interface requesting processing can be with reference to the process of the step 12 of embodiment one.
Wherein, as shown in Figure 7, described interface call unit 42 can comprise: the first parameter assignment module 421, be used for that described interface is generated parameter and convert the WSRP form to, and with the WSRP form the interface generate the parameter assignment is called movable input variable to the interface daughter element; First message generating module 422 is used for generating the interface message call according to described input variable, comprises the address information of specifying professional interface, WSRP interface in the message call of described interface; The first message sink module 423, be used to receive the interface that sends by the WSRP server and call response message, call the information that comprises corresponding interface in the response message at described interface, the information at wherein said interface is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
Perhaps, as shown in Figure 8, described interface call unit 42 also can comprise: the second parameter assignment module 4211, be used for that described interface is generated parameter and convert the WSRP form to, and with the WSRP form the interface generate the parameter assignment and call movable input variable to the interface; Second message generating module 4221, be used for when determining that the activity of calling of described interface is calling of WSRP type, generate interface message call framework according to described WSRP input message element, and in the message call framework of described interface, insert the xml fragment that generates according to described input variable, generate the interface message call; The second message sink module 4241, be used to receive the interface that sends by the WSRP server and call response message, call the information that comprises corresponding interface in the response message at described interface, the information at wherein said interface is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
Perhaps, as shown in Figure 9, described interface call unit 42 also can comprise: the 3rd parameter assignment module 42111, be used for that described interface is generated parameter and convert the WSRP form to, and assignment is joined in the interface generation of WSRP form call movable interface generation parametric variable to the interface, the interface is served the input variable of the input message element of correspondence as the interface activity of calling; The 3rd message generating module 42112 is used for generating parametric variable generation interface message call according to the input variable and the movable interface of activity, comprises the address information of specifying WSRP interface business in the message call of described interface; The 3rd message sink module 42113, be used to receive the interface that sends by the WSRP server and call response message, call the information that comprises corresponding interface in the response message at described interface, the information at wherein said interface is that the interface of described WSRP server after according to initial page that is provided and described format conversion generates parameter and assemble.
The course of work of the interface call unit of above-mentioned several forms can be respectively with reference to embodiment one corresponding process.
Wherein, as shown in figure 10, described interface transmitting element 43 can comprise: the 6th message generating module 431, be used for calling response message and generate service response message according to described interface, wherein, extract described interface and call mimeType in the response message, extract described interface and call markupString in the response message as the HTTP body of described service response message as the HTTP head of described service response message; Interface sending module 433 is used for described interface is sent to client by described service response message.
In addition, as shown in figure 10, described interface transmitting element 43 also can comprise: insert module 432, be used for inserting the pairing session information of described composite service in described service response message, and the successor operation address in the described service response message replaced with the address of combine engine, thereby make the later service request of client can both carry this conversation message and all handle via described combine engine.
Wherein, the course of work of described interface transmitting element 43 can be with reference to the process of step 13 among the embodiment one.
Wherein, above-mentioned arbitrary device shown in the drawings can be arranged in combine engine.
The device of the realization combinations of services of the embodiment of the invention, the interface by expansion generates parameter, the interface required parameter makes can be seamless integrated between WSRP and BPEL.Make BPEL simultaneously combined user interface and service logic, thereby realize reusing of user interface and service logic.
In addition, the embodiment of the invention six also provides a kind of system that realizes combinations of services, as shown in figure 11, comprising:
Combine engine 91 comprises the device of the arbitrary described realization combinations of services of Fig. 4-Figure 10; WSRP server 92, the running environment of WSRP business is called for described combine engine, and calls response message to described combine engine transmission interface, comprises by calling the interface information of acquisition in the dispatching response message of described interface; Web service server 93, the running environment of Web service is called for described combine engine.
In concrete the application, as shown in figure 12, the system of this realization combinations of services can comprise following composition:
Web Service server 93 is used for the running environment as Web Service, calls for combine engine 91, and issues its business description information to operation list 94.Described WSRP server 92 also can be used as the running environment of WSRP business, calls for combine engine 91, and issues its business description information to operation list 94.Operation list 94, the user issues the business description information of Web Service, WSRP business, uses when creating composite service for composite service creation environment 95.Composite service creation environment 95 is used for having again based on the existing service logic of business description information creating of operation list 94 Web Service, WSRP business the composite service at professional interface, and loads the composite service created in combine engine 91.
By above description as can be seen, method, the Apparatus and system of the realization combinations of services of the embodiment of the invention, interface by expansion generates parameter, the interface required parameter makes can be seamless integrated between WSRP and BPEL, thereby BPEL simultaneously combined user interface and service logic, thereby realize reusing of user interface and service logic.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) 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 described claim.

Claims (21)

1. a method that realizes combinations of services is characterized in that, comprising:
Receive the business request information of client;
According to described business request information, utilize the interface generation parameter in the composite service that the remote portal Web service WSRP interface business in the described composite service is called, obtain the interface and call response message;
Call response message according to described interface and generate client end interface, and described client end interface is sent to described client.
2. method according to claim 1 is characterized in that, carries the interface required parameter in described business request information;
After the business request information of described reception client, described method also comprises:
Described interface required parameter assignment is given the BPEL BPEL variable of the reception activity that is used to receive described business request information in the described composite service.
3. method according to claim 1, it is characterized in that, described according to described business request information, utilize the interface generation parameter in the composite service that the remote portal Web service WSRP interface business in the described composite service is called, the acquisition interface is called response message and is comprised:
The described interface of expandable mark language XML form is generated the interface generation parameter that parameter converts the WSRP form to, and the interface of described WSRP form is generated the interface call parameters of parameter assignment to the interface activity of calling;
Generate the interface message call according to described interface call parameters, in the message call of described interface, comprise the address information of specifying WSRP interface business;
Reception is called response message by the interface that the WSRP server sends, and it is that interface according to described WSRP form generates parameter and obtains that response message is called at wherein said interface.
4. method according to claim 3 is characterized in that, described interface generation parameter assignment with described WSRP form is called movable interface call parameters to the interface and comprised:
The interface of described WSRP form is generated the parameter assignment is called movable input variable to the interface daughter element; Or
The interface of described WSRP form is generated the input variable of parameter assignment to the interface activity of calling; Or the interface of WSRP form is generated the parameter assignment call movable interface to the interface and generate parametric variable, the input message element that the interface service is corresponding calls movable input variable as the interface.
5. method according to claim 4, it is characterized in that, when the interface of described WSRP form generates the parameter assignment and calls movable interface call parameters and comprise that interface with described WSRP form generates the parameter assignment and calls movable input variable to the interface to the interface, describedly generate the interface message call according to described interface call parameters and comprise:
When the activity of calling of described interface is calling of WSRP type, input message element according to described WSRP generates interface message call framework, and in the message call framework of described interface, insert the xml fragment that generates according to described input variable, generate the interface message call.
6. method according to claim 2 is characterized in that, describedly comprises to the BPEL BPEL variable of the reception activity that is used to receive described business request information in the described composite service described interface required parameter assignment:
Resolve described business request information, obtain the interface required parameter in the described business request information;
Described interface required parameter assignment is given the BPEL variable of described reception activity.
7. method according to claim 6 is characterized in that, describedly comprises to the BPEL variable of described reception activity described interface required parameter assignment:
Determine whether described interface required parameter is the expandable mark language XML form;
When definite described interface required parameter is the XML form, utilize the pattern schema of the interface required parameter correspondence of the pairing WSRP of described reception activity to verify whether described interface required parameter is legal;
When described interface required parameter is legal, described interface required parameter assignment is given the BPEL variable of described activity.
8. method according to claim 7, it is characterized in that, when definite described interface required parameter was not the XML form, after whether described definite described interface required parameter was the expandable mark language XML form, described method also comprised: described interface required parameter is converted to the XML form.
9. method according to claim 1 is characterized in that, describedly calls response message according to described interface and generates client end interface, and described client end interface is sent to described client comprise:
Call response message according to described interface and generate service response message, wherein, extract described interface and call mimeType in the response message, extract described interface and call markupString in the response message as the HTTP body of described service response message as the HTML (Hypertext Markup Language) HTTP head of described service response message;
Described client end interface is sent to client by described service response message.
10. method according to claim 9 is characterized in that, described described client end interface is sent to client by described service response message before, described method also comprises:
In described service response message, insert the pairing session information of described composite service, and the successor operation address in the described service response message is replaced with the address of combine engine.
11., it is characterized in that before the business request information of described reception client, described method also comprises according to the arbitrary described method of claim 1-10:
To the descriptor of operation list issue WSRP business, described descriptor comprises that the interface generates parameter, interface required parameter;
Create the composite service that has user interface according to described descriptor.
12. method according to claim 11 is characterized in that, creates the composite service that has user interface according to described descriptor and comprises:
Generate the reception activity, with the variable of described interface required parameter as described reception activity correspondence;
Activity is called in generation, with the input variable of the input variable among the WSRP as the activity of calling, and with the interface generation variable of described interface generation parameter as the described activity of calling; Generate the daughter element of parameter perhaps with the input variable of the input variable among the WSRP, and with described interface as input variable as the activity of calling; Perhaps described interface is generated parameter as calling movable input variable;
Generate the answer activity, the variable of response message as described answer activity called at described interface;
Load the composite service of described establishment, and generate the address of described composite service.
13. a device of realizing combinations of services is characterized in that, comprising:
The message sink unit is used to receive the business request information of client;
The interface call unit is used for according to described business request information, utilizes the interface generation parameter in the composite service that the WSRP interface business in the described composite service is called, and obtains the interface and calls response message;
The interface transmitting element is used for calling response message according to described interface and generates client end interface, and described client end interface is sent to described client.
14. device according to claim 13 is characterized in that, carries the interface required parameter in described business request information; Described device also comprises:
The interface requesting processing is used for being used to receive the BPEL BPEL variable of the reception activity of described business request information for described composite service described interface required parameter assignment.
15. device according to claim 13 is characterized in that, described interface call unit comprises:
The first parameter assignment module is used for the described interface of expandable mark language XML form is generated the interface generation parameter that parameter converts the WSRP form to, and the interface of described WSRP form is generated the parameter assignment is called movable input variable to the interface daughter element; First message generating module is used for generating the interface message call according to described input variable, comprises the address information of specifying WSRP interface business in the message call of described interface; The first message sink module is used to receive the interface that is sent by the WSRP server and calls response message, and it is that interface according to described WSRP form generates parameter and obtains that response message is called at wherein said interface; Or
The second parameter assignment module is used for that described interface is generated parameter and converts the WSRP form to, and the interface of WSRP form is generated the input variable of parameter assignment to the interface activity of calling; Second message generating module, be used for when the activity of calling of described interface is calling of WSRP type, input message element according to described WSRP generates interface message call framework, and the xml fragment that insertion generates according to described input variable in the message call framework of described interface, generate the interface message call, in the message call of described interface, comprise the address information of specifying WSRP interface business; The second message sink module is used to receive the interface that is sent by the WSRP server and calls response message, and it is that interface according to described WSRP form generates parameter and obtains that response message is called at wherein said interface; Or
The 3rd parameter assignment module, be used for the described interface of expandable mark language XML form is generated the interface generation parameter that parameter converts the WSRP form to, and the interface of WSRP form is generated the parameter assignment call movable interface to the interface and generate parametric variable, the input message element that the interface service is corresponding calls movable input variable as the interface; The 3rd message generating module is used for calling movable interface generation parametric variable generation interface message call according to the input variable and the interface of the activity of calling of described interface, comprises the address information of specifying WSRP interface business in the message call of described interface; The 3rd message sink module is used to receive the interface that is sent by the WSRP server and calls response message, and it is that interface according to described WSRP form generates parameter and obtains that response message is called at wherein said interface.
16. device according to claim 13 is characterized in that, described interface requesting processing comprises:
Parameter acquisition module is used to resolve described business request information, obtains described interface required parameter;
The assignment module is used for the BPEL variable of described interface required parameter assignment to described reception activity.
17. device according to claim 16 is characterized in that, described assignment module comprises:
Judge submodule, be used to judge whether described interface required parameter is the expandable mark language XML form;
The checking submodule, be used for when definite described interface required parameter is the expandable mark language XML form, utilize the schema of the interface required parameter correspondence of movable pairing WSRP described in the described composite service example to verify whether described interface required parameter is legal;
The parameter processing sub is used for when described interface required parameter is legal, described interface required parameter assignment is given the BPEL variable of described activity.
18. device according to claim 17 is characterized in that, described assignment module also comprises:
Parameter conversion submodule is used for when definite described interface required parameter is not the expandable mark language XML form described interface required parameter being converted to the XML form.
19. device according to claim 13 is characterized in that, described interface transmitting element comprises:
The 6th message generating module, be used for calling response message and generate service response message according to described interface, wherein, extract described interface and call mimeType in the response message, extract described interface and call markupString in the response message as the HTTP body of described service response message as the HTML (Hypertext Markup Language) HTTP head of described service response message;
The interface sending module is used for described interface is sent to client by described service response message.
20. device according to claim 19 is characterized in that, described interface transmitting element also comprises:
Insert module is used for inserting the pairing session information of described composite service in described service response message, and the successor operation address in the described service response message is replaced with the address of combine engine.
21. a system that realizes combinations of services is characterized in that, comprising:
Combine engine comprises the device of the arbitrary described realization combinations of services of claim 13-20;
The WSRP server, the running environment of WSRP business is called for described combine engine, and calls response message to described combine engine transmission interface, comprises interface information in the dispatching response message of described interface;
The Web service server, the running environment of Web service is called for described combine engine.
CN201010251891.XA 2010-08-12 2010-08-12 Method, device and system for realizing service combination Expired - Fee Related CN102137135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010251891.XA CN102137135B (en) 2010-08-12 2010-08-12 Method, device and system for realizing service combination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010251891.XA CN102137135B (en) 2010-08-12 2010-08-12 Method, device and system for realizing service combination

Publications (2)

Publication Number Publication Date
CN102137135A true CN102137135A (en) 2011-07-27
CN102137135B CN102137135B (en) 2014-07-09

Family

ID=44296790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010251891.XA Expired - Fee Related CN102137135B (en) 2010-08-12 2010-08-12 Method, device and system for realizing service combination

Country Status (1)

Country Link
CN (1) CN102137135B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188337A1 (en) * 2015-05-22 2016-12-01 阿里巴巴集团控股有限公司 Service implementation method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956445A (en) * 2005-10-28 2007-05-02 北京航空航天大学 Implementing method faced to gate package of web service
US20070209011A1 (en) * 2006-02-23 2007-09-06 Srinivas Padmanabhuni System and method for dynamic creation and customization of user interface in a web service environment
CN101378324A (en) * 2007-08-31 2009-03-04 华为技术有限公司 Method, apparatus and system for processing, replacing combined business and invoking concrete business

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956445A (en) * 2005-10-28 2007-05-02 北京航空航天大学 Implementing method faced to gate package of web service
US20070209011A1 (en) * 2006-02-23 2007-09-06 Srinivas Padmanabhuni System and method for dynamic creation and customization of user interface in a web service environment
CN101378324A (en) * 2007-08-31 2009-03-04 华为技术有限公司 Method, apparatus and system for processing, replacing combined business and invoking concrete business

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188337A1 (en) * 2015-05-22 2016-12-01 阿里巴巴集团控股有限公司 Service implementation method and apparatus
US10560346B2 (en) 2015-05-22 2020-02-11 Alibaba Group Holding Limited Service implementation method and apparatus

Also Published As

Publication number Publication date
CN102137135B (en) 2014-07-09

Similar Documents

Publication Publication Date Title
US20220335214A1 (en) Device Identifier Dependent Operation Processing of Packet Based Data Communication
US10957326B2 (en) Device identifier dependent operation processing of packet based data communication
CN108306877B (en) NODE JS-based user identity information verification method and device and storage medium
KR102268989B1 (en) Data structure pooling of voice activated data packets
CN112612629B (en) Method and system for realizing component type data interface
US9503447B2 (en) Secure communication between processes in cloud
US20030135628A1 (en) Provisioning aggregated services in a distributed computing environment
CN103220259A (en) Using method, call method, device and system of Oauth application programming interface (API)
JP2002334056A (en) System and method for executing log-in in behalf of user
KR20040111638A (en) Application generator
CN102739678B (en) Single-sign-on treatment system and single-sign-on processing method
WO2019159894A1 (en) Authentication approval information integration device and authentication approval information integration method
CN108683651A (en) A kind of single-point logging method, server-side and system
JP2010165306A (en) Method and system for providing service, proxy device, program therefor
CN102137135B (en) Method, device and system for realizing service combination
JP2007035053A (en) Method for maintaining session between different-terminals
WO2011032427A1 (en) Method and system for internet protocol television user login and internet protocol television ability platform
Samsel et al. Web service to JSON-RPC transformation
KR102181608B1 (en) Apparatus for federated authentication and method thereof
JP5749222B2 (en) Access permission control system and access permission control method
CN114422229A (en) WEB application single sign-on proxy method and device, sign-on method and server
JP2013257625A (en) Authentication request conversion device and authentication request conversion method

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