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:34 UTC

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

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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


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

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408565#comment-13408565 ] 

Sagara Gunathunga  commented on AXIS2-5357:
-------------------------------------------

Fixed in r1358494.
Note - I had to modify some newly added tests for 1.6 branch hence can't guarantee 1.6.x version will handle all variance of XSD restrictions.
                
> 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