PHP  
downloads | documentation | faq | getting help | mailing lists | | php.net sites | links 
search for in the  
previousxml_set_unparsed_entity_decl_handlerxmlrpc_decode_requestnext
Last updated: Tue, 03 Sep 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Hungarian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Swedish | Turkish

CVI. Funzioni XMLRPC

Attenzione

Questo modulo � SPERIMENTALE. Ovvero, il comportamento di queste funzioni, i nomi di queste funzioni, in definitiva tutto ci� che � documentato qui pu� cambiare nei futuri rilasci del PHP senza preavviso. Siete avvisati, l'uso di questo modulo � a vostro rischio.

Sommario
xmlrpc_decode_request -- Decodifica XML nei nativi tipi di PHP
xmlrpc_decode -- Decodifica XML nei nativi tipi di PHP
xmlrpc_encode_request -- Genera XML per un metodo di richiesta
xmlrpc_encode -- Genera XML per un valore PHP
xmlrpc_get_type -- Riceve il tipo di xmlrpc per un valore PHP. Maggiormente � usato per le stringhe base64 e datetime
xmlrpc_parse_method_descriptions -- Decodifica XML in una lista di method descriptions
xmlrpc_server_add_introspection_data -- Aggiunge documentazione introspettiva
xmlrpc_server_call_method -- Struttura le richieste XML e i metodi di chiamata
xmlrpc_server_create -- Crea un server xmlrpc
xmlrpc_server_destroy -- Distrugge le risorse del server
xmlrpc_server_register_introspection_callback -- Registra una funzione PHP per generare la documentazione
xmlrpc_server_register_method -- Registra una funzione PHP nel metodo di risorsa abbinato method_name
xmlrpc_set_type -- Imposta il tipo di xmlrpc, base64 o datetime, per un valore di stringa PHP
User Contributed Notes
Funzioni XMLRPC
add a note about notes
[email protected]
27-Dec-2001 10:01

Refer to the below link for documentation / latest releases of the package.


[email protected]
08-Jan-2002 12:26

"Latest releases" is a bit redundant, since this extension is bundled into PHP (as of 4.1.0). You don't need to download anything from sourceforge to make this work. Just compile PHP with the --with-xmlrpc flag.

The site is useful, however, for documentation.

[email protected]
24-Apr-2002 04:05

An alternative XML-RPC implementation is available at - it's written in PHP so you can use it on servers for which you don't have the luxury of rebuilding PHP on.

nic

ivanr @ webkreator.com
21-Jun-2002 06:50

For a really easy way to use this XML-RPC extension take a look at

XML-RPC Class Server ()

It automatically creates servers out of PHP classes. Creating clients is almost as easy, especially with the recent addition of the overload extension to PHP (see ).

[email protected]
28-Jul-2002 08:33

Anyone interested in PHP-GTK talking to an XML-RPC server:


[email protected]
15-Aug-2002 03:32

This extension does not handle the process of making making XML-RPC client requests via HTTP; it only prepares the XML-RPC request payload.

This differs from many other XML-RPC implementations but offers greater flexibility, allowing SSL connections, authentication headers and XML-RPC via other transports like SMTP.

[email protected]
24-Aug-2002 08:32

There's a handy library by Keith Devens (version 2.2.1) at


Here is a sample client. It remotely calls sample.sumAndDifference
with two parameters (3 and 5).
It returns:

sum => 8
difference => -2

<?php
include ("kd_xmlrpc.php");
// define("XMLRPC_DEBUG", 0); // Set to 1 for handy debugging

$method = "sample.sumAndDifference";
$params = array(XMLRPC_prepare(3), XMLRPC_prepare(5));
$request = xmlrpc_encode_request($method,$params);

$site = "xmlrpc-c.sourceforge.net";
$location = "/api/sample.php";

list($success, $result) = XMLRPC_request( $site, $location, $method, $params );

// XMLRPC_debug_print(); // uncomment for debugging

foreach ( $result as $key => $value ) {
echo(" $key => $value \n");
}

?>

[email protected]
26-Aug-2002 05:08

Oops, two changes to the above code:

// This style is better:
// better // $params = XMLRPC_prepare(array(3,5));
// uncool // $params = array(XMLRPC_prepare(3), XMLRPC_prepare(5));

// This line is unnecessary, it can be safely removed:
// $request = xmlrpc_encode_request($method,$params);

add a note about notes
previousxml_set_unparsed_entity_decl_handlerxmlrpc_decode_requestnext
Last updated: Tue, 03 Sep 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by:
Last updated: Fri Sep 6 19:51:45 2002 CEST