When I use xmlbeans I get an exception because of "Duplicate global type":
Duplicate global type: [EMAIL PROTECTED]://www.opentravel.org/OTA/2003/05 (Original global type found in file: xsd/FS_OTA_HotelAvailRS.xsd) Here it is the whole exception stacktrace: [EMAIL PROTECTED]:~/src/MiraiOTA/axis_2/OTA_HotelAvail> /usr/local/axis2-1.1-SNAPSHOT/bin/wsdl2java.sh -uri /home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/OTA_HotelAvail.wsdl -o /home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/axis2/ -d xmlbeans Using AXIS2_HOME: /usr/local/axis2-1.1-SNAPSHOT Using JAVA_HOME: /usr/local/jdk1.5.0_06 Retrieving schema at 'xsd/FS_OTA_HotelAvailRQ.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/'. Retrieving schema at 'xsd/FS_OTA_HotelAvailRS.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_HotelAvail/'. Nov 2, 2006 12:19:39 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://www.opentravel.org/OTA/2003/05] and systemId [xsd/FS_OTA_HotelAvailRS.xsd] Nov 2, 2006 12:19:39 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity INFO: Resolving schema with publicId [http://www.opentravel.org/OTA/2003/05] and systemId [xsd/FS_OTA_HotelAvailRQ.xsd] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:82) ... 3 more Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: /usr/local/axis2-1.1-SNAPSHOT/xsd/FS_OTA_HotelAvailRQ.xsd:89:1: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://www.opentravel.org/OTA/2003/05 (Original global type found in file: xsd/FS_OTA_HotelAvailRS.xsd) at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:248) ... 8 more Caused by: org.apache.xmlbeans.XmlException: /usr/local/axis2-1.1-SNAPSHOT/xsd/FS_OTA_HotelAvailRQ.xsd:89:1: error: sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://www.opentravel.org/OTA/2003/05 (Original global type found in file: xsd/FS_OTA_HotelAvailRS.xsd) at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667) at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:166) ... 8 more Any ideas? Manuel Valladares --- Davanum Srinivas <[EMAIL PROTECTED]> wrote: > Can you use xmlbeans databinding? > > -- dims > > On 10/31/06, Jose Manuel Valladares Pernas > <[EMAIL PROTECTED]> wrote: > > Hello, > > I am using axis 2 snapshot from today (October > 11th > > 2006) to generate the java classes from a wsdl > file > > that references several schema classes. > > > > I am using the OTA specification for hotel > > communicaions. > > > > I got the known issue of Unsupported content > Simple > > Type Union in one of the schemas. > > > > I am using the adb data binding. > > > > I would like to know if this bug is going to be > fixed > > soon, and also if there is any recommendation > about > > changing the Union for another construct. > > > > This wsdl and schemas work fine in axis 1. The > classes > > are produced and > > > > If you want I can send you the files that I am > using. > > > > Thank you very much for your help, > > Manuel Valladares > > > > --------------------------------------------- > > - Jose Manuel Valladares Pernas > > - [EMAIL PROTECTED] > > - [EMAIL PROTECTED] > > --------------------------------------------- > > > > > > > > > __________________________________________________________________________________________ > > Check out the New Yahoo! Mail - Fire up a more > powerful email and get things done faster. > > (http://advision.webevents.yahoo.com/mailbeta) > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > -- > Davanum Srinivas : http://www.wso2.net (Oxygen for > Web Service Developers) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------- - Jose Manuel Valladares Pernas - [EMAIL PROTECTED] - [EMAIL PROTECTED] --------------------------------------------- ____________________________________________________________________________________ We have the perfect Group for you. Check out the handy changes to Yahoo! Groups (http://groups.yahoo.com) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]