[eluser]Nick Husher[/eluser]
I think your inner loop isn't defining a data type. It's attempting to typecast your array into a string and failing.
Code:
$query = $this->db->query("SELECT * FROM AR_Customer");
$counter = 0;
$myarray = array();
foreach($query->result() as $row) {
// you need to define a data type
$myarray[$counter] = array(array(
'CustomerNo' => $row->CustomerNo,
'CustomerName' => $row->CustomerName,
), 'struct');
$counter++;
}
$response = array($myarray, 'array');
return $this->xmlrpc->send_response($response);