Hi All,

I would like to call an JAX handler chain from within an AXIS2 Handler.
Ideally I would like to ruse the AXIS2
HandlerInvokerUtils.invokeInboundHandlers() / invokeOutboundHandlers()
Methods of the AXIS2 HandlerInvokerUtils class. Or at least somehow
reuse the Axis2 HandlerProcessor class.

But: I am somehow not able to create an jaxws EndpointDescription. The
problem seems to be that my deployed service is not a JAX-WS service, it
is just a normal AXIS2 service. It does not have the jax-ws annotations
and I also don't have generated stubs/skeletons for it.

Becaus of the missing EndpointDescription I am running into NullPointer
exceptions. My current code looks like this:

javax.xml.ws.handler.MessageContext jaxwsMsgCtx;
org.apache.axis2.jaxws.core.MessageContext jaxwsCtx = new
org.apache.axis2.jaxws.core.MessageContext(
                                msgCtx);
// !!! here probably I have to set the EndpointDescription ??????
HandlerInvokerUtils.invokeInboundHandlers(jaxwsCtx.getMEPContext(),
                                        m_jaxwsHandlerList,
HandlerChainProcessor.MEP.REQUEST,
                                        false);

Does anyone have an idea how this can be done?

Thanks + Best Regards,
Christine
 
Software AG - Sitz/Registered office: Uhlandstra?e 12, 64297 Darmstadt, 
Germany, - Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/ 
Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), David 
Broadbent, Mark Edwards, Dr. Peter Kurpick, David Mitchell, Arnd Zinnhardt; - 
Aufsichtsratsvorsitzender/ Chairman of the Supervisory Board: Frank F. Beelitz 
- http://www.softwareag.com

Reply via email to