1 Reply Latest reply on Sep 29, 2008 2:26 PM by rletness

    SoapClient and responseAsOgnlMap

    rletness

      So I'm using the SoapClient action and trying to use the responseAsOgnlMap feature. Everything seems to work, except the map is coming back with only a subset of the data returned.

      For example, the returned xml looks like:

      ...

      18
      ....
      ...
      ...


      The map only contains entries for the first like:

      Items.Item.Name

      All other items are ignored and not included in the returned ognl map. I was expecting something like:

      Items[0].Name = ...
      Items[1].Name = ...

      I suspect the problem is that the element has additional elements besides . Is there any way to represent this in ognl?

        • 1. Re: SoapClient and responseAsOgnlMap
          rletness

          oops the XML example should be:

          
          <Items>
          <TotalResults>10</TotalResults>
          <Item> ... </Item>
          <Item> ... </Item>
          <Item> ... </Item>
          </Items>
          
          


          And the problem is that the ognlMap only includes a single Item instead of and indexed collection.