Web services
Last modified: 10 August 2022In this section:
- Getting started with Web service
- Expose code as Web service
- Manage deployed Web services
- Generate WSDL document from Java
Introduction
IntelliJ IDEA supports efficient development, packaging, and deployment of Web services.
The supported standards are:
IntelliJ IDEA provides the following development and packaging facilities:
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 "on-the-fly".
Packaging the Web service files, with the EAR file structure following the rules defined by the Enterprise Web Services 1.1 specification.
tip
The Web service development functionality is provided via the Jakarta EE: WebServices (JAX-WS) plugin. You can install it using the Plugins page of the Settings/Preferences dialog.
Developing Web services
To develop a Web service, follow these general steps:
In a Java module, enable support of the relevant Web service.
Populate the module with the necessary classes and methods.
Compile the developed classes and expose them as a Web service.
tip
To enable developing the client side of the Web service before the Web service itself is deployed, generate a WSDL document.
Configure the artifacts to deploy.
warning
Do not forget to include the Web facet resources in the artifact.
Create a run configuration. On the Deployment tab, create a list of artifacts to be deployed. Specify the application contexts for each of them.
Run the application.
View and manage deployed Web services in the Deployment console of the Run tool window.
Thanks for your feedback!