z/OS DFSMSrmm Application Programming Interface
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Sample Java web service client

z/OS DFSMSrmm Application Programming Interface
SC23-6872-00

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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014