You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Lars Engel <en...@ivs.tu-berlin.de> on 2004/07/28 16:11:25 UTC
handling properties
Hi,
what is the easiest way to define some properties. I'd like to define
them in a file or so and get them from within a class.
Best regards,
Lars.
Streaming a Part of Response Body with SAX
Posted by Charles Roy <cr...@blueprint.org>.
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