Axis2 WSDL2java only generates 2 Java classes

I am using Axis2 to develop web services .

Please see my program below:

public class Simple { public String echo(String rest) { return rest; } } 

After deploying to Axis2.war, I got this wsdl file generated by

Generating client code using wsdl2java:

After generating the wsdl file, I used wsdl2java to generate the client code

C:> WSDL2Java.bat -uri http: // localhost: 8080 / axis2 / services / SimpleService? Wsdl - o E: \ Axis2Tutorial \ Examples \ HelloWorld \ client

After running this command, I received only 2 files:

 SimpleServiceCallbackHandler SimpleServiceStub 

Now my question is that only 2 files are SimpleServiceCallbackHandler and SimpleServiceStub (Where, as in some of the Axis2 Client class, I also saw the Response class), why is this not in my case.

+1
source share
1 answer

By default, these classes are generated in the stub. You can use the -u option to create separate data binding classes. See here for more details.

+5
source

Source: https://habr.com/ru/post/946430/


All Articles