Hi Anne, Thank you very much for your answer.
Sorry for the schemaLocation attribute value, I actually edited it before posting the wsdl file as it was quite a long path. It doesn't contain any '<' or '>' in the original file. I will try to use the latest nightly build as you suggest. Thanks, John. --- Anne Thomas Manes <[EMAIL PROTECTED]> wrote: > The WSDL is invalid because "<" and ">" are not > valid characters in a > schemaLocation attribute value. Please specify a > valid path value. > > Also -- make sure you are using the latest nightly > build. > > Anne > > On 9/7/06, John Smith <[EMAIL PROTECTED]> wrote: > > 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 > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___________________________________________________________ All New Yahoo! Mail Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
