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.
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:
The corresponding Java classes for the XML schema were generated.
Now compare the classes generated via the ANT utility in the Generating XML facade using ANT recipe with this one. In essence, the generated files are the same. However, we see the additional file jaxb.properties
, which holds the configuration of the JAXB factory used for the generation of Java classes.
It is recommended to create the same access class (Facade.java
) in order to simplify further access to XML facade.