Hi,

I've written a wsdl file that uses somes types defined
in a set of xsd files.

I've tried using Axis 1 to generate the code, this
went ok. However, since Axis 1.x doesn't support
union, I'm trying to use Axis 2.0 instead.

The same set of files (wsdl and xsd) that was building
ok with Axis 1.4, doesn't build with Axis 2.0

I get the following error (see below) : it looks like
one of the types defined in the xsd files isn't found
... but the type is defined, and the namespace is
correct. 

Caused by: org.apache.xmlbeans.XmlException: error:
src-resolve: type '[EMAIL PROTECTED]' not found.

I attach my wsdl file. Am I missing something here ?
Any advice would be greatly appreciated.

Also, I forgot to mention : it builds ok if I select
adb as a databinding, but fails if I select xmlbeans.

Thanks,
John.

java -classpath $AXIS2_CLASSPATH
org.apache.axis2.wsdl.WSDL2Java -uri
<myhome>/MyTest.wsdl -o generated -d xmlbeans 
Retrieving schema at
'<myhome>/xsd/networkResources/notifications.xsd',
relative to 'file: <myhome>/WORK_DIR_AXIS2/'.
Retrieving schema at 'globalDefinitions.xsd', relative
to 'file:
<myhome>/xsd/networkResources/notifications.xsd'.
Retrieving schema at '../common/definitions.xsd',
relative to 'file:
<myhome>/xsd/networkResources/globalDefinitions.xsd'.
Retrieving schema at 'vendorExtensions.xsd', relative
to 'file:
<myhome>/xsd/networkResources/notifications.xsd'.
Retrieving schema at '../common/definitions.xsd',
relative to 'file:
<myhome>/xsd/networkResources/vendorExtensions.xsd'.
Retrieving schema at 'layerRates.xsd', relative to
'file:
<myhome>/xsd/networkResources/notifications.xsd'.
Retrieving schema at '../common/definitions.xsd',
relative to 'file:
<myhome>/xsd/networkResources/layerRates.xsd'.
Retrieving schema at 'probableCauses.xsd', relative to
'file:
<myhome>/xsd/networkResources/notifications.xsd'.
Retrieving schema at '../common/definitions.xsd',
relative to 'file:
<myhome>/xsd/networkResources/probableCauses.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:185)
        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:93)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
        ... 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:83)
        ... 3 more
Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: error: src-resolve:
type '[EMAIL PROTECTED]' not found.
        at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)
        ... 8 more
Caused by: org.apache.xmlbeans.XmlException: error:
src-resolve: type '[EMAIL PROTECTED]' not found.
        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:665)
        at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)
        ... 8 more


                
___________________________________________________________ 
All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html

Attachment: SpeedTest.wsdl
Description: 3840633936-SpeedTest.wsdl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to