Well, I don't see full schema support as an immediate goal for ADB at this point. Perhaps you can use something like XMLBeans or Jaxb for this ?
Ajith On 12/19/06, Ted Jones <[EMAIL PROTECTED]> wrote:
Ah... ADB is used for code generation. Any idea when a fix will be available for this? Thanks, Ted ________________________________ From: Ted Jones [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:21 AM To: [email protected] Subject: [AXIS2-1.1] Unsupported content Simple Type Union When running wsdl2java with wsdl that imports a schema with the following simple type definition: <xsd:simpleType name="BookEdition"> <xsd:annotation> <xsd:documentation> Book edition, which can be an integer (1,2, ...) or nothing. </xsd:documentation> </xsd:annotation> <xsd:union memberTypes="xsd:nonNegativeInteger"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value=""/> </xsd:restriction> </xsd:simpleType> </xsd:union> </xsd:simpleType> I receive the following exception: 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(CodeGener ationEngine.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.InvocationTargetExcepti on at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:52) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener ationEngine.java:177) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp leDBExtension.java:49) ... 3 more Caused by: org.apache.axis2.schema.SchemaCompilationException: Unsupported conte nt Simple Type Union in {http://www.test.com/XMLSchema/DataSets/Books/Book Datatypes}BookEdition ! at org.apache.axis2.schema.SchemaCompiler.processSimpleType(SchemaCompil er.java:1794) at org.apache.axis2.schema.SchemaCompiler.processSimpleSchemaType(Schema Compiler.java:1747) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:870) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:527) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:489) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:14 88) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1450) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:950) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType( SchemaCompiler.java:909) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:864) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:527) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:489) at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:14 88) at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler .java:1450) at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi ler.java:950) at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType( SchemaCompiler.java:909) at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j ava:864) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:527) at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler. java:499) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:33 6) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:31 8) at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:24 8) at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java :72) I see there is a KI with with regards to ADB and support for xs:union inside xs:simpleType (AXIS2-1093). Does this apply to wsdl2java as well? Thanks, Ted Jones I
-- Ajith Ranabahu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
