Skip to main content
This example demonstrates how to make XML-RPC calls with Drupal.
The "Request methods" button makes a request to the server and asks for the available list of methods, as a service discovery request.
The "Add integers" and "Subtract integers" use the xmlrpc() function to act as a client, calling the XML-RPC server defined in this same example for some defined methods.
An XML-RPC error will result if the result in the addition or subtraction requested is out of bounds defined by the server. These error numbers are defined by the server.
The "Add and Subtract" button performs a multicall operation on the XML-RPC server: several requests in a single XML-RPC call.
Enter an integer
Enter a second integer
Copyright 2019· All rights reserved