NonStop SOAP for Java User's Manual

Using the Administration Tools
NonStop SOAP for Java User’s Manual523860-001
5-2
Using Java Mode
Using Java Mode
In Java mode, NskSoapManager assists you in exposing and deploying the methods of
a Java class which is locatable by using the program’s CLASSPATH.
1. Use these commands to start the NskSoapManager tool in Java mode.
a. The program looks for the fully-qualified Java class name.
Specifying an invalid file name or non-existent class name ends the program.
However, if you entered nothing, you are given an option to retry or exit the
program.
NskSoapManager then prompts you to select the methods to be exposed from
the given Java class. The list of methods in class is displayed, and you must
choose which methods should be exposed. If a selection is invalid, an error is
displayed and you are given the option to retry or exit.
Once a selection is made, you are required to confirm the selected methods, or
to go back and re-select the methods.
2. Create a WSDL file for the Java class. To create a WSDL file, NskSoapManager
needs the following:
Note. Before starting the NskSoapManger tool, verify that the class to be deployed is in the
CLASSPATH. Also, verify that you have sourced the env.sh file located in the
/usr/tandem/nssoap/T2764V10/etc directory.
OSS: cd usr/tandem/nssoap/t2764V10/bin
OSS: ./soapMgr -c className
The class 'java.lang.Object' has the following methods:
Method[0] = notifyAll
Method[1] = toString
Method[2] = equals
Method[3] = wait
Method[4] = clone
Method[5] = finalize
Method[6] = java.lang.Object
Method[7] = hashCode
Method[8] = getClass
Method[9] = notify
Method[10] = registerNatives
Select the methods that you want to expose in the SOAP service: 1,3-5
You have selected the following methods:
Method[1]=toString
Method[3]=wait
Method[4]=clone
Method[5]=finalize
Press C to change your selection or any other key to continue: