The other alternative is to use OMDataSource, keep the streaming
straight to output in the 3 serialize methods and use the code in
JaxmeDataBindingTemplate only for the getReader() method. this way you
will have the best of both worlds. When the engine needs an om object
it will call getReader() and otherwise call the serialize methods.

http://ws.apache.org/commons/axiom/apidocs/org/apache/axiom/om/OMDataSource.html

thanks,
-- dims

On 8/17/06, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:
Davanum Srinivas wrote:

> See, the problem is *IF* you need to secure the soap message, this
> will fail since with this hack, you are just writing it to the
> outputstream.

Understood, but that's the point in streaming, isn't it?

In practice, I do, of course, provide as much objects as possible. For
example, I'd open a file, which I want to return as a stream. But the
possibility of an IOException in the middle of the stream would
remain.


Thanks,

Jochen

--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to