[jbossws-issues] [JBoss JIRA] Updated: (JBWS-1441) WSDL to Java - Complex type defined with complexContent only last element is in the generated java class if base type is empty

Darran Lofthouse (JIRA) jira-events at jboss.com
Mon Jan 15 08:25:52 EST 2007


     [ http://jira.jboss.com/jira/browse/JBWS-1441?page=all ]

Darran Lofthouse updated JBWS-1441:
-----------------------------------

    Summary: WSDL to Java - Complex type defined with complexContent only last element is in the generated java class if base type is empty  (was: wsdl-java - Complex type defined with complexContent only last element is in the generated java class if base type is empty)

> WSDL to Java - Complex type defined with complexContent only last element is in the generated java class if base type is empty
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-1441
>                 URL: http://jira.jboss.com/jira/browse/JBWS-1441
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: wstools
>    Affects Versions: jbossws-1.0.4
>            Reporter: Darran Lofthouse
>         Assigned To: Darran Lofthouse
>             Fix For: jbossws-1.2.0
>
>
> Complex type defined with complexContent only last element is in the generated java class if the base type is empty.
> If the following type is defined in the schema: -
>    <complexType name='AbstractType'>
>     <sequence/>
>    </complexType>
>    <complexType name='OVSimple'>
>     <complexContent>
>      <extension base='tns:AbstractOV'>
>       <sequence>
>        <element name='myString1' nillable='true' type='string'/>
>        <element name='myString2' nillable='true' type='string'/>
>       </sequence>
>      </extension>
>     </complexContent>
>    </complexType>
> The following class is generated: -
> public class  OVSimple
>  extends AbstractOV{
> protected java.lang.String myString2;
> public OVSimple(){}
> public OVSimple(java.lang.String myString2){
> this.myString2=myString2;
> }
> public java.lang.String getMyString2() { return myString2 ;}
> public void setMyString2(java.lang.String myString2){ this.myString2=myString2; }
> }
> Only the last element in the complexContent has been included.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list