[eluser]veledrom[/eluser]
Hi guys,
I am trying to return multidimensional array in xmlrpc response but no luck. Please help.
Thanks
SERVER
Code:
public function response_search($request)
{
$parameters = $request->output_parameters();
$search_result = array(
array('name' => 'myname1', 'surname' => 'mysurname1'),
array('name' => 'myname2', 'surname' => 'mysurname2')
);
$response = array(
array('REQUEST' => array($parameters['0']['requesting'], 'string'),
'RESPONSE' => array($search_result, 'array')),
'struct'
);
return $this->xmlrpc->send_response($response);
}
When I do
print_r($this->xmlrpc->display_response()); I get this result but somehow I cannot see the result in RESPONSE array even though if do :
Code:
Array
(
[REQUEST] => search
[RESPONSE] => Array
(
[0] => Array
[1] => Array
)
)