Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The stub generation functionality is bundled by default in the WSO2 Application Server and WSO2 Mashup Server products. If it is not included in your product distribution, you can add it by installing the above feature using the instructions given in section Feature Management.  

Follow the instructions below to invoke the tool.

1. Log on to the product's Management Console and select "JavaScript Stub Generator" in the "Tools" menu.

Image RemovedImage Added

2. The "JavaScript Stub Generator" window appears.

Image RemovedImage Added

The required WSDL can be uploaded as a file or can be given as a URL, where the stubs can be generated according to the E4X specification or according to DOM.

...

3. Once a WSDL file or WSDL file URL is given, click the "Generate from File" or "Generate from URL" button associated with the relevant upload option. You can see the generated stub in the text area. For example,

Image RemovedImage Added

Shown below is how this script is imported to a Mashup.

...

Edit the mashup and include an import statement to bring in your stub as follows:

Image RemovedImage Added