wsconsume fails with error "A class/interface with same name..."
Issue
When I run wsconsume on my WSDL, I get an error similar to this:
[ERROR] A class/interface with the same name "com.jboss.example.MyResponseObject" is already in use. Use a class customization to resolve this conflict.
line 113 of file:/some/path/myWsdl.xsd
[ERROR] (Relevant to above error) another "MyResponseObject" is generated from here.
line 112 of file:/some/path/myWsdl.xsd
Environment
JBoss Enterprise Application Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
