tags:

views:

1145

answers:

2

I downloaded Axis 1.4 ( http://www.nic.funet.fi/pub/mirrors/apache.org/ws/axis/1%5F4/ ) and I wanted to use WSDL2Java, but I didn't find such a file from package, but there are refrences to this file ( http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL ) in their site. Where I can get that file ?

+3  A: 

From the doc

You'll find the Axis WSDL-to-Java tool in "org.apache.axis.wsdl.WSDL2Java". The basic invocation form looks like this:

% java org.apache.axis.wsdl.WSDL2Java (WSDL-file-URL)

Brian Agnew
But in what jar that exist ?
newbie
The one you've downloaded ?
Brian Agnew
what is the name of jar
newbie
It's in the axis.jar (what a surprise..)
NickDK
It is indeed in the axis.jar
Brian Agnew
Ok, thanx for help
newbie
A: 

hello newbie,

I encountered the same problem when I tried to use wsdl2java with axis 1.4. But cant find the wsdl2java file. What I did was, I have taken wsdl2java from axis2 and modified according to axis 1.4 jar files and etc. I run it for axis 1.4. I could manage to get java class files with some warning. I dont bother about warning. Anyway, I got all java class files from wsdl with axis 1.4. However, I feel that it would be better choice if you migrate it from axis 1.4 to axis2.

clear????. My id is [email protected]. If you need any more deatils, you can mail me. I may give you some tips on that.

By,. Nazeer GMT +8

Nazeer
Use this to generate wsdl : java -classpath activation.jar;mailapi.jar;axis.jar;jaxrpc.jar;saaj.jar;commons-logging-1.0.4.jar;commons-discovery-0.2.jar;wsdl4j-1.5.1.jar;log4j-1.2.8.jar;C:\axis-1_4\lib org.apache.axis.wsdl.WSDL2Java -s your_wsdl_name.wsdl
newbie