The sample client code needs to be compiled with a Java™ compiler (javac) to obtain the executable
application. It contains:
- Some general methods to handle the Web Service endpoint and create
a call.
- A client-side method to access the Web Service method runCommandXmlZip()
communicating with byte arrays.
- A client-side method to access the Web Service method runCommandXML()
communicating with strings arrays.
- A main program that:
- Handles the passed command line parameters.
- Zips the TSO subcommand to a byte array.
- Creates a client object.
- Sets the end point.
- Calls the Web service.
- Unzips the results and optionally writes to a file.
- For reference, there is code that shows how to pass both commands
and data as strings.
Usage:
java rmmSampleWSClient -i ip_address [-p port] [-u userid:password] [-d]
[-o output_file] [-x xml_schema] [-svwz] command
where:
-i = IP-address or domain name of the remote server
-p = Port number of the web service (default: 8080)
-u = Authorized user credentials, separated by a colon (default: none)
-o = Output file name (default: Screen output)
-d = Debug mode, for network connection test only
-x = XML schema file to be used for validation (default: No validation)
-s = Short XML response (default: Long XML response)
-v = Verbose mode On (default: Off)
-w = Use WebSphere® server (default: Use Tomcat server)
-z = Zipped request (default: Unzipped request)
command = A valid DFSMSrmm TSO subcommand,
for example, LISTCONTROL OPTION
A sample Java web service
client, EDGSJWS1, is provided in /usr/lpp/dfsms/rmm/rmmSampleWSClient.java.
For information on how to use the DFSMSrmm Web service sample client,
see the z/OS DFSMSrmm Implementation and Customization Guide.