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
