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.
- 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.
Create a Java module from scratch.
- On the fourth, Technologies, page of the wizard, select the Web Services Client check box.
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.
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
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 Ctrl pressed.
- 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 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.
- Open the Module Settings dialog box.
- In the Modules node, right-click the relevant module.
- From the context menu, select .
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
- WebSphere 6.x
- If some additional libraries are required, the corresponding warning message is displayed. Click Fix. The necessary libraries will be downloaded and added automatically.
- Creating Projects
- Adding Modules to a Project
- Configuring Module Dependencies and Libraries
- Web Service Clients
- Web Services
- New Project Wizard
- Enable Web Services Support Dialog
- Web Services Reference
- Web Services Facet Page