Context: As part of our development project, we need to retrieve data
(eg. Policy details) from different modules and using this data we need
to generate PDF document using a particular template (what we have
uploaded to live cycle)Solution we have tried:We have created Java
classes from XSD (for a particular template) using JAXB complier. Using
these Java classes we instantiated all the parameters using data from
different modules and got XML after marshalling. We send this XML as a
byte array ...