Deserialization of bean with array property requires indexed getter and setter
------------------------------------------------------------------------------
Key: AXIS-2604
URL: http://issues.apache.org/jira/browse/AXIS-2604
Project: Apache Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Reporter: Adam Crume
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.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]