Issue Details (XML | Word | Printable)

Key: AXIS-2604
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Adam Crume
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Axis

Deserialization of bean with array property requires indexed getter and setter

Created: 21/Dec/06 04:55 PM   Updated: 21/Dec/06 04:55 PM
Component/s: Serialization/Deserialization
Affects Version/s: 1.4
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
We have a web service returning a LogSearchResult object. This contains a message and an array of LogEntry objects.

If the WSDL uses maxOccurs="unbounded" to define an array instead of an ArrayOf_ type, the class being deserialized must contain an indexed getter and setter for deserialization to work. Otherwise, with RPC/Encoded, it seems to just return the last element in the array, and with Document/Literal, it seems to return an array with the wrong length and entries that are non-null but have null properties.

We aren't using the models generated by the WSDL2Java tool, because we used the models to generate the WSDL. The default deserialization mechanism usually works for us.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.