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


Re: [Xen-API] Typing in XML-RPC

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Typing in XML-RPC
From: Daniel Veillard <veillard@xxxxxxxxxx>
Date: Mon, 26 Jun 2006 05:21:25 -0400
Cc: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 Jun 2006 02:21:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060626083407.GB787@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>
References: <449C3D47.6070806@xxxxxxxxxx> <20060626083407.GB787@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: veillard@xxxxxxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Mon, Jun 26, 2006 at 09:34:08AM +0100, Ewan Mellor wrote:
> > Another thing to consider is having a type of exception.  I like 
> > exception based APIs (i'll say that for another email) however the 
> > format of the standard XML-RPC exception leaves a lot to be desired.
> I agree that we should be using exceptions, and I also agree that the XML-RPC
> exception specification is not great.  The document proposes using a string
> array for exception code and parameters.  A binding for a language with
> exceptions could then marshall those into first class exceptions, and that's
> certainly the way I'd want to do it.

  Do we have a list of those error codes, or is this something which needs
to be defined, I don't think I saw them.


Daniel Veillard      | Red Hat http://redhat.com/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

xen-api mailing list

<Prev in Thread] Current Thread [Next in Thread>