I found the answer to my own question by googling. Deepal essentially answered this question in a post from last July. To get my ServletContext I don't need a ServletEndpoingContext. I can just call msgCtx.getProperty(Constants.SERVLET_CONTEXT);
As for the other constant, WSDLGEN_SERV_LOC_URL, it appears that it was used to tell the app where to put the generated wsdl (I am taking over someone else's code; that's why I am not sure) and that is probably obsolete in Axis2 ________________________________ From: Masin, Valerie [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 5:11 PM To: axis-user@ws.apache.org Subject: [AXIS2] Where did MC_SERVLET_ENDPOINT_CONTEXT go? I am switching from Axis1 to Axis2. In Axis1 I have code that uses these constants. However there don't seem to be Axis2 equivalents for them. org.apache.axis.Constants.MC_SERVLET_ENDPOINT_CONTEXT org.apache.axis.MessageContext.WSDLGEN_SERV_LOC_URL Here's how I am trying to use the first one: public InvocationResponse invoke(MessageContext context) throws AxisFault { ServletEndpointContext servletEndpointContext = (ServletEndpointContext) context .getProperty(Constants.MC_SERVLET_ENDPOINT_CONTEXT); ServletContext ctx = servletEndpointContext.getServletContext(); ... return InvocationResponse.CONTINUE; } Thanks