Enable web service client development support
To develop a web service client in IntelliJ IDEA, configure the corresponding module and supply all required libraries. The instructions on this page are applicable for developing a web service client of the following types:
GlassFish/JAXWS2.X RI/Netro 1.X/JWSDP2.0
Apache Axis
RESTful Web Service
This functionality relies on the Jakarta EE: Web Services (JAX-WS) plugin, which you need to install and enable.
note
The Jakarta EE: Web Services (JAX-WS) plugin is not available in IntelliJ IDEA Community Edition.
Press CtrlAlt0S to open settings and then select Plugins.
Open the Marketplace tab, find the Jakarta EE: Web Services (JAX-WS) plugin, and click Install (restart the IDE if prompted).
Click New Project on the Welcome screen or select File | New | Project.
From the Generators list, select Jakarta EE.
Name the new project, select a build tool, a language you want to use, and select the Web application project template.
Select the Create Git repository option to place the new project under version control.
From the JDK list, select the JDK that you want to use in your project.
If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory.
If you don't have the necessary JDK on your computer, select Download JDK.
On the next step of the wizard, select the Jakarta EE version to be supported.
From the Dependencies list, select XML Web Services.
Click Create.
Open the build file in the editor (pom.xml or build.gradle depending on the build tool that you use in your project).
Add the following dependency, but make sure to change the version according to your project's requirements:
MavenGradlePress CtrlShift0O to import the changes.
For more information about working with build tools, refer to Maven or Gradle.
IntelliJ IDEA uses facets to enable support for the most common web service engines. However, you can enable any web service engine or implementation version, even if it is not supported by IntelliJ IDEA facets.
Download the desired web service engine implementation.
Press CtrlAlt0S to open settings and then select Tools | Web Services. Specify the path to the external web service engine, desired server name and port, and other options For more information, refer to Web Services.
Thanks for your feedback!