Accessing the fields within the Message Type-based variables
This recipe explains how to access fields within Message Type-based variables. We will reuse the two sample BPEL processes from the previous recipe since the request and response messages and their corresponding variables present Message Type-based variables.
Getting ready
This recipe builds on the two BPEL processes we created in the previous recipe named Manipulate1_1
and Manipulate2_0
.
How to do it…
This recipe will show you how to access fields in Message Type-based variables in a BPEL process:
Open the
Manipulate1_1
BPEL process and add the assign activity (AssignMsgType
).We assign the content from the request message to the content of the response message. We are actually performing the assignment between two Message Type-based variables as follows:
<copy> <from variable = "inputVariable" part = "payload" query = "/client:process/client:input"/> <to variable = "outputVariable" part = "payload" query = "/client...