Re: XML_RPC

From: Date: Wed, 29 Oct 2003 02:24:04 +0000
Subject: Re: XML_RPC
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8664@lists.php.net to get a copy of this message
Never mind, I see the struct is more for passing class objects around apparently. That was exactly what I was looking for. Tony Bibbs wrote:
Ok, great, next questions is do we have any examples of passing structs around? --Tony Marshall Roch wrote:
Tony Bibbs wrote:
Ok, thanks. I'll stick with the PEAR::XML_RPC for now since it removes the requirement for a specific PHP extension. Last question I have is does anyone have an example of have to get an XML_RPC service to return an array of values? All examples I see simply return single values which just won't work.
Try calling system.listMethods at xmlrpc.usefulinc.com/demo/server.php: <?php require_once 'RPC.php'; echo "<pre>"; $c = new XML_RPC_Client("/demo/server.php", "xmlrpc.usefulinc.com", 80); $c->setDebug(1); $f = new XML_RPC_Message('system.listMethods'); $r = $c->send($f); $v = $r->value(); echo "</pre>"; ?>
-- +-------------------+--------------------------------------------------+ |Tony Bibbs |[R]egardless of what you may think of our penal | |tony@tonybibbs.com |system, the fact is that every man in jail is one | | |less potential fisherman to clutter up your | | |favorite pool or pond. --Ed Zern | +-------------------+--------------------------------------------------+

« previous php.pear.general (#8664) next »