This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Trying to call WSDL2Java.main, but having issues when redirecting output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Trying to call WSDL2Java.main, but having issues when redirecting output" Watch "Trying to call WSDL2Java.main, but having issues when redirecting output" New topic
Author

Trying to call WSDL2Java.main, but having issues when redirecting output

Mikel Warren
Greenhorn

Joined: Jun 03, 2004
Posts: 3
I'm using Apache axis 1.x, and I have a simple java program that calls the static main method of org.apache.axis.wsdl.WSDL2Java.
I am passing in the String array with the -o (redirect output) option along with the WSDL url.
If I leave out the -o option, the java files get created with no problems, but if I try to redirect, I get the following exception.
Also, if I use java.exe to call org.apache.axis.wsdl.WSDL2Java directly from a DOS command prompt, I can use the -o parameter with no problems
I'm using JBuilder 2006, if that matters.

Thanks



Mikel Warren
Greenhorn

Joined: Jun 03, 2004
Posts: 3
Ok - I figured it out.
Apparently you can't do '-o c:\\blah', but instead have to do '-oc:\\blah' (i.e. no space)
 
wood burning stoves
 
subject: Trying to call WSDL2Java.main, but having issues when redirecting output
 
Similar Threads
axis wsdl2java nullPointerException
Errors while running AdviceClient
Problems running advise client
how to post jobs in Monster using their webservice
trying to understand SecurityManager