You are here

function xmlrpc_message in Drupal 6

Same name and namespace in other branches
  1. 4 includes/xmlrpc.inc \xmlrpc_message()
  2. 5 includes/xmlrpc.inc \xmlrpc_message()
  3. 7 includes/xmlrpc.inc \xmlrpc_message()

Construct an object representing an XML-RPC message.

Parameters

$message: String containing XML as defined at http://www.xmlrpc.com/spec

Return value

Object

2 calls to xmlrpc_message()
xmlrpc_server in includes/xmlrpcs.inc
The main entry point for XML-RPC requests.
_xmlrpc in includes/xmlrpc.inc
Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.

File

includes/xmlrpc.inc, line 140
Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 Version 1.7 (beta) - Simon Willison, 23rd May 2005 Site: http://scripts.incutio.com/xmlrpc/ Manual: http://scripts.incutio.com/xmlrpc/manual.php This…

Code

function xmlrpc_message($message) {
  $xmlrpc_message = new stdClass();
  $xmlrpc_message->array_structs = array();

  // The stack used to keep track of the current array/struct
  $xmlrpc_message->array_structs_types = array();

  // The stack used to keep track of if things are structs or array
  $xmlrpc_message->current_struct_name = array();

  // A stack as well
  $xmlrpc_message->message = $message;
  return $xmlrpc_message;
}