Thanks Stefan. Casting the call() return to a Vector worked. ----- Original Message ----- From: "Stefan Haustein" <stefan.haustein@trantor.de> To: <ksoap@enhydra.org> Sent: Sunday, July 22, 2001 11:42 PM Subject: Re: Ksoap: Returning an array of objects > > KvmMovieValue[] movies = (KvmMovieValue[])transport.call(rpc); > > > > What should I be doing to handle an array of objects in the body? > > kSOAP reads SOAP arrays to Java Vectors. If you need an > array of KvmMovieValue, you need an intermediate step such as > > Vector tmp = (Vector) transport.call (rpc); > KvmMovieValue[] movies = new KvmMovieValue(tmp.size ()); > for (int i = 0; i < movies.length; i++) > movies [i] = (KvmMovieValue) tmp.elementAt (i); > > If the wire format sent by the server does not contain > explicit type information, an additional step telling ksoap > the expected object types may be neccessary. Can you send > a wire copy of the data sent by the server? > > Best, > Stefan > > _______________________________________________ > Ksoap mailing list > Ksoap@enhydra.org > http://www.enhydra.org/mailman/listinfo.cgi/ksoap |