0% found this document useful (0 votes)
48 views10 pages

Multipart Message Support OracleBPEL

BPEL 2.0 in Oracle SOA 11g supports multipart messages. The toParts and fromParts elements allow data to be extracted from and assigned to individual parts of multipart messages. This document provides instructions on how to create a BPEL process that accepts a multipart message as input. It involves modifying the project WSDL to define part elements, verifying the input variable contains two parts, and using fromParts in the receive activity to assign parts to separate variables. The process is then deployed and tested by invoking the service with a multipart message.

Uploaded by

Suresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views10 pages

Multipart Message Support OracleBPEL

BPEL 2.0 in Oracle SOA 11g supports multipart messages. The toParts and fromParts elements allow data to be extracted from and assigned to individual parts of multipart messages. This document provides instructions on how to create a BPEL process that accepts a multipart message as input. It involves modifying the project WSDL to define part elements, verifying the input variable contains two parts, and using fromParts in the receive activity to assign parts to separate variables. The process is then deployed and tested by invoking the service with a multipart message.

Uploaded by

Suresh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Multipart Message Support in Oracle BPEL

BPEL2.0 in Oracle SOA 11g supports multipart WSDL messages. The toParts element in invoke
and reply activities provides an alternative to explicitly creating multipart WSDL messages from
the contents of BPEL variables.
<toParts>
<toPart part="payload" fromVariable="request"/>
</toParts>
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 retrieves data from an incoming multipart WSDL message and places the
data into individual variables
<fromParts>
<fromPart part="payload" toVariable="request"/>
</fromParts>
This document will explain how to use the multi part messages in BPEL 2.0
Create a sample BPEL project that will accept the multi part message as input.
I am using the below schema elements to define the part elements in WSDL.

Modify the project WSDL to accept the multi part message as input.

Verify the inputvariable; this will have two parts defined now.

In receive activity we can assign the input data including all the parts to a variable or individual
parts can be retrieved and assigned to separate variable when retrieving the individual parts the
parts value can be assigned to a variable created based on element not to message type based
variable.

Deploy and test the BPEL process, the receive activity will get both the parts as input.

To invoke the service with multipart message either we can provide the input as single variable
create based on the partnlerlink type or assign the data from individual elements based variable
to parts using toParts.

10

You might also like