You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by desjava <de...@gmail.com> on 2012/04/24 17:26:49 UTC
MessageContext
how to recover MessageContext ?
MessageContext mc = ???????????????????
SOAPMessageContext smc = (SOAPMessageContext) mc;
SOAPMessage msg = smc.getMessage();
String value = msg.getSOAPPart().getEnvelope().toString();
--
View this message in context: http://cxf.547215.n5.nabble.com/MessageContext-tp5662386p5662386.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: MessageContext
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
If you have
@Resource
private WebServiceContext wsContext;
then you can
MessageContext mc = wsContext.getMessageContext();
Freeman
On 2012-4-24, at 下午11:26, desjava wrote:
> how to recover MessageContext ?
>
> MessageContext mc = ???????????????????
> SOAPMessageContext smc = (SOAPMessageContext) mc;
> SOAPMessage msg = smc.getMessage();
> String value = msg.getSOAPPart().getEnvelope().toString();
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/MessageContext-tp5662386p5662386.html
> Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042