The Axis2 code generator comes built-in with an Eclipse plug-in. This document explains the usage of the code generator plug-in. The full documentation that includes the installation is avaialble at the Axis2 web site
If the plug-in is properly installed you should see a new wizard under the "New" section.(use the File -> New -> Other or Ctrl + N )
Selecting the wizard and pressing the next button will start the code generator wizard. Following is the first wizard page.
Selecting the generate code from WSDL option leads to the next page. Note that the Java-to-WSDL tool is disabled.
To move on to the next page the WSDL file location must be given. The browse button can be used to easily browse for a file rather than typing the whole path.
Once the WSDL file is selected, codegen options are to be selected. By far this is the most important page in this wizard, which determines the characteristics of the code being generated. Novices need not worry about these options since the most common options are defaulted, But advanced users will find it very easy to "turn the knobs" using these options.
Once the options are taken care of, only the final step of the code generation is left. it is the selection of the output file location.
When the output file location is selected, the Finish button will be enabled. Pressing the finish button will generate the code and a message box will pop up acknowledging the success. Well Done! You've successfully completed Axis2 Code generation.