Time for action – creating XML element variables

Let's now create the BookDataVariable variable:

  1. Another way to create a new variable is to open the Structure view on the lower left-hand side window and right-click on Variables. A menu will appear where we should select Create Variable, as shown in the following screenshot:
    Time for action – creating XML element variables
  2. The Create Variable dialog window will open. We will type 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:
    Time for action – creating XML element variables

What just happened?

We have created the XML element type variable BookDataVariable, which is of the type BookData. The BPEL source code looks like the following:

What just happened?

Declaring a WSDL message type variable

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):

Declaring a WSDL message type variable

We can find the message definition in the corresponding BookstoreABPEL.wsdl (or in the BookstoreBBPEL.wsdl, but we will use Bookstore A here):

Declaring a WSDL message type variable
..................Content has been hidden....................

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