aspose file tools
The moose likes Web Services and the fly likes WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve" Watch "WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve" New topic
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve
 
Similar Threads
MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute
complextype with Axis2
XmlException on calling WSDL2Java
How to use enum types with Axis2?
Unique particle attribution rule bit me - why?