I am building a webservice using jax-rs and querying a DB2 z/OS database with SQLJ and getting the result set as an arraylist. I would like to return this list as XML, but not sure how to do it.
Does anyone have an example of returning a result set as XML and is using an Arraylist the best way to do this?
Should I use JAXB? if so how?