Both handlers that I have below implement SOAPHandler<SOAPMessageContext>.
I was expecting handler1 to be invoked before handler2 (config below),
during the incoming call to the web service and reverse in the outgoing
call.
But the opposite seems to be happening where handler 2 is getting invoked
before handler 1 during the incoming call. I just wanted to know that this
is the expected behavior in which case my assumption was incorrect.

Thanks
Sunil.


On Mon, Jul 23, 2012 at 7:02 PM, Mark Streit <[email protected]> wrote:

> Might want to look at these on Glen Mazza's blog:
>
> http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial
>
> http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors
>
> HTH
>
> Mark
> On Jul 23, 2012 5:49 PM, "Sunil Bapat" <[email protected]> wrote:
>
> > I have a CXF web service (CXF 2.6.1 or 2.3.1) defined in spring as shown
> > below.
> > When this web service is called, I notice that handler 2 is called before
> > handler 1 during the incoming call.
> > Is this the expected behavior? I was expecting handler 1 to be called
> > before handler 2. Just wanted a clarification before I reverse the order.
> >
> > <jaxws:endpoint id="testEndpoint"
> >                    address="/TestService"
> >                    implementor="#testBean">
> >    <jaxws:handlers>
> >       <ref bean="handler1" />
> >       <ref bean="handler2" />
> >    </jaxws:handlers>
> > </jaxws:endpoint>
> >
> > Thanks
> > Sunil.
> >
>

Reply via email to