On Thu January 14 2010 1:31:04 am Alex wrote:
> Hi!
> 
> How can I extract the hole raw transported message including
> HTTP-Headers, Mime-Headers, SOAP-Message itself and
> save them to file?

Normally, the soap message itself is discarded as it's read in.  (streamed) as 
it's not needed.  Thus, if you need it, you'll need to write an interceptor to 
handle it.    There are really two options:

1) You COULD just configure in the SAAJInInterceptor and grab the soap message  
as the SAAJ object model and do whatever you want.

2) You  could grab the source code for the LoggingInInterceptor and modify it 
for your purpose.   It already pulls in the full byte stream, if it's over a 
threshold, saves it in a file, resets the streams to the file stream, etc...    
 
It also prints things like the HTTP headers so that information is available 
there as well.   

Dan



> 
> Is there a possibility to bring the save file back to the cxf context?
> 
> Thank you!
> 
> Alex
> 

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to