X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=php%2Fphpxmlrpc%2Fdemo%2Fclient%2Fwrap.php;h=4e3db40c425ca1388188a2ccfc5b827fcebf461f;hb=c379c0fff5edc592cc5d5d647c7fadb91317db87;hp=c13c55d3d5fbfa460efe69891680047aa39ad7d3;hpb=ae8b10f8363f7a1df02e77cbd820904c4ded10b8;p=plcapi.git diff --git a/php/phpxmlrpc/demo/client/wrap.php b/php/phpxmlrpc/demo/client/wrap.php index c13c55d..4e3db40 100644 --- a/php/phpxmlrpc/demo/client/wrap.php +++ b/php/phpxmlrpc/demo/client/wrap.php @@ -1,4 +1,4 @@ - + xmlrpc - Webservice wrappper demo

Webservice wrappper demo

@@ -10,12 +10,10 @@ 2) wrapping of remote methods into php functions
See also proxy.php for an alternative take +

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

return_type = 'phpvals'; // let client give us back php values instead of xmlrpcvals $resp = $client->send(new PhpXmlRpc\Request('system.listMethods')); if ($resp->faultCode()) { @@ -44,10 +42,11 @@ if ($resp->faultCode()) { if ($callable) { echo "Now testing function for remote method to convert U.S. state number into state name"; $stateNum = rand(1, 51); - // the 2nd parameter gets added to the closure - it is teh debug level to be used for the client + // the 2nd parameter gets added to the closure - it is the debug level to be used for the client $stateName = $callable($stateNum, 2); + echo "State $stateNum is ".htmlspecialchars($stateName); } } ?> - +