Hi,

The wsdl2java tool just generate client&server side stub code for you, it's build time thing.
Interceptors is cxf run time thing.
The default PhaseInterceptorChain have all interceptors to do like unmarshall and service invocation, so if you want to customize the behavior of PhaseInterceptorChain(such as what you want is only marshal/unmarshal but no real invocation), then you need build PhaseInterceptorChain and add necessary interceptors yourself, the default PhaseInterceptorChain doesn't work in this case.

Freeman
On 2011-3-2, at 上午3:24, eaudet wrote:

Is it possible to use the default PhaseInterceptorChain? I mean after using the wsdl2java tool, I have a complete running client and server classes. To my understanding, it has all the interceptors and unmarshalling etc that I need. Can't I just create a main() method in a java class that will call
existing interceptors?


--
View this message in context: 
http://cxf.547215.n5.nabble.com/Calling-Interceptor-chain-directly-tp3403562p3405559.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

Reply via email to