2016-06-24 35 views

回答

2

如果您想添加肥皂标题并处理它,然后使用SETUP作为org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor实现作为出站和READ入站的阶段。

如果你想改变输出的XML本身的一些内容,那么你可以玩弄摘要蒸汽拦截和org.apache.cxf.io.CachedOutputStream

请看看

http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/configuration_interceptor/src/main/java/demo/stream/interceptor/StreamInterceptor.java?revision=1173027&view=markup

饱满的工作例如@ http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/configuration_interceptor

堆栈溢出流例如Thrad-

How To Modify The Raw XML message of an Outbound CXF Request?