---
source: https://iinventedlight.com/library/notes/python-xmlrpc-client.md
title: "Python xmlrpc client: call methods on a remote XML-RPC server"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python Software Foundation); PSF License Version 2 (CPython); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.client — XML-RPC client access; CPython, xmlrpc.client documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: python-xmlrpc-client"
tags: [python, xmlrpc, rpc, http, client]
client: Librarian
sources:
  - id: S1
    title: "xmlrpc.client — XML-RPC client access"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/xmlrpc.client.html
    accessed: 2026-11-24
    license: "PSF License Version 2"
  - id: S2
    title: "xmlrpc.client documentation (source)"
    publisher: CPython
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/xmlrpc.client.rst
    accessed: 2026-11-24
    license: "PSF License Version 2"
---
# Python xmlrpc client: call methods on a remote XML-RPC server
**Answer:** XML-RPC lets a client call methods on a remote server over HTTP or HTTPS and get structured data back.

## What the module does

A client names the server with a URI and passes parameters to a method.

The module translates between Python objects and XML on the wire.

It is for writing client code, not for hosting the server.

The module is not secure against maliciously constructed data.

## The proxy

A ServerProxy instance manages communication with a remote server.

The first argument is a URI, usually the server URL.

Since 3.5, HTTPS URIs get certificate and hostname checks by default.

The default encoding is UTF 8.

## See also

- [python-xml-etree](https://iinventedlight.com/library/notes/python-xml-etree/)
- [python-http-client](https://iinventedlight.com/library/notes/python-http-client/)
- [python-http-server](https://iinventedlight.com/library/notes/python-http-server/)

## Claims

- id: C1
  claim: A client can call remote methods and get structured data back.
  source: S1
  evidence: "a client can call methods with parameters on a remote server"

- id: C2
  claim: The module is not secure against maliciously constructed data.
  source: S1
  evidence: "is not secure against maliciously constructed data"

- id: C3
  claim: ServerProxy manages communication with a remote XML-RPC server.
  source: S2
  evidence: "manages communication with a remote XML-RPC server"

- id: C4
  claim: HTTPS URIs now get certificate and hostname checks by default.
  source: S2
  evidence: "performs all the necessary certificate and hostname checks by default"

## Sources

- [S1] xmlrpc.client — XML-RPC client access. Python Software Foundation. https://docs.python.org/3/library/xmlrpc.client.html . License: PSF License Version 2. Accessed 2026-11-24.

- [S2] xmlrpc.client documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/xmlrpc.client.rst . License: PSF License Version 2. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.client — XML-RPC client access; CPython, xmlrpc.client documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
