-
1. Re: return xml data from a servlet ?
gorazdh Sep 3, 2002 7:04 PM (in response to ipozeng)Servlet will return whatever you'll program it to return. Normally it would be a HTML, but there is no restriction on that. All you have to do is to change the "Content-Type" header from "text/html" to "text/xml" and then return a formatted XML response. The same goes with all other formats (.zip, .doc, ...)
-
2. Re: return xml data from a servlet ?
joelvogt Sep 3, 2002 9:12 PM (in response to ipozeng)You might want to look at XSLT for displaying your xml
-
3. Re: return xml data from a servlet ?
ipozeng Sep 4, 2002 11:31 PM (in response to ipozeng)thank you !
Now i will test using delphi to call the servlet which returns xml data .And the xml data will be populated into a TClientDataSet.
regards! -
4. Re: return xml data from a servlet ?
ipozeng Sep 5, 2002 9:08 PM (in response to ipozeng)Now i have successfully gotten XML data from servlet according to your suggestion,setting the contentType to text/xml.
However i donot know how to send XML to servlet ? Do i need to base64-encoding the XML data? If yes,please tell me how to do it ? Because i am not very familiar with base64 :(
Best Regards!