You are here

Example: XML-RPC in xmlrpc 8

Demonstration of XML-RPC in Drupal 8.

This is an example of how to implement and XML-RPC server by registering callbacks to specific methods and how to make xmlrpc calls using the built-in xmlrpc() factory provided by the XML-RPC module.

See also

hook_xmlrpc()

xmlrpc()

xmlrpc_errno()

xmlrpc_error_msg()

File

xmlrpc_example/xmlrpc_example.module, line 8
Module file for xmlrpc_example module.

Functions

Namesort descending Location Description
xmlrpc_example_xmlrpc xmlrpc_example/xmlrpc_example.module Implements hook_xmlrpc().
xmlrpc_example_xmlrpc_alter xmlrpc_example/xmlrpc_example.module Implements hook_xmlrpc_alter().
_xmlrpc_example_alter_add xmlrpc_example/xmlrpc_example.module Sum the two arguments without limit checking.
_xmlrpc_example_alter_subtract xmlrpc_example/xmlrpc_example.module Return the difference of the two arguments without limit checking.
_xmlrpc_example_server_add xmlrpc_example/xmlrpc_example.module This is the callback for the xmlrpc_example.add method.
_xmlrpc_example_server_subtract xmlrpc_example/xmlrpc_example.module This is the callback for the xmlrpc_example.subtract xmlrpc method.