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/
Home Products Support Community News


[Xen-devel] Re: Java support for Xen APIs

To: "Anthony Liguori" <anthony@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Java support for Xen APIs
From: "Ray Kelm" <kelmray@xxxxxxxxx>
Date: Thu, 29 Mar 2007 10:38:56 -0400
Cc: Premjith Rayaroth <premjith.rayaroth@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 29 Mar 2007 15:40:36 +0100
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WmI1LJDoe8HlD1CXnySKmMOOPm0K3xHcbtOvMT7X3leIckj1O0m1MfkoMBYyEMJlpJTTImcF8NYWZNWU9QyYyUcDesUV4NzA0ET2RinJX+Djpm/5BzmpK6oa2vWSdcxQTxPqcaxF6fTzuTfnmodFWCjMquKXOAa2Vlm0/ioqTMA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FzUunMKRmlyNc0l5RAXsJIbaTYtFpYkXMzhe+DQ+/mI2vwSqdevu2HEqyzDwFDLeKjn67fsiEtBeWsprSaiG69CtIEOTeMqEvcqh0sc9q2nB1W6vGoscjC2L3phTsPOANlaH3+5MLVsyrnitt+gM6oGd7y26Tbn4PZJI9f8sEuI=
Envelope-to: Keir.Fraser@xxxxxxxxxxxx
In-reply-to: <460BBFD5.3040404@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <460BB681.6070503@xxxxxxxxxx> <383b9200703290558u6373385eg896358398716337c@xxxxxxxxxxxxxx> <460BBFD5.3040404@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I'm sorry, I should have been more clear. Apache xml-rpc has support
for vendor extensions, which violate the original xml-rpc spec. In
order for them to be enabled, their client library negotiates with the
server implementation, and only if both sides have extensions enabled
does it support them. The expected situation is that if a non-apache
client accesses an apache server, it won't ask for extensions, so the
server will not use them. If an apache client accesses an non-apache
server, the negotiation is ignored, so the client disables the

One of those extensions is support for returning a null value (or
python's None in this case) as <nil> or maybe <ex:nil>. The python
xmlrpc code does this apparently by default, when you call a method
that has no return value, for example, xend.domain.unpause.

Here's some information about the extensions supported by apache's
library. http://ws.apache.org/xmlrpc/extensions.html

In the end, I was unable to get it to work because xend wasn't
responding in a way that apache recognized, so it was disabling
extensions. I had to add a custom handler for <nil> using a class
based on TypeFactoryImpl, which solved the problem nicely.


On 3/29/07, Anthony Liguori <anthony@xxxxxxxxxxxxx> wrote:
Ray Kelm wrote:
> I've had some success using the apache xml-rpc library to access xen
> with version 3.0.4. There were a few gotchas, such as having to enable
> extension support because xend was sending back nil as a result, which
> is only valid if extensions are enabled. Unfortunately, it appears
> that xend was not honoring the fact that extension support is
> negotiated.

Extension support isn't negotiated (at least, not by any API I know of).
      Do you have a reference for this?


Anthony Liguori

> It would be handy to have a packaged solution that exports a simple
> api for talking to xend, as building some of the control structures is
> a bit of a pain.
> -Ray
> On 3/29/07, Premjith Rayaroth <premjith.rayaroth@xxxxxxxxxx> wrote:
>> Hi,
>> Is Java support available for Xen APIs. Can I use Java to make XML-RPC
>> calls to the Xen machines? I assume only 'C' and 'Python' are supported.
>> Is there any plan to support Java.
>> Thanks
>> -Prem
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel

Xen-devel mailing list