Axis generates WebService client in eclipse

Source: Internet
Author: User

You can use the JAVA2WSDL feature provided by axis to generate the WSDL for the class you want to publish, in the following steps:

1. In your eclipse or MyEclipse project, find the Axis.jar package you cited, open it, find it inside

ORG.APACHE.AXIS.WSDL the following JAVA2WSDL class, then run it in Java application mode

2. Open the menu bar "run-to" Debug, and on the left side of the popup box, find the Java application item, in which you will see

To the JAVA2WSDL subkey, click on it---> on the right side of the main option is: "Project--' Your project name ', main class--

' Org.apache.axis.wsdl.Java2WSDL ', this information is automatically entered, do not need to change; open the Arguments option in its

Under "Program arguments:


-d-l "Http://127.0.0.1:8080/TestWebService/services/SayHello"-O "sayhello.wsdl" Co. test. SayHello


Then click on the "Debug" button to generate the WSDL file you want.

The following is the meaning of the parameter:

-d This option is to generate DEPLOY.WSDD and UNDEPLOY.WSDD

-l This option is to generate WebService future access to the address, I made a hypothesis:

HTTP/127.0.0.1:8080/testwebservice/services/sayhello

-o This option is to generate a WSDL file, I assume a file name: sayhello.wsdl

Com.test.SayHello This is the class we're going to publish, which can be changed to your publishing class.


Axis_home Value: This project is located in the Lib package path, on my Computer D:\development\webService\aa\lib

The Axis_pat h value is:

%axis_home%\axis-ant. jar;%axis_home%\axis.jar;%axis_home%\commons-discovery-

0.. jar;%axis_home%\commons-logging-1.0.4.jar;%axis_home%\jaxrpc. jar;%axis_home%\log4j-

1.. 8.jar;%axis_home%\saaj.jar;%axis_home%\wsdl4j-

1.5.1.jar;%axis_home%\mail.jar;%axis_home%\act Ivat Ion.jar


Classpat h value is:%classpaht%;%axis_pat h%


Arguments

-t-b-v-d-O src-s-P package name WSDL


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.