Hi!

I have a similar problem, I need to log all outgoing messages before they
are encrypted and signed.
I tried to modify the shipped LoggingOutInterceptor within its constructor:

super( Phase.PRE_STREAM );
addBefore( StaxOutInterceptor.class.getName() );
addBefore( WSS4JOutInterceptor.class.getName() );


This does not seem to help. I have tried to use earlier phases with no luck.
I guess it has something to do with the callback mechanism and the caching
used by this interceptor?

Any hints how I could solve my problem?

Thanks!

Björn


dkulp wrote:
> 
> On Monday 15 December 2008 1:41:03 pm Curious Mind wrote:
>> I have gone through that example and didnt found of much use. Anyways I
>> have achieved my target using handler but I still think Interceptor would
>> have be better option. I really need example which can show how to play
>> with XML Body Message.
> 
> It kind of depends on what type of modifications you need to make.
> 
> If you really need to make large structural modifications (kind of like 
> ws-security that is encrypting things, adding headers, etc...), you would 
> probably use the SAAJOutInterceptor+YouInterceptor to work on the saaj
> model.   
> Fairly similar to the JAX-WS handlers. 
> 
> If the modification can be done in a streaming manner (like namespace
> mapping 
> or adding an element/attribute or similar), you would normally use an 
> interceptor that would wrapper/replace the XMLStreamWriter or even the 
> OutputStream with a  new one that does the behavior you need.
> 
> -- 
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/XML-Response-modification-tp20990405p21030868.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to