• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve  RSS feed

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm trying to develop a web service that contains the method getPersonType.
Every time I call the ant task WSDL2Java
(i.e. <java className="org.apache.axis2.wsdl.WSDL2Java" classpathref="${axis2classpath}">)

I get the following error:-
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve:
type 'Enum@http://www.w3.org/2001/XMLSchema' not found.

I have noticed that the WSDL contains the following:-


The getPersonType is defined as follow:-


Not sure how to solve this one
Any help would be appreciated.

Mat


 
R Srini
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. The message indicates an attempt to use Enum in the standard XML namespace http://www.w3.org/2001/XMLSchema.

Here are the common <http://infohost.nmt.edu/tcc/help/pubs/rnc/xsd.html>xsd data types</a> that belong to the namespace http://www.w3.org/2001/XMLSchema, and I don't think Enum is a valid data type in that namespace. So that is probably the issue.

If you can post a small, valid schema that is representative of the problem and with which I can duplicate the issue, then I can check it out. Or if you find a solution, please do share it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!