Fwd: Request for Information XML-RPC (Python)

dieter dieter at handshake.de
Thu Jul 30 08:10:43 CEST 2015

"Davide D'Arenzo" <davide.darenzo at gmail.com> writes:

> I'm Davide D'Arenzo and I'm working with Python using the standard
> xmlrpclib library communicating between a JavaServer (that host xmlrpc
> server) and my python client. I have a problem and I hope that you should
> solve my issue.
> I want to send a DOM instance through xmlrpc protocol. I know that the
> istance are impossible to manage by xmlrpclib library in Python but this is
> what I need.

XML-RPC supports only a very small set of elementary types - and
"DOM instance" does not belong to this set.

Thus, you must ask your server administrator as what type the server
expects to get the XML (this may either by "string" or "binary"; I suppose,
it will be "binary"). You then convert your DOM instance into an
XML document, potentially using an appropriate encoding (likely "utf-8"),
and potentially wrap it into "xmlrpclib"'s "binary" wrapper (in case,
the server expects a binary string).

More information about the Python-list mailing list