[Zope-dev] Re: [Zope] xmlrpc calls require string results?

Michel Pelletier michel@digicool.com
Fri, 05 Nov 1999 12:57:13 -0500


I've moved this thread to zope-dev.

Dan Pierson wrote:
> 
> 
> I can understand this in principal, but methods that return simple integers
> fail.  I'd expect xmlrpc to be able to handle them.

It does.
 
> Also some of the articles in the Byte series talk about passing structures
> back and forth so I assumed that the xmlrpc support was smart enought to do
> things like pack a list of ids (i.e. list of strings) as an XML structure on
> its own.

It does this also.

DTML Method 'rpc':

<dtml-return "5">

In Python:

Py$ import xmlrpclib
Py$ x = xmlrpclib.Server('http://korak:13080/')
Py$ x.rpc()
5
Py$