IntelliJ IDEA 14.1.0 Help

Generate Java Code from WSDL or WADL Dialog

The dialog box opens after you create a Java module and enable Web services client development in it. To access the dialog box at any time during the development, select the desired client module in the Project view and choose WebServices | Generate Java Code from Wsdl or Wadl on the context menu.

Use the dialog box to have the client-side XML-Java bindings generated based on the desired WSDL descriptor of the target Web service.

Technically, IntelliJ IDEA generates Java code from WSDL using third party libraries that are controlled through a command line. This command line is assembled of the data you enter in the fields of this dialog box.

ItemDescriptionWeb Service Client Type
Web service wsdl urlUse this drop-down list to specify the location of the target Web service WSDL descriptor.All
User Name and PasswordIn these text boxes, type the credentials for accessing the WSDL URL address. The fields are mandatory if the WSDL location requires authentication.JAX-WS
Output PathUse this drop-down list to specify the module source directory to place the generated files in.All
Package PrefixUse this drop-down list to specify the package for the compiled Java classes.All
Output ModeUse this drop-down list to specify whether you want to generate Java code only for the client side or for the server side as well. Apache Axis
Type Mapping VersionUse this drop-down list to specify the default type mapping registry for mapping an XML qualified name to a Java class, using a specified Deserializer. The available options are:
  • 1.1
  • 1.2
Apache Axis
Allow ExtensionsSelect this check box to have Java code generated for the extension points contained in the WSDL file. All
Generate TestCaseSelect this check box to have an additional JUnit test case class generated for testing purposes.Apache Axis
Generate Classes for Schema ArraysDo one of the following:
  • Select this check box to have classes generated for schema arrays.
  • Clear the check box to have Java arrays used.
Apache Axis
Generate Unreferenced ElementsSelect this check box to have Java code generated for unreferenced (declared in the schema but not used) elements as well.Apache Axis
Support Wrapped Document/Literal StyleUse this check box to configure processing of "wrapped" document/literal, which is a document literal variation, that wraps parameters as children of the root element.
  • When this check box is cleared, no special treatment is applied to "wrapped" document/literal style operations.
  • When the check box is selected, a set of conditions is considered to decide whether top level elements are "unwrapped" and each component of the element should be treated as an argument of the operation. The following conditions are considered:
    • An input message consists of single part.
    • This single part is an element.
    • The element has the same name as the operation.
    • The element's complex type has no attributes.

By default, the check box is selected.

Apache Axis
StatusView the information in this read-only field to track and improve discrepancies when configuring the code generation procedure.All

See Also

Last modified: 14 July 2015