You are here

function xmlrpc_error_get_xml in Drupal 6

Same name and namespace in other branches
  1. 4 includes/xmlrpc.inc \xmlrpc_error_get_xml()
  2. 5 includes/xmlrpc.inc \xmlrpc_error_get_xml()
  3. 7 includes/xmlrpc.inc \xmlrpc_error_get_xml()
1 call to xmlrpc_error_get_xml()
xmlrpc_server_error in includes/xmlrpcs.inc
Throw an XML-RPC error.

File

includes/xmlrpc.inc, line 387
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_error_get_xml($xmlrpc_error) {
  return <<<EOD
<methodResponse>
  <fault>
  <value>
    <struct>
    <member>
      <name>faultCode</name>
      <value><int>{<span class="php-variable">$xmlrpc_error</span>-&gt;<span class="php-function-or-constant property member-of-variable">code</span>}</int></value>
    </member>
    <member>
      <name>faultString</name>
      <value><string>{<span class="php-variable">$xmlrpc_error</span>-&gt;<span class="php-function-or-constant property member-of-variable">message</span>}</string></value>
    </member>
    </struct>
  </value>
  </fault>
</methodResponse>

EOD;
}