axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath_Nabble <>
Subject Building Webservice Client using Axis
Date Mon, 26 Oct 2009 12:49:14 GMT

I am working on creating a webservice and a client to access this webservice.
I am using axis2 for creating the webservice. These are the steps I

1. Created a sample with 2 basic methods.

2. Compiled this java file to a Convertor.class.

3. Used axis provided utility 'java2wsdl.bat' to create a convertor.wsdl

D:\WS-Sample\classes>d:\Installed_Softwares\axis2-1.5\bin\java2wsdl.bat -cp
. -of ..\convertor.wsdl 
-tn urn:convertor -l -cn

4. Used axis provided utility 'wsdl2java.bat' to create the required java
files and the build file.(Used the parameters as mentioned in the axis2

D:\WS-Sample>d:\Installed_Softwares\axis2-1.5\bin\wsdl2java.bat -uri
-p -d adb -s -ss -sd -ssi

5. This step created 
a) ConvertorMessageReceiverInOut.class, ConvertorSkeleton.class ,
ConvertorSkeletonInterface.class (NOTE THAT THERE IS NOT STUB CLASSES
CREATED) in build\classes\generated folder
b) build.xml file
c) Factory classes in org\apache\ws\axis2 folder
d) Convertor.xml / services.xml in resources folder.
e) Java src files under the src folder.

6. Used the ant build 'jar.server', 'jar.client' to create the convertor.aar
and Convertor-test-client.jar files.

7. Copied the .aar file into the tomcat webapps folder and I am able to view
the 2 methods which I had defined.

Now the problem is I want to write a client program to consume this service.
In the examples provided the java client is written which uses the Stub
object, but I could not find any Stub class in the generated folder. 
Please provide me some information to write a Client program to consume the
View this message in context:
Sent from the Axis - User mailing list archive at

View raw message