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