wsdl2js — generates JavaScript consumer code from a WSDL document
wsdl2js
[[-?] | [-help] | [-h]] [-wv wsdlVersion
] [-p {wsdlNamespace
[=jsPrefix
]}...] [-catalog catalogUrl
] [-d outDir
] [-validate] [-v] [[-verbose] | [-quiet]] wsdlUrl
wsld2js takes a WSDL document and generates JavaScript code from which to implement a consumer capable of interacting with a service provider implementing the described service. The WSDL document must have a valid portType
element, but it does not need to contain a binding
element or a service
element.
The arguments used to manage the code generation process are reviewed in the following table.
Option | Interpretation |
---|---|
-?
| Displays the online help for this utility. |
-help
| |
-h
| |
-wv | Specifies the WSDL version the tool expects. The default is WSDL 1.1. The tool can also use WSDL 1.2. |
-p wsdlNamespace [=jsPrefix ] | Specifies a mapping between the namespaces used in the WSDL document and the prefixes used in the generated JavaScript. This argument can be used more than once. |
-catalog | Specifies the URL of an XML catalog to use for resolving imported schemas and WSDL documents. |
-d | Specifies the directory into which the generated code is written. |
-validate | Instructs the tool to validate the WSDL document before attempting to generate any code. |
-v | Displays the version number for the tool. |
-verbose | Displays comments during the code generation process. |
-quiet | Suppresses comments during the code generation process. |
wsdlUrl | Specifies the location of the WSDL document from which the code is generated. |