Rex Walter

Greenhorn
+ Follow
since May 24, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rex Walter

Sorry, I posted the wrong code, the correct one is...

import org.apache.axis.wsdl.WSDL2Java;

public class WsdlToJava {

public static void main(String[] args) {
args = new String[5];
args[0] = "--package";
args[1] = "com.amanda.ws";
args[2] = "--output";
args[3] = "src";
args[4] = "epayment.WSDL";
WSDL2Java.main(args);
}
}

Thanks
Rex
13 years ago
import org.apache.axis.wsdl.WSDL2Java;

public class WsdlToJava {

public static void main(String[] args) {
args = new String[5];
//args[0] = "--package";
//args[1] = "com.amanda.ws";
args[0] = "--output";
args[1] = "src";
args[2] = "-v";
args[3] = "--overwrite";
args[4] = "epayment.WSDL";
WSDL2Java.main(args);
}
}

Rex
13 years ago
Hi,
I am trying to generate java classes with a service provider WSDL, using Axis 1.4, JDK 1.5 (the package parameter is com.amanda.ws). I ended up with following exception. Not able to figure out why this is happening. Can anybody help please?

Thanks in advance:

Exception

org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: src\com\amanda\ws\PaymentFrequencyType.java.
Hint: you may have mapped two namespaces with elements of the same name to the same package name.
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:113)
at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1270)
at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Thread.java:595)
13 years ago