To generate the client code through aix2, prepare the corresponding package and execute the command as follows:
I. Preparation of required packages
Download axis2-1.6.2-bin.zip and extract it from the Lib package.
Jaxrpc. Jar
Wsdl4j-1.6.2.jar
Axis. Jar (this file does not appear in the latest package) needs to be downloaded separately from the Internet
Commons-logging-1.1.1.jar
Commons-discovery-0.2.jar
Mail-1.4.jar
Ii. execute commands
Create a lib folder, import the preceding package to the folder, and enter the directory of the Lib folder in the DOS window.
Run the following command:
Java-djava. ext. dirs = lib Org. apache. axis. WSDL. wsdl2java-o e: \ workspace \ javaweb \ Src-p com. lzb. wsclient. SMS http: // 192.168.0.219: 8080/axisserver/services/smsservice? WSDL
Path of the package required by Lib-D-path of O output code-path of P code output package path followed by the WSDL access address
The following code can be generated after execution:
Axis2 generate client code