Question

I need to create a restful service. I have no access to some classes but need to send the same classes in the result. Is there a way to map the object to xml. I tried using org.springframework.oxm.castor.CastorMarshaller but it gives response with extra tags in the xml like

<bean-property-binding-result field-error-count="0" global-error-count="0" error-count="0">

Is there a way to get it done using castor marshaller? If not can anyone redirect to write page

Was it helpful?

Solution

I solved this issue by using velocity templates as xml templates and returning that xml as response for the call.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top