In able to continue my work I tried  -Ewdc (for xmlbeans)  options of 
wsdl2java, and I could generate the files using xmlbens scomp.
Now which files should I replace ?

Thanks

------
-Ewdc (for xmlbeans)  Generate code with a dummy schema. if someone use this 
option
    they have to generate the xmlbeans code seperately with the scomp command 
comes with the
    xmlbeans distribution and replace the Axis2 generated classes with correct 
classes



From: Soyer, Muhammed A. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 6:01 PM
To: [email protected]
Subject: Error when generating the proxies using xmlbeans

Hi,
  I have a WSDL file which imports other WSDL files and they import XSD files. 
Looks like one of the XSD is being referred multiple times. I guess normally 
this shouldn't be an issue but when I use the xmlbeans binding I am getting an 
error saying that
I have "Duplicate global type ....". When I use the default binding ADB I don't 
get an error message but I can't use ADB because of its limitations for 
inherited complex types.

  I am using axis2 1.4.1 . Do you have any suggestions to work around the issue?

Thanks


Using JAVA_HOME:    d:\jdev\10g10134\jdk
Retrieving document at 'CentralReservation.wsdl'.
Retrieving document at 'XReservationService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XReservationService.wsdl'.
Retrieving document at 'XClassService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XClassService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XClassService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XClassService.xsd'.
Retrieving document at 'XSpaService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XSpaService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.xsd'.
Retrieving document at 'XCustomer.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving document at 'XLocation.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XLocationObjects.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XLocation.wsdl'.
Retrieving document at 'XTee.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving document at 'XDiningService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XDiningService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.xsd'.
Retrieving document at 'CentralReservation.wsdl'.
Retrieving document at 'XReservationService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XReservationService.wsdl'.
Retrieving document at 'XClassService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XClassService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XClassService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XClassService.xsd'.
Retrieving document at 'XSpaService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XSpaService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.xsd'.
Retrieving document at 'XCustomer.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving document at 'XLocation.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XLocationObjects.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XLocation.wsdl'.
Retrieving document at 'XTee.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving document at 'XDiningService.wsdl', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'.
Retrieving schema wsdl:imported from 'XDiningService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.wsdl'.
Retrieving schema at 'XReservationService.xsd', relative to 
'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.xsd'.
[INFO] A SOAP port was not found - picking a random port!
[INFO] Resolving schema with publicId 
[http://schemas.zzz.com/OpenActivity/1/0/Reservation/] and systemId 
[XReservationService.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:271)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
        at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
        ... 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:115)
        ... 3 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: 
D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error: sch-props-correct.2: 
Duplicate global type:
 [EMAIL PROTECTED]://schemas.zzz.com/OpenActivity/1/0/Reservation/ (Original 
global type found in file: null)
        at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
        ... 8 more
Caused by: org.apache.xmlbeans.XmlException: 
D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error: sch-props-correct.2: 
Duplicate global type: [EMAIL PROTECTED]://schemas.
zzz.com/OpenActivity/1/0/Reservation/ (Original global type found in file: null)
        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)

Muhammed SOYER  I  Software Engineer  I  MICROS Systems, Inc.  I  2640 Golden 
Gate Parkway, Suite 211  I  Naples, FL 34105  I
(239) 430-4143 *  I  (239) 643-7911 *  I  [EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>* I   www.micros.com<http://www.micros.com/>

Reply via email to