Axis
  1. Axis
  2. AXIS-2604

Deserialization of bean with array property requires indexed getter and setter

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Adam Crume
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development