[ 
https://issues.apache.org/jira/browse/AXIS2-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Samisa Abeysinghe updated AXIS2-3415:
-------------------------------------

    Component/s: codegen

> Problem with wsdl2java and xsd final attribute
> ----------------------------------------------
>
>                 Key: AXIS2-3415
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3415
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: Windows XP, Java 5
>            Reporter: Morten Frank
>
> Trouble with generating Java stubs if XML 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#element-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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to