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:
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: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:AnotherBookstoreBPEL.xsd
schema. Modify the schema content by declaring the BookData
and StockQuantity
elements, exactly as shown in the preceding screenshot.AnotherBookstoreBPEL.wsdl
. Modify the request and response messages so that they reference the newly added schema elements:AnotherBookstoreBPEL
process. We will implement it in a very straightforward manner and simply return a constant value for StockQuantity
.