Axis2 generate client code

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.