This feels like a ridiculous question, but Google is not being any help.

How do I actually use a value returned as an instance of a subclass of

    org.xmlsoap.schemas.soap.encoding.Array

? I am trying to use XFire for the client code calling another system. I have the code generating properly from the WSDL, and I can make the call that is supposed to return an instance of a class that extends Array. There is a Holder<Integer> parameter which is returning with the right size of the output. And sniffing the SOAP messages, the data is being returned in the XML document. But the API for Array doesn't seem to give me any way to access the elements. And this class adds nothing I can see to the API:

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "arEventList")
    public class ArEventList
        extends Array
    {

    }

In the test code, I try the entire API, and get back nothing of value I can see, except for the size of the array, which isn't actually stored in the Array itself but in a mutable parameter.

    EventsServiceClient client = new EventsServiceClient();
    Events events = client.getEventsPort(getServerUrl());
    Holder<Integer> countHolder = new Holder<Integer>();
    ArEventList list = events.getEventListById(getSessionToken(), 0,
                                    100000, 44, false, countHolder);
    System.out.println(list.getAny());             // => []
    System.out.println(list.getOtherAttributes()); // => {}
    System.out.println(list.getArrayType());       // => null
    System.out.println(list.getHref());            // => "#0"
    System.out.println(list.getId());              // => null
    System.out.println(list.getOffset());          // => null
    System.out.println(countHolder.value);         // => 788


So how can I get at the actual elements returned in the Array?

  -- Scott


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to