Hi,
Yeah, you can do it, you need build a PhaseInterceptorChain and add
Interceptors what you want to use, then doInterceptor against your
SoapMessage, some code like
PhaseInterceptorChain inChain = new
PhaseInterceptorChain(pm.getInPhases());
List<Interceptor<? extends Message>> inList = new
ArrayList<Interceptor<? extends Message>>();
inList.add(new Interceptor1());
inList.add(new Interceptor2());
...
inChain.add(inList);
inChain.doIntercept(soapMessage);
Freeman
On 2011-3-1, at 上午12:40, eaudet wrote:
Hi,
Is it possible to call the interceptor chain from a pojo? I want
Apache CXF
to process my soap messages in non-server context. In other words, I
want to
use CXF un/marshalling power but without calling a webservice
enpoint. I am
reading about custom invokers. Am i reading the good thing?
What I have from using wsdl2java tool is:
Web service Consumer -> Enpoint -> Interceptor chain ->....
What I want (no jetty or other web server):
Pojo -> Interceptor chain ->.....
Thanks,
- Erick
--
View this message in context:
http://cxf.547215.n5.nabble.com/Calling-Interceptor-chain-directly-tp3403562p3403562.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org