X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=php%2Fphpxmlrpc%2Fdemo%2Fclient%2Fproxy.php;h=9b7fce6bfd089f18006ff7da4b4605ae72d18662;hb=c379c0fff5edc592cc5d5d647c7fadb91317db87;hp=7173db032c32fdcf487642dd79c441249f085926;hpb=ae8b10f8363f7a1df02e77cbd820904c4ded10b8;p=plcapi.git diff --git a/php/phpxmlrpc/demo/client/proxy.php b/php/phpxmlrpc/demo/client/proxy.php index 7173db0..9b7fce6 100644 --- a/php/phpxmlrpc/demo/client/proxy.php +++ b/php/phpxmlrpc/demo/client/proxy.php @@ -1,14 +1,12 @@ - + xmlrpc - Proxy demo

proxy demo

Query server using a 'proxy' object

The code demonstrates usage for the terminally lazy. For a more complete proxy, look at at the Wrapper class

+

You can see the source to this page here: proxy.php

value(); } } - } $stateNo = rand(1, 51); -$proxy = new PhpXmlRpcProxy(new \PhpXmlRpc\Client('http://phpxmlrpc.sourceforge.net/server.php')); +$proxy = new PhpXmlRpcProxy(new PhpXmlRpc\Client(XMLRPCSERVER)); $stateName = $proxy->getStateName($stateNo); -echo "State $stateNo is ".htmlspecialchars($stateName); \ No newline at end of file +echo "State $stateNo is ".htmlspecialchars($stateName); + +require_once __DIR__ . "/_append.php";