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.

Option

Description

-?,-h,-help

Displays the online help for this utility and exits.

-wv

Specifies the WSDL version the tool expects. The default is WSDL 1.1. The tool can also use WSDL 1.2.

-p

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.

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.