Two Laptop Bag*
The moose likes Performance and the fly likes Error in genrating java files from WSDL 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 » Performance
Bookmark "Error in genrating java files from WSDL" Watch "Error in genrating java files from WSDL" New topic
Author

Error in genrating java files from WSDL

pramod mhatre
Greenhorn

Joined: Dec 27, 2012
Posts: 11

When I tried to generate classes from WSDL along with .xsd files.
I am getting exception as below:
{http://www.openaxisgroup.org/AXISSchemaDocs/v1r1-VA/faresearch/response}Time already exists
{http://www.openaxisgroup.org/AXISSchemaDocs/v1r1-VA/faresearch/response}>Time already exists
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: com/vtech/external/implementation/virginAustralia/faresearch/RequestForCarLocation.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:110)
at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1406)
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:662)

I don't want to change axis version.


Help me to sort out this issue.
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Is an issue of namespaces collision.
Could you paste your wsdl file?


PD :I'm new to this forum but probably this issue doesn't belongs to the performance box
 
jQuery in Action, 2nd edition
 
subject: Error in genrating java files from WSDL
 
Similar Threads
Within Eclipse - ant javac task and OutOfMemory error.
wsimport
Parsing an HTML doc
Null Pointer Exception while running WSDL file
Need Help in Webservices design Please