Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94762

Re: Fwd: Request for Information XML-RPC (Python)

From dieter <dieter@handshake.de>
Subject Re: Fwd: Request for Information XML-RPC (Python)
Date 2015-07-30 08:10 +0200
References <CAKsfBhG7omPzk-4v9UH_FAGt2UdxGkBVa5GyOcRFVBkwUFevvQ@mail.gmail.com> <CAKsfBhFCz2faBYaLcSsfOvWgzOtAmj4oH7x3YoAukGq7MyjWTQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1086.1438236651.3674.python-list@python.org> (permalink)

Show all headers | View raw


"Davide D'Arenzo" <davide.darenzo@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).

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fwd: Request for Information XML-RPC (Python) dieter <dieter@handshake.de> - 2015-07-30 08:10 +0200

csiph-web