Hi,
You could implement an InInterceptor, which redirects the xml
inputstream. This works fine on the client side.
Im using it to consume a huge amount of xml (gb size) and then
redirect the response to a file.
Daniel Kulp, supplied the following code snippet :
<code>
super(Phase.RECEIVE);
public void handleMessage(Message message) throws Fault {
InputStream ins = message.getContent(InputStream.class);
int threashold = 64 * 1024; // <64K keep in memory
CachedOutputStream fout = new CachedOutputStream(threashold);
IOUtils.copy(ins, fout);
fout.flush();
message.setContent(InputStream.class, fout.getInputStream());
fout.close();
ins.close();
}
</code>
The code is from this thread :
http://www.nabble.com/Howto-consume-huge-amount-of-data-with-a-cxf-client-td21033744.html
cheers
Thomas
On Jan 11, 2009, at 15:32 , quzhe wrote:
hi, I need to get the stream of soap response, and send it to another
program, then this program will using xpath get some data in the soap
response xml. how can I get the soap response with xml format? thank
you
--
View this message in context:
http://www.nabble.com/can-I-get-SOAP-response-xml-in-the-client-side--tp21399796p21399796.html
Sent from the cxf-user mailing list archive at Nabble.com.