You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (JIRA)" <ji...@apache.org> on 2012/07/06 12:49:35 UTC

[jira] [Updated] (AXIS2-5357) ADB can't generate codes for XSD which has SimpleContent restricted from a ComplexType.

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

Sagara Gunathunga  updated AXIS2-5357:
--------------------------------------

    Attachment: SimpleService.wsdl
    
> 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
>
>         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