Click the Source tab to view the syntax.

Manipulating XML Data in a BPEL Process 6-37 For more information about the keepSrcElementName attribute, see Section 6.14.7.3, keepSrcElementName Attribute.

6.17 Mapping WSDL Message Parts in BPEL 2.0

The toParts element in invoke and reply activities provides an alternative to explicitly creating multipart WSDL messages from the contents of BPEL variables. When you use the toParts element, as shown in Example 6–72 , an anonymous, temporary WSDL variable is defined based on the type specified by the input message of the appropriate WSDL operation. Example 6–72 toParts Element toParts toPart part=payload fromVariable=request toParts The toParts element acts as a single, virtual assign activity. Each toPart acts as a copy operation. One toPart at most exists for each part in the WSDL message definition. Each copy operation copies data from the variable specified in the fromVariable attribute into the part of the anonymous, temporary WSDL variable referenced in the part attribute of the toParts element. The fromParts element in receive activities, invoke activities, the onEvent branch of scope activities, and the onMessage branch of pick activities is similar to the toParts element. The fromParts element, as shown in Example 6–73 , retrieves data from an incoming multipart WSDL message and places the data into individual variables. Example 6–73 fromParts Element fromParts fromPart part=payload toVariable=request fromParts When a WSDL message is received on an invoke activity that uses fromParts elements, the message is placed in an anonymous, temporary WSDL variable of the type specified by the output message of the appropriate WSDL operation. As with the toParts element, the fromParts element acts as a single virtual assign activity. Each fromPart acts as a copy operation. Each copy operation copies the data at the part of the anonymous, temporary WSDL variable referenced in the part attribute of the fromPart into the variable indicated in the toVariable attribute. Table 6–6 Mapping WSDL Message Parts For The... The... inputVariable attribute Value of the variable referenced by the attribute sets the value of the part in the anonymous temporary WSDL message variable. outputVariable attribute Value of the received part in the temporary WSDL message variable sets the value of the variable referenced by the attribute. Receive activity Incoming part’s value sets the value of the variable referenced by the variable attribute. Reply activity Value of the variable referenced by the variable attribute sets the value of the part in the anonymous, temporary WSDL message variable that is sent out. For a reply activity sending a fault, the same scenario applies.