I only have control over the client side. MTOM I would imagine requires configurtion on the server side.

On Dec 16, 2008, at 15:17 , Idar Borlaug wrote:

Have you considered using MTOM, then you get a stream object in java,
which you can redirect to file.

2008/12/16 Thomas Engelschmidt <[email protected]>:
Hi

I'm implementing a cxf ws client, that's going to consume at huge amount of data (500gb a month). Since its not possible to restrict the response size.

I would like to implement an interceptor, that gets the inputstream and redirects it to a file, and if possible returns another xml object instead. Since memory usage is the issue here. Therefor the interception, must happen
during reception of response data.
I have considered looking at the LoggingInInterceptor, but I'm not sure if
it intercepts at the correct phase.


1) Is it possible to redirect input to a file using InInterceptors ?

2) Which phase should such FileInInterceptor use ?

3) Is it possible to inject another xml response, that gets unmarchalled
into a jaxb pojo ?

4) Is this the right approach ?

Cheers

Thomas Engelschmidt




--
Idar

Reply via email to