SERVICE ORCHESTRATION WORKFLOW USING BPEL
AIM :
To Develop a Service Orchestration engine (Work Flow) using WS-BPEL and implement service compostion
Create CalcService
Step1: Create a Web Service in Netbeans6.5 called calcService. Step2: Perform ADD operation
Creating a BPEL Project
1. Creation of BPEL by Click on new and then Click on SOA,then BPEL name it as calcBpel 2. Right click on the project and create a new BPEL process and name it calcProcess
3. Drag the item under Web Service in calcService and drag to the PartnerLink
4. Name it as PartnerLinkWS and leave the other values as such and click on OK
5. Design the BPEL as below
STEPS TO DO CREATING ANOTHER PARTNER LINK 1. Drag and drop the WSDL file again to the left hand side and name the PartnerLink as PartnerLinkBPEL. 2. Check the Use a Newly Created Partner Link Type. 3. Check Process will implement MyRole. 4. Fill the Partner Link Type Name as calcServiceLinkTypeBPEL. 5. Fill the Role Name as calcServiceRoleBPEL. 6. Click on OK.
5. DRAG AND DROP THE Following entities from the Palette 6.Receive1,Assign1,Invoke1,Assign2,Reply1 in the order as below Receive1, [Link] can be dragged later. [Link] Receive1 click on Edit
8. Choose the Partner Link as PartnerLinkBPEL and Operation as add. 9. Click on Create Button besides Input Variable Label.
10. The Name is usually AddIn. Leave it as such and click OK. 11. On Reply1 repeat the same procedure to add a AddOut variable as Output. 12. Now drag Assign1 and again edit.
[Link] the AddIn arguments on left side to AddIn1 on the right side. [Link] drag in Invoke1 and assign the properties as below.
15. Now drag and drop Assign2 and then do the mapping of the return parameter from AddOut1 on left side to AddOut on right side as below.
16. Now Build the BPEL project.
Creating a Composite Application
1. Click on New->Project->SOA->CompositeApplication and name it calcCompositeApp. 2. Now right click on the project to add a JBI Module. 3. Drag the BPEL process from the calcBpel project and drop in the JBI window. 4. Build the project. 5. Drag and drop soap entity from the palette and make the connections as below.
17. Deploy The Project. 18. Create a new test case. While doing so select the WSDL file from the BPEL project.
19. Choose the operation to add.
20. Then run the testcase after passing the value to the input file. <soapenv:Envelope xsi:schemaLocation="[Link] [Link] xmlns:xsi="[Link] xmlns:xsd="[Link] xmlns:soapenv="[Link] xmlns:pck="[Link] <soapenv:Body> <pck:add> <arg0>12</arg0> <arg1>8</arg1> </pck:add> </soapenv:Body> </soapenv:Envelope> The output is generated as below. <?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="[Link] <S:Body> <ns2:addResponse xmlns:ns2="[Link] <return>20</return> </ns2:addResponse> </S:Body> </S:Envelope>
RESULT:
Thus the service orchestration workflow using BPEL is written and executed successfully