Hi all,
I had to develop a SOAP access to a service which runs on Jetty Servlet Engine. We used SOAP to integrate a client, which runs on Win2k deep in the system. The service object deployed on SOAP needs to know the IP of the client, so it had to have access to the servletContext and the request object of the embedding web server (Jetty). Thus, I made this changes: in the RPCRouterServlet's post method I synchronized the provider invokation: synchronized(provider){ provider.locate( dd, callEnv, call, call.getMethodName(), fullTargetID, reqCtx ); provider.invoke( reqCtx, resCtx ); } I added the class WebContextTargetObject to the org.apache.soap.server Package: /* * WebContexTargetObject.java * * Created on 23. Juni 2002, 18:05 */ package org.apache.soap.server; import javax.servlet.*; import javax.servlet.http.*; /** * * @author szalay * @version */ public class WebContextTargetObject { protected ServletContext servletContext; protected HttpServletRequest request; /** Creates new WebContexTargetObject */ public WebContextTargetObject() { } /** * setter method for ServletContext * * @param ServletContext context */ public void setServletContext(ServletContext c){ servletContext = c; } /** * getter method for servlet context * * @returns ServletContext context */ public ServletContext getServletContext(){ return servletContext; } /** * setter method for request */ public void setRequest(HttpServletRequest request){ this.request = request; } /** * getter method for request */ public HttpServletRequest getRequest(){ return this.request; } } Then I added this bit of code to the RPCJavaProviders locate-Method: if (targetObject instanceof WebContextTargetObject){ WebContextTargetObject wcto = (WebContextTargetObject) targetObject; wcto.setServletContext(context); wcto.setRequest((HttpServletRequest) reqContext.getProperty(Constants.BAG_HTTPSERVLETREQUEST)); } My webService object then is a subclass of WebContextTargetObject, and so I can access the servletContext and the request in the deployed webService object. Does anyone know how this could "officially" whitout changes to provider and rpcrouter code? Thanx for help. Michael -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>