Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ does not generate WSDL from Java Code using Apache Axis 2

I'm trying generate a WSDL from java code with Apache Axis2 using IntelliJ (latest and greatest version of ultimate), but the following screen just jiggles for a few seconds and nothing happens. Does this actually work? My web service is a simple "echo" service... :(

enter image description here

like image 796
Inquisitor Shm Avatar asked Sep 08 '17 23:09

Inquisitor Shm


People also ask

How can WSDL be generated from a Java interface?

In the main menu, go to Tools | XML WebServices and WSDL | Generate WSDL From Java Code. In the Generate WSDL From Java dialog that opens, specify the following: The name and URL address of the Web service. The protocol and encoding style used when accessing the public operations of the Web service.

How do you convert WSDL to Java classes using IntelliJ?

The dialog opens after you create a Java module and enable Web services client development in it. To access the dialog at any time during development, select the desired client module in the Project view and choose Tools | XML WebServices and WSDL | Generate Java Code From WSDL from the main menu.

How do I create a WSDL client in Java?

Generate the client code as follows: In the Project Explorer, right-click your client project's WSDL file, and then select WebLogic Web Services > Generate Web Service Client from the drop-down menu, as Figure 1 shows. This will open the New Web Service Client dialog that Figure 2 shows.


1 Answers

In order to make Axis2 WSDL generation work you will need to:

  1. Download Axis2 Binary Distribution from https://axis.apache.org/axis2/java/core/download.html
  2. On Intellij open Settings > Tools > Web Services
  3. Configure Apache Axis 2 path to where you extracted the previously downloaded binaries

enter image description here

Now the Generate Java Code From Wsdl with option Apache Axis 2 should work fine.

like image 58
Marcelo Luiz Onhate Avatar answered Sep 28 '22 04:09

Marcelo Luiz Onhate