Message121224
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. |
|
Date |
User |
Action |
Args |
2010-11-15 12:27:17 | Adam.Bielański | set | recipients:
+ Adam.Bielański |
2010-11-15 12:27:17 | Adam.Bielański | set | messageid: <1289824037.0.0.671749345837.issue10425@psf.upfronthosting.co.za> |
2010-11-15 12:27:13 | Adam.Bielański | link | issue10425 messages |
2010-11-15 12:27:13 | Adam.Bielański | create | |
|