This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Adam.Bielański
Recipients Adam.Bielański
Date 2010-11-15.12:27:13
SpamBayes Score 2.5142932e-10
Marked as misclassified No
Message-id <1289824037.0.0.671749345837.issue10425@psf.upfronthosting.co.za>
In-reply-to
Content
XMLRPC standard doesn't support None/nil/null values. Element `<nil/>` was added as an extension to original protocol.

Currently sending None object through xmlrpclib produces `<value><nil/></value>` string. This causes parsing errors in more sophisticated XMLRPC parsers (like org.apache.xmlrpc for Java) which require `<nil/>` element to be declared in namespace for extensions: xmlns:ex='http://ws.apache.org/xmlrpc/namespaces/extensions'

Attached patch makes xmlrpclib use that namespace for sending None values both in method calls and responses, so None value might be passed both ways. It isn't bound to use fixed prefix for extensions namespace and it also parses XML produced by original xmlrpclib (without any namespace at all), so it is backward compatible.

It does its job communicating with org.apache.xmlrpc library now, using default parser on the Python side which is an improvement to original version, so I'd like to see it included in the next Python 2.x release, if possible.
History
Date User Action Args
2010-11-15 12:27:17Adam.Bielańskisetrecipients: + Adam.Bielański
2010-11-15 12:27:17Adam.Bielańskisetmessageid: <1289824037.0.0.671749345837.issue10425@psf.upfronthosting.co.za>
2010-11-15 12:27:13Adam.Bielańskilinkissue10425 messages
2010-11-15 12:27:13Adam.Bielańskicreate