Hi,

I am currently adding web service support to a Servlet based application to expose large amounts of data to be returned as XML. The application already returns this XML data from its web interface.

We would prefer to return the data in the body of the SOAP response as opposed to attachments. We need to stream it without any buffering because this is/will cause out of memory errors as other mails have mentioned.

The existing application currently streams its data with a chain of SAX based readers/parsers using the output stream of the Servlet's response. The output stream can be easily specified, but the input stream is essentially piped to the database and/or text index.

So, what I would like to do is use this streaming architecture to directly stream this data to the message body at the appropriate point without any intermediate buffering while building up the Axis response message or when Axis streams this particularly chunk of data.

Any help would be greatly appreciated!
If necessary, locking the web service implementation into a HTTP/Servlet based architecture is appropriate.


I have tried using custom serialization classes and grabbing the output stream directly from the HttpServletResponse stored in the MessageContext but have not had any success.

Thanks a lot,
Charles



Reply via email to