jQuery in Action, 2nd edition*
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 Spring in Action this week in the Spring 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