This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • WSDL to Javascript
Skip to end of metadata
Go to start of metadata

WSDL to Javascript


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


 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 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 options used to validate WSDL file are reviewed in the following table.




Displays the online help for this utility and exits.


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


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.


Specifies the URL of an XML catalog to use for resolving imported schemas and WSDL documents.


Specifies the directory into which the generated code is written.


Instructs the tool to validate the WSDL document before attempting to generate any code.


Displays the version number for the tool.


Displays comments during the code generation process.


Suppresses comments during the code generation process.


Specifies the location of the WSDL document from which the code is generated.


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.

  • No labels

1 Comment

  1. Is it possible to take a .NET WCF service and generate a javascript proxy for it? Using wsdl2js, I get the following error: 

    Service {}ReactCourseService does not contain any usable ports