Client stub file generation
1. How to generate Scripts
Go to AXIS2 's decompression directory under Bin (%axis2_home%\bin\) to execute the following statement
Wsdl2java-urihttp://localhost:8085/Axis2Service2/services/AxisService?wsdl-P Ws-s-o stub
The-p parameter specifies the package name of the generated Java class
The-o parameter specifies the root directory where the generated series of files are saved
Automatic generation of Axisservicestub.java in Stub\src\ws
2, plug-in generation mode
Select New->other->axis2 Code Generator in the IDE and click Next;
Tick generate Java source code from a WSDL file, click Next;
WSDL file location, input: HTTP://LOCALHOST:8085/AXIS2SERVICE2/SERVICES/AXISSERVICE?WSDL, click Next;
If the path is not correct, prompt: Specified WSDL is invalid!, please select a validated *.wsdl/*.xml file on previous page.
Error after importing generated Xxxstub.java file into project
1. Check if the jar package is imported
2. Replace all package names in the Xxxstub.java