Chapter 6 Using the wstool Command Line Tool
This section contains information on the wstool command for generating a WSDL document. The command syntax, a list of options, and three examples of its usage are shown in this section.
gen_wsdl
[options] -tns targetNamespace -soapaddr soap
address [entity type:entity name...]
The following table lists command options, descriptions, defaults, and whether or not the option is required.
Option | Description | Default | Required |
---|---|---|---|
-tns | The target namespace of the Definitions elements. | -- | Yes |
-soapaddr | The location attribute of the SOAP address. | -- | Yes |
entity type:entity name | One or more pairs of a valid EAServer entity type and name. | --
Package, Component and Method are the valid entity types. |
Yes, unless -entityFile is used. This must be the last entry on the command line. |
-entityFile filename | Contains the EAServer entity type:entity name pairs. | -- | No, unless entity type:entity name is not used. |
-append | Appends new service description to the existing WSDL document. | -- | No |
-defName name | The Definitions' name. | WebServices | No |
-eType extension type | The Extensibility element type. | soap
No other types supported |
No. |
-help -? |
Either option prints help text and then exits. | -- | No |
-version | Prints the version of the gen_wsdl command tool and then exits. |
-- | No |
-d | Writes debug statements to the Jaguar.log file in the EAServer bin directory. | No logging. | No |
-t | Writes trace statements to the Jaguar.log file in the EAServer bin directory. | No tracing. | No |
To create a WSDL document from command-line entities:
wstool gen_wsdl-defName MyWebServices -tns http://servername/serverlocation -soapaddr http://servername/WEBSERVICES/SOAP Package:JaguarPackageNameA Component:JaguarPackageNameB/JaguarComponentNameB Method:JaguarPackageNameC/JaguarComponentNameC/JaguarMethodNameC
To create a WSDL document from an entities file:
wstool gen_wsdl -defName MyDefinition -tns http://servername/serverlocation-soapaddr http://servername/WEBSERVICES/SOAP -entityFile entities.txt
To append a new service description to an existing WSDL file:
wstool gen_wsdl -defName MyWebServices -append -tns http://servername/serverlocation -soapaddr http://servername/WEBSERVICES/SOAP Package:JaguarPackageNameD
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |