[jbossws-issues] [JBoss JIRA] Created: (JBWS-1441) wsdl-java - Complex type defined with complexContent only last element is in the generated java class

Darran Lofthouse (JIRA) jira-events at jboss.com
Fri Jan 5 09:42:27 EST 2007


wsdl-java - Complex type defined with complexContent only last element is in the generated java class
-----------------------------------------------------------------------------------------------------

                 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.1


Complex type defined with complexContent only last element is in the generated java class

If the following type is defined in the schema: -

   <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