how to use axis tool WSDL2JAVA

vittalmareddy
vittalmareddy used Ask the Experts™
on
Hi
what are things required to generated java classes using WSDL2JAVA, i am having JDK1.6.0_update 18
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Download axis libraries which will give you below jars
axis.jar;
log4j-1.2.8.jar;
wsdl4j-1.5.1.jar;
commons-logging-1.0.4.jar;
commons-discovery-0.2.jar;
jaxrpc.jar;
saaj.jar;
activation.jar;
mail.jar;
wsdl4j-1.5.1.jar

Now use below on command line(WIN) to generate java from WSDL to JAVA
(example i have "MyService.wsdl", but you may also use the exact url of wsdl)

java -cp axis.jar;log4j-1.2.8.jar;wsdl4j-1.5.1.jar;commons-logging-1.0.4.jar;commons-discovery-0.2.jar;jaxrpc.jar;saaj.jar;activation.jar;mail.jar;wsdl4j-1.5.1.jar; org.apache.axis.wsdl.WSDL2Java MyService.wsdl

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial