You could use a Provider<StreamSource> service that just writes the stream directly to disk, and then invokes another service (or just calls a method in your back-end application directly).
http://cwiki.apache.org/CXF20DOC/provider-services.html Andrew. 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 >
