axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Gourley (JIRA)" <>
Subject [jira] Commented: (AXIS2-4193) WSDL2JAVA no setters in ADBBean
Date Wed, 02 Jun 2010 15:53:42 GMT


Aaron Gourley commented on AXIS2-4193:

I have also seen this issue in Axis2 1.5.1 with the following schema definition:

     <s:simpleType name="guid">
        <s:restriction base="s:string">
          <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"

      <s:complexType name="CrmReference">
          <s:extension base="s2:guid">
            <s:attribute name="IsNull" type="s:boolean" />
            <s:attribute name="name" type="s:string" />
            <s:attribute name="type" type="s:string" />
            <s:attribute name="dsc" type="s:int" />
      <s:complexType name="Owner">
          <s:extension base="s1:CrmReference" />

In my case, CrmReference is generated to extend the generated Guid class as expected, so it
has the getters/setters from the super class.  That being said, the Owner class is not generated
to extend the generated CrmReference class so there are no getters/setters for any base types
up the hierarchy from it.

> WSDL2JAVA no setters in ADBBean
> -------------------------------
>                 Key: AXIS2-4193
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, codegen
>    Affects Versions: 1.4.1
>            Reporter: Roger Niederland
> Generating java classes using wsdl2java (as ADBBeans) (Axis2 version 1.4.1) 
>  on WSDL containing the following information: 
>    <xs:complexType name="PaymentAmount"> 
>       <xs:simpleContent> 
>          <xs:extension base="tns:Amount"/> 
>       </xs:simpleContent> 
>    </xs:complexType> 
>    <xs:complexType name="Amount"> 
>       <xs:simpleContent> 
>          <xs:extension base="xs:decimal"> 
>             <xs:attribute name="currency" type="tns:currency" use="required"/>

>          </xs:extension> 
>       </xs:simpleContent> 
>    </xs:complexType> 
> The generated PaymentAmount class has no setter or getter methods. 
> The generated Amount class has as expected setter and getter method for Currency and

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:
For additional commands, e-mail:

View raw message