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 Deploying WSDL2Java 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 "Deploying WSDL2Java" Watch "Deploying WSDL2Java" New topic

Deploying WSDL2Java

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270

I am trying to deploy a WSDL.WSDL located at "c:\cscws\WSDL.WSDL" to java files using org.apache.axis.wsdl.WSDL2Java.

I get the error:
The wsdl URI has already been specified as, c:\cscws\WSDL.WSDL. It cannot be specified again as ûo. Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
-h, --help

Can anyone help me please?

Here is my commands:

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270
Ok, I solved the problem by using the command:
wsdl2java -v -o output_directory localpath/your_file.wsdl
I agree. Here's the link:
subject: Deploying WSDL2Java
Similar Threads
Problems with Axis 1.0 and wsdl2java
Compiling stubs fails
Axis: WSDL2Java classpath problem
can't generate java from wsdl file please help!
Error running wsdl2java tool