On Monday 30 September 2002 18:34, Ricky Ho wrote: > How does the handler detect the incoming request belongs to some > existing sessions ?? (is it assessible via MessageContext ?) And > then throw a SOAP Fault if not.
The class which implements the service is loaded in session scope, that means every session gets its own instance of the class. You can simply set a member variable. Alternatively (and probably better, since then it is persistent between tomcat restarts), you can set a Session property: HttpServletRequest srq = (HttpServletRequest)m. getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); if (srq == null) initError("HttpServletRequest not found"); HttpSession httpSession = srq.getSession(false); if (httpSession == null) initError("HttpSession not found"); Session currentSession = new AxisHttpSession(httpSession); Session.set("DidTheFirstCallHappen", true) Cheers! -- Matthias Brunner <[EMAIL PROTECTED]> PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501 Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc