WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] Java XML RPC with Xen-API?

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Java XML RPC with Xen-API?
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Tue, 3 Apr 2007 09:00:35 -0400
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 03 Apr 2007 05:59:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070403091437.GA7262@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

Ewan Mellor <ewan@xxxxxxxxxxxxx> wrote on 04/03/2007 05:14:37 AM:

> On Mon, Apr 02, 2007 at 11:21:58PM -0400, Stefan Berger wrote:
>
> > Ewan Mellor <ewan@xxxxxxxxxxxxx> wrote on 04/02/2007 05:40:26 PM:
> >

> >
> > Calling VM.get_all(7f0a5d0b-c0ff-f948-36e5-cbad03caf24c,...)
> > Returned object = {Status=Success, Value=[Ljava.lang.Object;@1faba46}
> > 'Value' has type class [Ljava.lang.Object;
>
> [Ljava.lang.Object means an Object[].  This is what I would expect.  Each
> element in that will be a String, so you will have to cast Value to Object [],
> and then cast each element in that array to String (because object references
> are strings on the wire).


Yes, that's it. Thanks!

  Stefan
>
> Ewan.
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api