[
https://issues.apache.org/jira/browse/AXIS-1510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427232#comment-13427232
]
Roman Puchkovskiy commented on AXIS-1510:
-----------------------------------------
I got the same problem with axis-1.4: it generated class that '... extends
Object[]...'. I've found the following work-around:
1. replaced 'extends Object[]' with 'extends ArrayList<MyTypeHere>'
2. changed getSerializer() and getDeserializer():
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new ArraySerializer(_javaType, _xmlType);
}
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return new ArrayDeserializer();
}
Surprisingly, generated WS client started working after these modifications.
> WSDL creates class that extends Object array
> --------------------------------------------
>
> Key: AXIS-1510
> URL: https://issues.apache.org/jira/browse/AXIS-1510
> Project: Axis
> Issue Type: Bug
> Environment: Windows XP Professional, Java 1.4.2_05, 1.2 Beta2
> Reporter: Will Sargent
> Assignee: Dominik Kacprzak
> Priority: Minor
> Attachments: example.tar.gz
>
>
> When I use the beta2 release's version of WSDL2Java with Amazon's WSDL file:
> http://sellercentral.amazon.com/help/merchant_documents/Programs/Merchants-API-Integration-1.3.wsdl
> I get the following:
> public class DocumentDownloadAckStatusArray extends java.lang.Object[]
> implements java.io.Serializable {
> ...
> }
> Since arrays cannot be extended, this code does not compile.
> Incidentally, if you type the text "Object[]" into the header or try
> searching for it, you can break Jira.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]