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 "Drew Bentley (JIRA)" <ji...@apache.org> on 2007/06/04 22:03:25 UTC

[jira] Created: (AXIS2-2766) XSD not generated correctly for java 1.5 enum

XSD not generated correctly for java 1.5 enum
---------------------------------------------

                 Key: AXIS2-2766
                 URL: https://issues.apache.org/jira/browse/AXIS2-2766
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
         Environment: Axis2 1.2, XP
            Reporter: Drew Bentley


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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2766) XSD not generated correctly for java 1.5 enum

Posted by "Drew Bentley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Drew Bentley updated AXIS2-2766:
--------------------------------

    Attachment: EnumTest.xml

Sample WSDL

> XSD not generated correctly for java 1.5 enum
> ---------------------------------------------
>
>                 Key: AXIS2-2766
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2766
>             Project: Axis 2.0 (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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2766) XSD not generated correctly for java 1.5 enum

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2766:
------------------------------------

    Assignee: Deepal Jayasinghe

> XSD not generated correctly for java 1.5 enum
> ---------------------------------------------
>
>                 Key: AXIS2-2766
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2766
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Axis2 1.2, XP
>            Reporter: Drew Bentley
>            Assignee: Deepal Jayasinghe
>         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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2766) XSD not generated correctly for java 1.5 enum

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

Kevin Burke commented on AXIS2-2766:
------------------------------------

Is this going to be fixed correctly anytime soon?

> XSD not generated correctly for java 1.5 enum
> ---------------------------------------------
>
>                 Key: AXIS2-2766
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2766
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Axis2 1.2, XP
>            Reporter: Drew Bentley
>            Assignee: Deepal Jayasinghe
>         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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org