IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

This approach is applicable if you are going to develop the client side for a Web service of one of the following types:

  • GlassFish/JAXWS2.X RI/Netro 1.X/JWSDP2.0.
  • Apache Axis.
  • RESTful Web Service.

IntelliJ IDEA creates the relevant Web services client module structure and identifies all the necessary libraries automatically through the dedicated Web Services Client facet. Besides, IntelliJ IDEA either locates the previously downloaded required libraries or suggests to download them to the location of your choice.


A Web Services Client facet can be added to the module directly without a parent Web facet.

To enable web service client development support through a dedicated facet, do one of the following
  • Create a Java module with the dedicated Web Services Client facet. Besides setting up the relevant module structure and providing all the necessary libraries automatically, IntelliJ IDEA will create a sample package with a HelloWorldClient class, which you can use as an example or populate it as necessary to develop your application.
  • Add the dedicated facet to an existing module.


In either case, IntelliJ IDEA will download the predefined WS engine implementation version.

To create a module for a web service client application
  1. Create a Java module from scratch.

    On the first page of the wizard, select Java Module, not Web Module. (The Web module type is for developing web applications using programming languages other than Java, for example, PHP, or JavaScript, or markup languages.)

  2. On the fourth, Technologies, page of the wizard, select the Web Services Client check box.
  3. In the WebServices Client area, select the desired WS engine implementation in the Version drop-down list. The available options are:
    • GlassFish/JAX-WS 2.X RI/Metro 1.X/JWSDP 2.0 for developing the client side of JAX-WS Web services.
    • Apache Axis for developing the client side of Apache Axis Web services.
    • RESTful Web Services for developing the client side of RESTful Web services.
  4. The Libraries area shows all the files that are required for development but are currently missing in the module. To configure the required libraries, do one of the following:
    • To have the missing files downloaded and arranged in a library, select the Download Missing Files to check box and specify the target location in the text box below. Type the path manually or click the Browse button browseButton.png and choose the desired location in the Directory for Downloaded Libraries dialog box, that opens. Then specify the name of the library to be created and its level: project, module, or global.


      The library constituted of the downloaded files will be available for using in other modules.

    • To use one or several libraries, created from previously downloaded files, click the Use Libraries button and select the check boxes next to the desired WS engine implementation libraries in the Select Libraries dialog box, that opens.
    • To have specific files from various locations used, click the Pick files from disk button and specify the desired files in the Select Paths dialog box, that opens.


      For multiple selection, keep pressed.

To add the dedicated facets to an existing module
  1. Open the Module Settings dialog box.
  2. In the Modules node, right-click the relevant module.
  3. From the New context menu, select Web Services.
  4. In the Choose WS Engine drop-down list, select the desired Web service type. The available options are:
    • Apache Axis
    • Apache Axis2
    • GlassFish/JAX-WS 2.X RI/Metro 1.X/JWSDP 2.0
    • RESTful Web Services
    • JAX_RS (Jersey)
    • XFire 1.X/CXF
    • JAX-RPC
    • JBossWS
    • WebSphere 6.x
  5. If some additional libraries are required, the corresponding warning message is displayed. Click Fix. The necessary libraries will be downloaded and added automatically.


If any additional configuration for the selected WS engine is required, the Web Services page of the Settings dialog box opens. Specify the required WS engine settings and click OK.

See Also




Web Resources: