Accessing complex types through XML facade

The advantage of using XML facade is to provide the ability to access the XML content via Java classes and methods. This recipe explains how to access the complex types through XML facade.

Getting ready

To complete the recipe, we will amend the example BPEL process from the Invoking XML facade from BPEL processes recipe.

How to do it...

The steps involved in accessing the complex types through XML façade are as follows:

  1. Open the Banking_BPEL process and double-click on the XML_facade_node Java Embedding activity.
  2. We amend the code snippet with the following code to access the complex type:
    java.util.List<org.packt.cashflow.facade.PrincipalExchange> princEx= cf.getPrincipalExchange();
  3. We receive a list of principal ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.