| Author |
WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve
|
Mat Anthony
Ranch Hand
Joined: May 21, 2008
Posts: 195
|
|
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
Joined: Feb 19, 2010
Posts: 215
|
|
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.
|
 |
 |
|
|
subject: WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve
|
|
|