Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2604

Deserialization of bean with array property requires indexed getter and setter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.4
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adamcrume Adam Crume
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: