Cxf中如何获取请求报文和响应报文?

87 views
Skip to first unread message

wait...@163.com

unread,
Apr 27, 2012, 5:35:25 AM4/27/12
to cxf-zh
请问在CXF中,如何从message取得报文信息;就像LoggingInInterceptor,LoggingOutInterceptor一
样,但是我只需要Payload的内容.
在CXF中,如果要获取报文需要extends AbstractPhaseInterceptor;inBound,outBound的Phase各
有不同的阶段,如果要获取原始的请求报文和响应报文,也就是客户端请求报文,服务端响应报文;需要分别在inBound和outBound的Phase
哪个阶段获得呢?
能否帮忙给个例子,谢谢!
Reply all
Reply to author
Forward
0 new messages