I have an object that is the return value for a web service method. One of its properties contains an XML document. Ideally, I would like JAX-B to include this XML document in response to the web service, and not to avoid everything, or should cancel it in order to allow the webservice mapping to immediately marshal it.
Can this be done using annotations or defining a custom binding?
EDIT:
The reason I want to do this is because the XML document is retrieved from the Oracle database (XmlType column type) and I generally want to avoid unnecessary parsing / formatting steps to get it for the web service client .
source
share