Sagara Gunathunga created AXIS2-5357:
-----------------------------------------
Summary: ADB can't generate codes for XSD which has SimpleContent
restricted from a ComplexType.
Key: AXIS2-5357
URL: https://issues.apache.org/jira/browse/AXIS2-5357
Project: Axis2
Issue Type: Bug
Components: adb
Affects Versions: 1.6.2, 1.5.6
Reporter: Sagara Gunathunga
Assignee: Sagara Gunathunga
Fix For: 1.7.0
Attachments: SimpleService.wsdl
See following example schema.
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://sample">
<xs:complexType name="limitedString">
<xs:simpleContent>
<xs:restriction base="ns:rating">
<xs:minLength value="2"/>
<xs:maxLength value="4"/>
<xs:pattern value="([a-d])*" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="rating">
<xs:simpleContent>
<xs:restriction base="ns:anyString">
<xs:minLength value="2"/>
<xs:maxLength value="8"/>
<xs:pattern value="([a-z])*" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="anyString">
<xs:simpleContent>
<xs:extension base="xs:string" />
</xs:simpleContent>
</xs:complexType>
</xs:schema>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]