Hi,
You can try the same way as WSS4JInInterceptor does:
private SOAPMessage getSOAPMessage(SoapMessage msg) {
SAAJInInterceptor.INSTANCE.handleMessage(msg);
return msg.getContent(SOAPMessage.class);
}
Regards,
Andrei.
> -----Original Message-----
> From: Faz [mailto:[email protected]]
> Sent: Samstag, 11. Januar 2014 20:22
> To: [email protected]
> Subject: Re: Message Object in UsernameTokenValidator
>
> Thanks Dan, but in the SAAJInInterceptor the SOAPMessage object seems to
> render a null value to me.
> SoapMessage soapMessage2 = message.getContent(SoapMessage.class);
> soapMessage2 is null in the interceptor which is hooked during the pre-
> protocol phase.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Message-
> Object-in-UsernameTokenValidator-tp5738424p5738474.html
> Sent from the cxf-user mailing list archive at Nabble.com.