Let's now create the BookDataVariable
variable:
BookDataVariable
as the Name. We select Element for the XML element variables. Then, we use the magnifier glass icon to select BookData
from Project Schema Files
/BookstoreBPEL.xsd
:We have created the XML element type variable BookDataVariable
, which is of the type BookData
. The BPEL source code looks like the following:
Let's now declare a WSDL message type variable. We will create a BookStoreWithLowestQuantity
variable, where we will store the whole WSDL message response payload. We will need to store the response message from the BookStoreA
/ BookStoreB
partner link, which holds the data about the stock quantity and book ISSN. We therefore need the message, which will store the BookDataResponse
from the BookStoreBPEL.xsd XML Schema (created in Chapter 1, Hello BPEL):
We can find the message definition in the corresponding BookstoreABPEL.wsdl
(or in the BookstoreBBPEL.wsdl
, but we will use Bookstore A
here):