Hi Ashish,
Here is how you access HttpSession inside Axis webservice.
MessageContext context =
MessageContext.getCurrentMessageContext();
HttpServletRequest req = (HttpServletRequest)
context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
HttpSession session = req.getSession(true);
Thanks
Raghu
________________________________
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007 4:01 PM
To: [email protected]
Subject: How to accession HttpSession inside Axis Webservice
Hi
Is it possible to access HttpSession inside SOAP webserice
i am using
MessageContext msgContext = MessageContext.getCurrentContext();
ServletContext oCtx =
((HttpServlet)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLET
)).getServletContext();
to access servlet context, but is it possible to access HttpSession
When i deploy a web service, does it have a HttpSession to start with?
Ashish