In CXF, the message is represented by different objects as it is
processed through the interceptors.
And you can get the SOAPMessage representation only after the SAAJ
interceptor processes the message.

In your case, you should just capture the input stream to dump the
received message instead of trying to use the soap message object. You
can look at the implementation of LoggingInInterceptor.

regards, aki

2011/11/16 marco1982 <[email protected]>:
> Hi all,
> I have the need to persist all SOAP incoming messages received by the Web
> service. I'm using Apache CXF on Tomcat 6.0. So I have written an
> Interceptor which tries to collect the SAOPMessage from the Message Content:
>
> public void handleMessage(SoapMessage msg) throws Fault {
>
> SOAPMessage sm = msg.getContent(SOAPMessage.class);
> . . . . .
> }
>
> However, the SOAPMessage is always null. Looking at the forums I've read to
> try the Interceptor at different levels of the Interceptor chain- however I
> still get a null SOAPMessage!
> I'm desperately in need of help ! Thanks ! Marco
>
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Debbugging-incoming-SOAP-Message-tp4999193p4999193.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to