On Mon, Apr 02, 2007 at 03:37:17PM -0400, Stefan Berger wrote:
> Evan Bigall <evan.bigall@xxxxxxxxxxx> wrote on 04/02/2007 01:50:40 PM:
>
> > My "execute" method returns result.get("Value"), you should then be able
> > to cast that into a java Set, and iterate through all the key/value
> pairs.
>
> I would hope so, too, but it results in a ClassCastException. Which XML
> RPC library are you using and what version?
Glancing through the Apache XML-RPC library, version 3, it looks like you should
either be able to cast that to either an Object [], or failing that, a
List. Xen-API's Sets are marshalled as XML-RPC <array>s on the wire, and
it's up to the client library how to interpret that.
If you call getClass() on the result, you can see what it's giving you
back.
Ewan.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
|