This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to call WSDL2Java.main, but having issues when redirecting output
 
Similar Threads
Errors while running AdviceClient
how to post jobs in Monster using their webservice
Problems running advise client
trying to understand SecurityManager
axis wsdl2java nullPointerException