Advertising sustains the DA. Ads are hidden for members. Join today

On this page

XML-RPC api overview

Last updated on
12 December 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Drupal has an XML-RPC API that helps you provide methods for clients to call, and also a client library to make it easier to call methods on servers.

Server side

Providing XML-RPC methods for clients to consume is easy, and is akin to implementing a hook_menu to provide normal page callbacks. You will want to implement hook_xmlrpc(). The Examples project also has an example of implementing hook_xmlrpc in both Drupal 6 & 7.

Client side

Drupal contains a useful implementation of an XML-RPC client, the documentation of which is on the API site on the xmlrpc() function. The Examples project also has an example of using xmlrpc in both Drupal 6 & 7 to perform method calls over XML-RPC.

Tags

Help improve this page

Page status: No known problems

You can: