IntelliJ IDEA 2024.3 Help

Web services

IntelliJ IDEA supports the development, packaging, and deployment of web services according to the following standards:

Install the Jakarta EE: WebServices (JAX-WS) plugin

This functionality relies on the Jakarta EE: WebServices (JAX-WS) plugin, which you need to install and enable.

  1. Press Ctrl+Alt+S to open settings and then select Plugins.

  2. Open the Marketplace tab, find the Jakarta EE: WebServices (JAX-WS) plugin, and click Install (restart the IDE if prompted).

IntelliJ IDEA provides the following development and packaging features:

  • Setting up the relevant module structure and downloading all the necessary resources based on the dedicated web services facet you specify.

  • Generating the necessary deployment descriptors, mapping and manifest files.

  • Packaging the web service files, with the EAR file structure following the rules defined by the Enterprise Web Services 1.1 specification.

Develop a web service with IntelliJ IDEA

  1. In a Java module, enable support of the relevant web service.

  2. Populate the module with the necessary classes and methods.

  3. Compile the developed classes and expose them as a web service.

  4. Configure the artifacts to deploy.

  5. Create a run configuration specifying the list of artifacts to deploy, each with the corresponding application context.

  6. Run the application.

  7. View and manage deployed web services in the Deployment console of the Run tool window.

Last modified: 17 June 2024