ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:addons:xmlrpc

This is an old revision of the document!


The xmlrpc interface

The XML-RPC interface is Deprecated and will be removed in ADOdb 5.21.0. Please refer to Issue #671 for further information.

This page will be removed 1st May 2021.

requires 'contrib/toxmlrpc.inc.php'

Description

This experimental contribution creates an interface between an ADOdb recordset and the xmlrpc standard. The interface has 2 dependencies

API

The API exposes 3 public methods:


rs2xmlrpcval

Syntax
string rs2xmlrpcval(
       obj $recordeSet
       )

The method rs2xmlrpcval() takes an ADdb recordset and returns a string containing an xmlrpc formatted object.

Usage

include 'adodb/contrib/toxmlrpc.inc.php'
/*
* Connection assumed
*/
$sql = 'select * from orders';
$result = $db->execute($sql);
 
$rpc = rs2xmlrpc($result);
 
print $rpc;
/*
* prints the rpc object
*/

xmlrpcval2rs

Due to lack of maintenance this method is broken when used with the current xmlrpc library

Syntax
ADODBrecordset xmlrpcval2rs (
    string $xmlrpcval
    )

The method xmlrpcval2rs() takes a correctly formatted xmlrpc string and creates an ADOdb recordset object.


rs2xmlrpcstring

Due to lack of maintenance this method is broken when used with the current xmlrpc library

Syntax
ADODBrecordset rs2xmlrpcstring (
    string $xmlrpcval
    )

The method rs2xmlrpcstring () has an unknown utility

v5/addons/xmlrpc.1611528714.txt.gz · Last modified: 2021/01/24 23:51 by dregad