File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes java2wsdl.bat with axis 2 distribution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "java2wsdl.bat with axis 2 distribution" Watch "java2wsdl.bat with axis 2 distribution" New topic

java2wsdl.bat with axis 2 distribution

snehil brajpuriya

Joined: Jan 09, 2006
Posts: 2
I am getting error while tryig to use java2wsdl.bat file distributed with axis 2. Problem seems to be that its adding all the jars in lib directory and this is a very long listing.
Can anyone suggest a way to add long strings to classpath or on prompt with -cp option with java. I am trying to use -
java -cn samples.quickstart.service.pojo.StockQuoteService -of StockQuoteService.wsdl
-this adding any few important jars. Can any one suggest the required jars for using samples.quickstart.service.pojo.StockQuoteService.

snehil brajpuriya

Joined: Jan 09, 2006
Posts: 2
GOt the solution for this now. Thanks
Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 217
Hello Friend
Suggestion. Try Eclipse IDe
1. First create src, lib, directories. dump your lib directory with jars.
2. Now goto eclipse Run Wizard mode, give your wsdl2java fully qualified name and check the box to take libraries from lib folder
3. Add argument to the run command <wsdl file>
4. Onceyou have done, run the java application program wsdl2java to generate src files.

I agree. Here's the link:
subject: java2wsdl.bat with axis 2 distribution
It's not a secret anymore!