WSDL to Javascript

Name

wsdl2js - takes a WSDL document and generates Javascript code from which to implement a service.

Synopsis

 wsdl2js  -? -help -h  -wv <wsdlVersion> -p <wsdlNamespace=jsPrefix> -catalog <catalogUrl> -d <outDir> -validate -v  -verbose -quiet  {wsdlUrl}

Description

wsld2js takes a WSDL document and generates Javascript code from which to implement a service. The WSDL document must have a valid portType element, but it does not need to contain a binding element or a service element.

Options

The options used to validate WSDL file are reviewed in the following table.

OptionDescription
-?,-h,-help Displays the online help for this utility and exits.
-wvSpecifies the WSDL version the tool expects. The default is WSDL 1.1. The tool can also use WSDL 1.2.
-pSpecifies 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.
-catalogSpecifies the URL of an XML catalog to use for resolving imported schemas and WSDL documents.
-dSpecifies the directory into which the generated code is written.
-validateInstructs the tool to validate the WSDL document before attempting to generate any code.
-vDisplays the version number for the tool.
-verboseDisplays comments during the code generation process.
-quietSuppresses comments during the code generation process.
wsdlUrlSpecifies the location of the WSDL document from which the code is generated.

Examples

wsdl2js hello_world.js
wsdl2js -wv 1.2 hello_world12.wsdl
wsdl2js -d javascript hello_world.wsdl

See Also

idl2wsdl, java2js, java2ws, wsdl2corba, wsdl2java, wsdl2service, wsdl2soap, wsdl2xml, wsdlvalidator and xsd2wsdl.