Please create a jira. Amila.
On Dec 20, 2007 3:13 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I have had trouble with generating Java stubs if my type def. contains > the following: > > <xs:complexType name="time" final="extension restriction"> > <xs:sequence></xs:sequence> > </xs:complexType> > > According to the XSD specification this should be legal: > http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#eleme > nt-complexType > > > It works, if the def. is changed to: > > <xs:complexType name="time" final="#all"> > <xs:sequence></xs:sequence> > </xs:complexType> > > > The generation triggers the following error: > > [ERROR] org.apache.ws.commons.schema.constants.Enum$EnumValueException: > Bad Enumeration value 'extension restriction' > java.lang.RuntimeException: > org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad > Enumeration value 'exten > sion restriction' > at > org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde > r.java:1886) > at > org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde > r.java:1902) > at > org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.ja > va:1627) > at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(Schema > Builder.java:175) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollectio > n.java:347) > at > org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLT > oAxisServiceBuilder.java:140) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleEl > ements(WSDL11ToAxisServiceBuilder.jav > a:2186) > > > According to a colleague this problem was introduced in axis2 and not > present in axis. > > Is this worth a JIRA or is the problem already reported? > > Regards > Morten > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.