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-2766) XSD not generated correctly for java 1.5 enum
Date Thu, 01 Sep 2011 10:42:09 GMT

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

Sagara Gunathunga  resolved AXIS2-2766.
---------------------------------------

    Resolution: Fixed
      Assignee:     (was: Deepal Jayasinghe)

Patch for AXIS2-3967 fixed this issue. 

> XSD not generated correctly for java 1.5 enum
> ---------------------------------------------
>
>                 Key: AXIS2-2766
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2766
>             Project: Axis2
>          Issue Type: Bug
>         Environment: Axis2 1.2, XP
>            Reporter: Drew Bentley
>         Attachments: EnumTest.xml
>
>
> Given the following Java Code:
> public enum Values
> {
>   One,Two,Three
> }
> public class EnumTest
> {
>     private Values _value;
>     
>     
>     public Values getValue(){
>         return _value;
>     }
>     
>     public void setValue(Values value){
>         _value = value;
>     }
> }
> The type generated in the WSDL is incorrect.  According to both SOAPScope and XMLSpy
"xs:Enum" is not a valid xml schema type:
>  <xs:complexType name="Values">
>  <xs:complexContent>
>  <xs:extension base="xs:Enum">
>  <xs:sequence>
>   <xs:element name="One" nillable="true" type="ns:Values" /> 
>   <xs:element name="Three" nillable="true" type="ns:Values" /> 
>   <xs:element name="Two" nillable="true" type="ns:Values" /> 
>   </xs:sequence>
>   </xs:extension>
>   </xs:complexContent>
>   </xs:complexType>

--
This message is automatically generated by JIRA.
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