Managing Services

Apache-SOAP provides an administration tool to manage services. There are two clients to service manager: an HTML one used via a browser and a command-line tool.

NOTE: If you had previously deployed services to an older version of Apache-SOAP, then this version may not recognize those services because the class that was being serialized to represent services has changed since then.

Running the Server Side Admin Tool to Manage Services

With the Apache-SOAP Administration Tools it is possible to use a Web browser to deploy and un-deploy services and to review the list and the definitions of the services deployed on a given SOAP server.

Point your browse to http://hostname:port/soap/admin (see above) and you will get the "Apache-SOAP Admin" screen with three options:

The usage of these functions is immediate once one understands the nature of the information required for deploying a service. In the next section we describe this information.

Service Deployment Information

We review here the information that defines a deployed service. This information must be provided when using the Deploy function, and can be browsed using the List function. We refer to this information as "properties" of the service.

Using the Command Line Tool to Manage Services

The command line tool is run by typing java org.apache.soap.server.ServiceManagerClient. Running this yields:

% java org.apache.soap.server.ServiceManagerClient
Usage: java org.apache.soap.server.ServiceManagerClient [-auth username:password] url operation arguments
where
        username and password is the HTTP Basic authentication info
        url is the Apache SOAP router's URL whose services are managed
        operation and arguments are:
                deploy deployment-descriptor-file.xml
                list
                query service-name
                undeploy service-name

To deploy a service, for example, type:

% java org.apache.soap.server.ServiceManagerClient http://hostname:port/soap/servlet/rpcrouter deploy foo.xml

where foo.xml is the deployment descriptor and the URL is appropriate for your installation.

Note: If you set the SOAPInterfaceEnabled option to false in the soap.xml file, then users will be prevented from being able to manipulate services via the ServiceManagerClient. However, they will still be able to do so through the admin JSP pages. For more information on controlling the ServiceManager, look here.

Last updated 6/28/2001 by Bill Nagy <nagy@watson.ibm.com>.