(PHP 4 >= 4.1.0, PHP 5, PHP 7)

xmlrpc_server_register_introspection_callbackRegister a PHP function to generate documentation


xmlrpc_server_register_introspection_callback(resource $server, string $function): bool

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.


This function is currently not documented; only its argument list is available.

add a note add a note

User Contributed Notes 1 note

giunta dot gaetano at gmail dot com
1 year ago
The introspection callback function should return an XML string with the following format:

<?xml version='1.0'?>
<introspection version='1.0'>
  <methodDescription name='introspection.hello'>
   <author>Dan Libby</author>
   <purpose>greets the caller and demonstrates use of introspection mechanism</purpose>
      <value type='string' name='name'>name of the caller</value>
      <value type='string'>a greeting to the caller</value>
      <item>returns fault code 1 if the caller's name is not specified</item>
    <item>this is a lame example</item>
    <item>example of multiple notes</item>
To Top