You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Aaron Gourley (JIRA)" <ji...@apache.org> on 2010/06/02 17:53:42 UTC
[jira] Commented: (AXIS2-4193) WSDL2JAVA no setters in ADBBean
[ https://issues.apache.org/jira/browse/AXIS2-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874626#action_12874626 ]
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:restriction>
</s:simpleType>
<s:complexType name="CrmReference">
<s:simpleContent>
<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:extension>
</s:simpleContent>
</s:complexType>
<s:complexType name="Owner">
<s:simpleContent>
<s:extension base="s1:CrmReference" />
</s:simpleContent>
</s:complexType>
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: https://issues.apache.org/jira/browse/AXIS2-4193
> 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 Decimal.
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org