1, open the terminal, the default is the user directory, enter the following command:
LS -A
Show hidden files
2. Open the. Bash_profile and enter the following command
Open. Bash_profile
Configure the Java_home,axis2_home and add the Java and Axis2 bin directories to the path, and the Lib directory is added to the classpath
3, save, re-open the terminal can be used wsdl2java.sh
wsdl2java.sh [options]-uri <url or path>
The options that are commonly used are as follows:
-O <path>: Specifies the output path of the generated code-a: code-S for generating asynchronous Patterns : code to generate synchronous mode-P <pkg>: Specifies the code's package name-L < Languange>: The language Used (JAVA/C) is java-t by default : Generate test cases for code-SS : Generate service-side code by default does not generate-SD : Build Service profile Services.xml, use D <databinding> only with-ss : Specify databingding, for example, Adb,xmlbean,jibx,jaxme and jaxbri-g : Generate code for server and client-PN <port_name> : When there are multiple ports in the WSDL, specify one of the PORT-SN <serv_name> : Select a service-u in the WSDL : Expand Data-binding Class-R <path> : Specify a Repository-ssi for code generation : Implement code Generation interface class-S for the server side : Specifies the storage path for the generated source-R : Specifies the storage path for the generated resources--nobuildxml : build.xml file--nowsdl is not generated in the output :
Wsdl2java in the Mac midpoint configuration