Hi,

I'm new to CXF and was wondering how I could migrate the XFire code I have
which is similar to the first example code given on this page..

http://xfire.codehaus.org/Service+Router

>From what I've read, the invoke() method in the Handler has been replaced by
the handleMessage() method of the Interceptor. The problem I have is how I
could get hold of the header Element. Can you tell me the CXF equivalent of
this XFire code?

     Element header = context.getInMessage().getHeader();

The information I get from the header gets stored in the object holder in
the Exchange's session.  To access the object I stored in session from the
Web Service, do I access it using this method?

    @Resource
    private WebServiceContext context;
    void mymethod()  {
       MessageContext messageContext = context.getMessageContext();
       HttpServletRequest request = (HttpServletRequest)
messageContext.get(MessageContext.SERVLET_REQUEST);
       HttpSession session = request.getSession();
       ..session.getAttribute(..)
       ...

Thanks for your help.

Regards,
Gerson

Reply via email to