axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-5357) ADB can't generate codes for XSD which has SimpleContent restricted from a ComplexType.
Date Sat, 07 Jul 2012 04:11:33 GMT

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

Sagara Gunathunga  resolved AXIS2-5357.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.3
    
> 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.5.6, 1.6.2
>            Reporter: Sagara Gunathunga 
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.7.0, 1.6.3
>
>         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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message