RE: [Zope-dev] Zope client? (invitation for developers)
That's a Zope security issue, really. Client would most likely have the same problem. But let me explain why I used XML-RPC: ZPublisher.Client always returns it's results a string, while XML-RPC pickles Python objects into XML and then unpickles them back into Python objects.
While I understand what you mean, this isn't entirely accurate. XML-RPC doesn't use the pickle module. It marshals return values into one of its known datatypes. It likewise can't handle arbitrary objects transparently.
Chris McDonough wrote:
While I understand what you mean, this isn't entirely accurate. XML-RPC doesn't use the pickle module. It marshals return values into one of its known datatypes. It likewise can't handle arbitrary objects transparently.
Yup, marshal is the word I wanted. Or, since there's a marshal module, serialize. Anyway, XML-RPC is far superior to Z.Client, and SOAP will be better cause it can also serialize None, IIRC. -- Itamar S.T. itamar@maxnm.com
On Thu, 11 May 2000 19:06:14 +0300, Itamar Shtull-Trauring <itamar@maxnm.com> wrote: <much deleted>
SOAP will be better cause it can also serialize None, IIRC.
True, but the current draft of the SOAP spec has no support for serializing dictionaries ;-( Toby Dickenson tdickenson@geminidataloggers.com
Toby Dickenson wrote:
On Thu, 11 May 2000 19:06:14 +0300, Itamar Shtull-Trauring <itamar@maxnm.com> wrote:
<much deleted>
SOAP will be better cause it can also serialize None, IIRC.
True, but the current draft of the SOAP spec has no support for serializing dictionaries ;-(
Can't dictionaries be serialised as structures ? I don't see anything against it in the original XML-RPC spec either. ----------------- Hannu
Can't dictionaries be serialised as structures ?
I don't see anything against it in the original XML-RPC spec either.
They're called 'structs' in XML-RPC-speak. -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org
participants (4)
-
Chris McDonough -
Hannu Krosing -
Itamar Shtull-Trauring -
Toby Dickenson