i am using the PHP XML RPC Class from http://phpxmlrpc.sourceforge.net. I created a Client and send my method with a struct/array to the server and i got some response, but i don't have a clue how to handle the response to work with an foreach() or get the responded values directly.
Maybe some of you may help me with that?
My Code:
include("../../lib/xmlrpc.inc");
$GLOBALS['xmlrpc_internalencoding'] = 'UTF-8';
$client=new xmlrpc_client("/xmlrpc.php", "www.domain.de", 443);
$client->setDebug(0);
$auth= new xmlrpcval(
array(
"username" => new xmlrpcval("user"),
"password" => new xmlrpcval('pw'),
), "struct");
$search = new xmlrpcval(
array(
'EMAIL'=> new xmlrpcval('[email protected]')
),'struct');
$message=new xmlrpcmsg('doProfileFindBy',
array(
$auth,
new xmlrpcval(964296, "int"),
$search
),'struct'
);
$r = $client->send($message, 0, 'https');
echo '<pre>';
var_dump($r);
echo '</pre>';
I do receive a response with the Data i am looking for but it is not formatted to use it as an array or so.
Hope someone can help me with that. Many thanks!