Hi
I have a webservice Zend_XmlRpc and have a problem returning an array.

$model  = new Application_Model_DbTable_Products();
$result = $model->getProduct(1);
return $result;

$result is an array like this

array (
  0 => array (
    'product_id' => '1',
    'name' => 'Product 1',
    'stock' => '123',
  ),
)

App throws an exception: Failed to parse response

If the array is hard-coded there's no problem:

return array (0 => array (
                'product_id' => '1',
                'name' => 'Product 1',
                'stock' => '123',
             ),
           );


The client gets the data without errors.

What could be the problem ?

Thanks in advance.

Cheers,
holo

Reply via email to