MyEclipse: Jax-ws tutorial done, but ...

korayuygun - Jun 11, 2009 - 04:49 PM
Post subject: Jax-ws tutorial done, but ...
Hello,
the functionnalities offered by MyEclipse to create web services are really fast to implement. My problem is that after I have installed webservices on my Weblogic server I wanted to followe this tutorial http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html to implement user session management but I dont know how to do.

Code:
  @Resource
  private WebServiceContext wsContext;
  public String doLogin(String login, String password) {
   LOGGER.debug("doLogin() - start");
      
   String result = "sdfgh";
   int state;

   try {
      MessageContext mc = wsContext.getMessageContext();
      HttpSession session = ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession();

   } catch (Exception e) {
      LOGGER.error(e.getMessage(), e);
      result = e.getMessage();
   }
    
   LOGGER.debug("doLogin() - end");
   return result;
  }


but wsContext is null.
Please help.

Thanks in advance,
Koray.
korayuygun - Jun 11, 2009 - 04:50 PM
Post subject: RE: Jax-ws tutorial done, but ...
Sorry, I have not posted this in the right forum.
support-nipun - Jun 26, 2009 - 03:53 PM
Post subject: RE: Jax-ws tutorial done, but ...
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=23784&sid=831ced3925a5ceaebddc04aa0c8d50be
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits