NonStop SOAP for Java User's Manual

NonStop SOAP for Java User’s Manual523860-001
7-1
7
Samples Deploying NonStop SOAP
for Java
The NonStop SOAP for Java samples are located under the following directory:
/usr/tandem/nssoap/T2764V10/samples
An individual sample may consist of a number of .java and .class files contained in a
separate child directory under the samples directory.
The individual directories contain:
DeploymentDescriptor.xml: An XML file containing the deployment descriptor for
that sample. Most of the samples can be run using this deployment descriptor
unchanged. But for some specific samples, you need to edit the XML file (for
example, for SOAP-EJB samples, you need information for the
ContextProviderURL, which is installation specific)
.java and .class files: The .java files contains the code for the SOAP client and
SOAP service, including some helper classes. Some samples (for example,
SOAP-EJB samples), may contain just the SOAP client files. The .class files are
the compiled .java files.
README: The readme file contains details about the sample. For example, using
the sample, any pre-requisites to running the sample, and building the sample files.
run.sh: A script file that does the following:
deploys the service described by the DeploymentDescriptor.xml file.
verifies that the service deployed is present.
executes the client .class file and display the results.
undeploys the service.
verifies that the service is undeployed.
The script defaults to a pre-defined SOAP server URL which you should change to
your SOAP server location.
Deploying a Java Class as a Web Service
This section discusses the deployment of a Java class (that you might already have)
as a Web service. To deploy a Java class, you have two choices:
Deployment Using NskSoapManager on page 7-2
Deployment Using Apache SOAP Admin on page 7-2