we basically deploy a servlet in our war file and specify it to load on
startup in the web.xml file.  include your deployment descriptors, the
soap.jar file, and this servlet in your war.  then make the necessary
changes to your web.xml to reference the soap servlets.

here's a code snippet from the init method.  we actually have the file names
configured in a properties file and a loop that goes through all of them,
but this is a simple example...

import org.apache.soap.server.http.*;
import org.apache.soap.server.*;

public void init(ServletConfig arg0) throws ServletException
{
  try
  {
    System.out.println("Loading services...");

    ServiceManager serviceManager =

ServerHTTPUtils.getServiceManagerFromContext(config.getServletContext(),
null);

    InputStream input =

this.getClass().getClassLoader().getResourceAsStream("descriptor.xml");
    InputStreamReader reader = new InputStreamReader(input);
    DeploymentDescriptor descriptor = DeploymentDescriptor.fromXML(reader);

    serviceManager.deploy(descriptor);

    System.out.println("Services loaded!");
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
  }
}


> -----Original Message-----
> From: Dustin Sallings [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 14, 2003 8:58 PM
> To: [EMAIL PROTECTED]
> Subject: unattended deployment docs/example
>
>
>
>       Is there an example out there for a deployment that doesn't involve
> the admin web thing?  I basically want to map the servlet, configure
> some RPC handlers, and have it go.
>
>       I've seen reference to a soap.xml as well as other configuration
> files, but I haven't been able to find any complete documentation or
> examples that show me what I need to do to get this stuff deployed.
>
>       Thanks.
>
> --
> Dustin Sallings
>

Reply via email to