Creating XML facade from XSD

This recipe describes how to create XML facade classes from XSD. Usually, the necessity to access XML content out of Java classes comes from already defined XML schemas in BPEL processes.

How to do it...

We have already defined the BPEL process and the XML schema (Derivative_Cashflow.xsd) in the project. The following steps will show you how to create the XML facade from the XML schema:

  1. Select the CashflowFacade project, right-click on it, and select New. Select JAXB 2.0 Content Model from XML Schema.
    How to do it...
  2. Select the schema file from the Banking_BPEL project. Select the Package Name for Generated Classes checkbox and click on ...

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.