XML-RPC: reading and integrating a legacy XML-based remote call
XML-RPC is a protocol that sends a remote procedure name and parameters in an XML body of an HTTP POST request, then returns a result or fault in XML. This guide treats it as a legacy integration format, not as a claim that it is a widely used modern API standard. The published XML-RPC specification was written in 1999 and updated in 2003; it documents the protocol implemented by UserLand Frontier 5.1.
XML-RPC is a protocol that sends a remote procedure name and parameters in an XML body of an HTTP POST request, then returns a result or fault in XML. This guide treats it as a legacy integration format, not as a claim that it is a widely used modern API standard. The published XML-RPC specification was written in 1999 and updated in 2003; it documents the protocol implemented by UserLand Frontier 5.1.
Request and response shape
An XML-RPC call uses HTTP POST. Its body contains methodCall, methodName, and, when needed, params. Each argument is a value with a type such as integer, string, boolean, double, date, or Base64. Nested struct values are name/value pairs; arrays are ordered and have no member names.
The following request is illustrative. Its path, method name, and authentication are not requirements for any actual service.
POST /RPC2 HTTP/1.1
Host: api.example.test
Content-Type: text/xml
<?xml version="1.0"?>
<methodCall>
<methodName>inventory.getItem</methodName>
<params><param><value><i4>42</i4></value></param></params>
</methodCall>A successful response contains methodResponse with params/value. A procedure fault can use a fault structure. Read that application-level result separately from HTTP or network errors; current status-code behavior depends on the server implementation and contract.
Integration checks
**Endpoint and method name:** the XML-RPC specification leaves methodName interpretation to the server. Verify its name, parameter order, and types in the service documentation.
**HTTP headers:** the historical description uses POST and text/xml. Follow the actual server contract for authentication, message length, and other headers.
**Types and boundaries:** the old i4/int definition is a signed 32-bit integer. Check large numbers, date-time zones, decimal notation, and null handling in both client and server libraries.
**Structs and arrays:** struct member order is insignificant; array order matters. Required nested values are service-specific.
**Errors:** parse params and fault separately, and handle HTTP errors, timeouts, and malformed XML as separate recovery cases.
**Security and retries:** verify authentication, TLS, authorization, side effects, and XML parser policy. For untrusted XML, disable unnecessary DTD and external-entity access and set input limits. Do not infer that a timed-out POST did not run or retry it blindly.
XML-RPC describes data serialization for calls; it does not provide authentication, encryption, authorization, safe-retry rules, a universal fault-code registry, or time-zone policy. For an existing service, use its current contract and verify ambiguous legacy behavior instead of guessing.
Sources
[XML-RPC Specification (UserLand; 1999, updates through 2003)](https://xmlrpc.com/spec.md)
[OWASP: XML External Entity Prevention](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)
[RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html)