How web service return xml?
Hi everyone. I am new to the forum and java too. :) Forgive me for my English. I am from Greece.
I have made a web service that gathers some data from a database and then returns them as a XML schema. They way i've done tha is by puting the data into a domdocument and then puting the document's content into a string object and return it.
My goal i to invoke the web service via a .jsp client and take this xml ( that web service returns) from the HTTP response body.
Is it correct to return the xml as string??
Do you have any idea how to get the HTTP response body and manipulate it??