IntelliJ IDEA 2018.2 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.

Item

Description

Web Service Client Type

Web service wsdl url

Use this drop-down list to specify the location of the target Web service WSDL descriptor.

All

User Name and Password

In 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 Path

Use this drop-down list to specify the module source directory to place the generated files in.

All

Package Prefix

Use this drop-down list to specify the package for the compiled Java classes.

All

Output Mode

Use 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 Version

Use 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 Extensions

Select this checkbox to have Java code generated for the extension points contained in the WSDL file.

All

Generate TestCase

Select this checkbox to have an additional JUnit test case class generated for testing purposes.

Apache Axis

Generate Classes for Schema Arrays

Do one of the following:
  • Select this checkbox to have classes generated for schema arrays.

  • Clear the checkbox to have Java arrays used.

Apache Axis

Generate Unreferenced Elements

Select this checkbox to have Java code generated for unreferenced (declared in the schema but not used) elements as well.

Apache Axis

Support Wrapped Document/Literal Style

Use this checkbox to configure processing of "wrapped" document/literal, which is a document literal variation, that wraps parameters as children of the root element.
  • When this checkbox is cleared, no special treatment is applied to "wrapped" document/literal style operations.

  • When the checkbox 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 checkbox is selected.

Apache Axis

Status

View the information in this read-only field to track and improve discrepancies when configuring the code generation procedure.

All

Last modified: 25 October 2018

See Also