[
https://issues.apache.org/jira/browse/AXIS2-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663031#action_12663031
]
Dennis Sieben commented on AXIS2-4121:
--------------------------------------
The HashSet patch itself works with the latest nightly build. But I get other
problems here due to changes in other parts of the code. I would suggest that
you check out the axis2 code with version 1.4.1, apply my patch and build it
yourself. If that's too complicated I can send the binary as pm. If the patch
is applied you can send the list in the following xml form:
<ax29:key>value</ax29:key><ax29:key>value2</ax29:key><ax29:key>value2</ax29:key>
where ax29:key is the representation of your property, and value, value1,
value2 are the values for the HashSet. Note that this patch only fixes the
"argument type mismatch" error, so that you can set values. But the wsdl
generated by axis2 for HashSet is still broken (at least it was broken with
1.4.1, didn't tried a new version until now)
> HashSet produce "argument type mismatch" when using the POJO functionality
> --------------------------------------------------------------------------
>
> Key: AXIS2-4121
> URL: https://issues.apache.org/jira/browse/AXIS2-4121
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4.1
> Reporter: Dennis Sieben
> Attachments: adb_patch.diff
>
>
> If you let axis convert POJOs to a webservice which contain HashSet objects
> you will run into the problem that you get the HashSet as a list via SOAP but
> you are not able to sent this list back. You will face an "argument type
> mismatch" error.
> This happens because inside the source code there is a check if the class of
> the property is a subclass or implementor of Collection which is the case for
> HashSet. But if this check is true, an ArrayList is build up every time, but
> ArrayList is not the only class which implements Collection, so this will
> lead to errors for each class implementing the Collection interface beside
> the ArrayList class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.