Baby Steps on BPEL “HelloWorld” process with Eclipse -1-

Deploying the HelloWorld BPEL process

  1. Create new BPEL project: File→New→Others→BPEL 2.0→BPEL Project.
  2. Name it BPEL_HelloWorld. Select the Target Runtime as Apache ODE 1.x Runtime and Configuration as Defaut Configuration for Apache ODE 1.x Runtime. Click Finish.
  3. In the folder BPEL_HelloWorld\bpelContent, File → New → Other → BPEL 2.0 → New BPEL process file.
  4. Name it HelloWorld, Namespace http://helloworld.localhost and select Template Synchronous BPEL Process. Click Next.
  5. Edit the Service Address to : http://localhost:8080/ode/processes/HelloWorld (suppose that your Tomcat environment runs at port 8080) and keep other default declarations. Click Finish.
  6. Three files are created in the folder bpelContent and the HelloWorld.bpel is opened for editing the BPEL process.
  7. Click to open the Palette panel on the right of the canvas. (or right click on the canvas, select Show Pallette on Palette View)
  8. Drag the Assign action next to the receiveInput action and delete the FIX_ME-Add_Business_Logic_Here.
  9. Right click on the Assign activity. Select Show in properties.
  10. In the Properties tab, select Details. Click on the New button to define an assign operator.
  11. Assign from input→payload→input to output→payload→result. An Initializer popup dialog appear. Click Yes to initialize the output variable and save the process.
  12. It’s time now to deploy the BPEL project. Click on the folder bpelContent, select File→New→Others→BPEL 2.0→Apache ODE Deployment Descriptor.
  13. Click Next. Verify the BPEL Project name as BPEL_HelloWorld. Click Finish.
  14. Double click on the deploy.xml file in the bpelContent folder.
  15. In the Inbound Interfaces table, select the Partner Link as client, Associate Port as HelloWorldPort. Click on Related Service then other fields will be automatically filled. Save the deploy.xml file.
  16. To deploy the project on the server, right click on the Ode v1.x Server at localhost, select Add and Remove Projects.
  17. Select the BPEL_HelloWorld/HelloWorld in the Available projects box and click Add. Then, click Finish.
  18. Start the ODE server. If the deployment was successful, you will see the following output in the console tab.
  19. We will test the project with Web Services Explorer provided by Eclipse. Right click on the HelloWorldArtifacts.wsdl file. Select Web Services→Test with Web Services Explorer.
  20. Select the operation process. Then, type Hello ODE in the input textbox. If your deployment was success, you will get the same string in the SOAPresponse.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s