Time for action – creating the AnotherBookstoreBPEL process

Let's now develop the AnotherBookstoreBPEL process. We have already created BPEL processes in Chapter 1, Hello BPEL, and Chapter 2, Service Invocation; therefore, we will briefly describe the steps:

  1. To create the AnotherBookstoreBPEL process, we will add a new BPEL process on the composite. We will enter the XML namespace as shown in the following screenshot and select the Synchronous BPEL Process template:
    Time for action – creating the AnotherBookstoreBPEL process
  2. Next, we will create a new reference between the BookWarehousing process and the AnotherBookstore process. To achieve this, we will drag the reference from the BookWarehousingBPEL component to the AnotherBookstoreBPEL component. You should see the following composite screenshot:
    Time for action – creating the AnotherBookstoreBPEL process
  3. We will modify the auto-generated schema for the process. Open the Schemas folder in the project tree and double-click on the AnotherBookstoreBPEL.xsd schema. Modify the schema content by declaring the BookData and StockQuantity elements, exactly as shown in the preceding screenshot.
  4. Finally, we need to modify the WSDL messages. Open the WSDLs folder and double-click on AnotherBookstoreBPEL.wsdl. Modify the request and response messages so that they reference the newly added schema elements:
    Time for action – creating the AnotherBookstoreBPEL process
  5. Let's now double-click on the AnotherBookstoreBPEL process. We will implement it in a very straightforward manner and simply return a constant value for StockQuantity.

Have a go hero – implementing the AnotherBookstoreBPEL process

It's your turn now. You should implement the AnotherBookstoreBPEL process the same way as you did in the previous chapter. The process should return a constant value for StockQuantity.

What just happened?

You have developed the AnotherBookstoreBPEL process, which should look like the following screenshot:

What just happened?
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset