Menu

#31 Error sending Binary data

open
nobody
None
5
2004-08-27
2004-08-27
Anonymous
No

Using pyxmlrpclib as a replacement of xmlrpclib I get
the following error using xmlrpclib.Binary objects:

File "/usr/lib/python2.3/xmlrpclib.py", line 614, in
__dump
raise TypeError, "cannot marshal %s objects" %
type(value)
TypeError: cannot marshal <type 'rpcBase64'> objects

If I use xmlrpclib everithing goes ok.
Versions:
py-xmlrpc-0.8.8.3
python 2.3.3

>>> import pyxmlrpclib
>>> srv = pyxmlrpclib.ServerProxy(
"http://localhost:8000" )
>>> srv.foo( pyxmlrpclib.Binary( "ddkldskl" ) )
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in
__call__
return self.__send(self.__name, args)
File "/usr/lib/python2.3/xmlrpclib.py", line 1310, in
__request
allow_none=self.__allow_none)
File "/usr/lib/python2.3/xmlrpclib.py", line 961, in
dumps
data = m.dumps(params)
File "/usr/lib/python2.3/xmlrpclib.py", line 604, in
dumps
dump(v, write)
File "/usr/lib/python2.3/xmlrpclib.py", line 614, in
__dump
raise TypeError, "cannot marshal %s objects" %
type(value)
TypeError: cannot marshal <type 'rpcBase64'> objects

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.