Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmlrpc_encode_request(3) [php man page]

XMLRPC_ENCODE_REQUEST(3)						 1						  XMLRPC_ENCODE_REQUEST(3)

xmlrpc_encode_request - Generates XML for a method request

SYNOPSIS
string xmlrpc_encode_request (string $method, mixed $params, [array $output_options]) DESCRIPTION
Warning 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. PARAMETERS
o $method - Name of the method to call. o $params - Method parameters compatible with method signature. o $output_options - Array specifying output options may contain (default values are emphasised): ooutput_type: php, xml overbosity: no_white_space, newlines_only, pretty oescaping: cdata, non-ascii, non-print, markup (may be a string with one value or an array with multiple values) oversion: simple, xmlrpc, soap 1.1, auto oencoding: iso-8859-1, other character set supported by iconv RETURN VALUES
Returns a string containing the XML representation of the request. EXAMPLES
Example #1 XMLRPC client functions example <?php $request = xmlrpc_encode_request("method", array(1, 2, 3)); $context = stream_context_create(array('http' => array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request ))); $file = file_get_contents("http://www.example.com/xmlrpc", false, $context); $response = xmlrpc_decode($file); if ($response && xmlrpc_is_fault($response)) { trigger_error("xmlrpc: $response[faultString] ($response[faultCode])"); } else { print_r($response); } ?> SEE ALSO
stream_context_create(3), file_get_contents(3), xmlrpc_decode(3). PHP Documentation Group XMLRPC_ENCODE_REQUEST(3)

Check Out this Related Man Page

XML-RPC-API2CPP(1)					      General Commands Manual						XML-RPC-API2CPP(1)

NAME
xml-rpc-api2cpp - Make a C++ wrapper class for an XML-RPC API SYNOPSIS
xml-rpc-api2cpp server-url remote-method-prefix c++-class-name DESCRIPTION
xml-rpc-api2cpp queries an XML-RPC server using the XML-RPC Instrospection API designed by Edd Dumbill. It then prints a C++ wrapper class to standard output. This class can be used with xmlrpc-c's C++ API. You can find a list of supported XML-RPC server libraries (and patches for many others) at http://xmlrpc-c.sourceforge.net/hacks.php. OPTIONS
server-url The name of the server to query. Try http://xmlrpc-c.sourceforge.net/cgi-bin/interop.cgi. remote-method-prefix The prefix of the methods to wrap. For example, to wrap all the system.* calls, you could specify "system". c++-class-name The name of the C++ class to generate. Try "SystemProxy". BUGS
xml-rpc-api2cpp can't talk to certain PHP servers based on Edd Dumbill's PHP library, because the trailing bytes of the XML-RPC message get truncated in HTTP pipelining mode. It's not clear whether this is a PHP, Apache or w3c-libwww bug. xml-rpc-api2cpp assumes that method descriptions are ASCII text, not HTML as specified in the standard. (In practice, both conventions are often seen.) It may also get unhappy if method descriptions contain "*/". In general, error messages and diagnostics are still fairly poor. SEE ALSO
xmlrpc-c(7), xml-rpc-api2txt(1). This program is part of xmlrpc-c. AUTHOR
This manual page was written by Eric Kidd <eric.kidd@pobox.com>. It may be distributed under the same terms as the rest of xmlrpc-c. June 27, 2001 XML-RPC-API2CPP(1)
Man Page