Working with wstool and wstkeytool  Entity identifiers

Chapter 8: Using wstool, wstkeytool, wstant, and wstkeytoolant

wstool and wstkeytool syntax

The syntax for wstool and wstkeytool is:

wstool or wstkeytool [connection-arguments] [command]

Where:

For example, to connect to the server running on “paloma” at HTTP port “9005”, using account “jagadmin” with password “secret” enter:

wstool -h paloma -n 9005 -p secret or wstkeytool -h paloma -n 9005 -p secret

You can omit the -u flag because jagadmin is the default user name.

Notewstool and wstkeytool command options are not case sensitive.


Return codes

wstool and wstkeytool commands return the following codes:

0 – if the command runs successfully, and the result is true/success

1 – if the command runs successfully, and the result is false/failure

2 – if an exception is thrown during the running of the command


Help

You can display usage for any wstool or wstkeytool command by using the help option. For example to display all of the wstool or wstkeytool commands, enter:

wstool help or wstkeytool help

You can also display individual command help. For example, to display options and valid usage for the wstool delete command, enter:

wstool help delete

To display options and valid usage for the wstkeytool deleteCert command, enter:

wstkeytool help deleteCert 

Verbose

All wstool and wstkeytool commands include the verbose option, which displays stack trace information, if any is generated, when you run the command. The default value is false. For example, to display stack trace information for the wstool delete command, enter:

wstool delete -verbose true Service:CollectionName/WebServiceName




Copyright © 2005. Sybase Inc. All rights reserved. Entity identifiers

View this book as PDF