Managing Services

Needs to be updated for 2.1!

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 Apache-SOAP server, then this version will not recognize those services because the class that was being serialized to represent services has changed.

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 (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 url operation arguments
where
        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.