Axis2 generates client code, and axis2 generates Client

Source: Internet
Author: User

Axis2 generates client code, and axis2 generates Client

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:

 


How does axis2 generate the wsdl file into a java client, and the server calls the code?

MyEclipse integrates the axis2 java client generation function. Right-click the wsdl file-> NEW-> others-> to search for the web client.

Axis2 generates local Java code based on the wsdl File

Reference: blog.csdn.net/yakson/article/details/8997622
JAVA generates WebService client commands in three ways

Related Article

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.