IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

To develop well-formed and valid requests from your client to the target Web service, you need to know the available methods of the Web service, the data types it uses, the interface to the service, the acceptable format of requests, the format of generated responses, etc. All this data is presented in the WSDL descriptor of the target Web service.

IntelliJ IDEA can generate the necessary client-side XML-Java bindings based on the desired WSDL descriptor, thus providing you with efficient coding assistance in developing client requests. You only need to specify the URL address of the WSDL descriptor, IntelliJ IDEA will retrieve the necessary data and generate Java classes.

Java code generation is configured in the Generate Java Code from Wsdl or Wadl dialog box, that primarily opens upon enabling the Web service client development support.

To configure generation of the client-side XML-Java binding
  1. Open the Generate Java Code from Wsdl or Wadl dialog box by doing one of the following:
    • Create a module and enable support of the Web Services client in it.
    • 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.
  2. In the Web Service WSDL URL field, specify the URL address of the desired Web service WSDL descriptor.

    Tip

    If the Status read only field informs you about a WSDL URL connection exception, make sure the target Web service is running and the URL address of its WSDL descriptor is correct.

  3. From the Output Path drop-down list, select the directory to place the generated files in.
  4. In the Package Prefix drop-down list, specify the package to place the compiled Java classes in.
  5. For the client side of an Apache Axis Web service, specify additional configuration options for the code generation process using the following fields:
    • Type Mapping Version
    • Generate TestCase
    • Generate Classes for Schema Arrays
    • Generate Unreferenced Elements
    • Support Wrapped Document/Literal Style

See Also

Concepts:

Procedures:

Reference:

Web Resources: