when no saaj interceptor (ie.,
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor or
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor)
is executed, a SOAPMessage instance is not available.

that means, you can use one of the saaj interceptors (by inserting it
in your interceptor chain or instantiating one within your custom
interceptor and execute it (call its handleMessage method) if
SOAPMessage isn't available (that means no one else added the saaj
interceptor to instantiate the SOAPMessage).

but maybe, there may not another approach to do what you want to do
and in that case, you may not need SOAPMessage?

regards, aki



2013/11/14 Ted Roeloffzen <[email protected]>:
> Hi all
>
> But now I'm having a problem.
> I'm doing a little coding by example, so don't shoot me if i'm doing
> something stupid ;)
>
> In the interceptor i do the following:
> SOAPMessage sm = message.getContent(SOAPMessage.class);
>
> But sm will be null.
>
> How is this possible and what am i doing wrong?
> Is there a problem with the xml that i'm getting or is it something i'm
> doing wrong?
>
> kind regards,
>
> Ted

Reply via email to