Zend Framework Soap server
Thursday, November 13th, 2008 - 6:07 pm - Life, Programming, Technology
Thanks for great explanation Viktorai Agejevai
Server class has function:
/**
* @desc Get Product info by product_id
* @param int $product_id
* @return array
*/
public function getProduct($product_id)
{
$result = array(
"product_id"=>$product_id,
"title"=>'Product Title'
);
return $result;
}
Client get response:
product_id 2 title Product Title
I want this response to be like this:
2
How do i do that ?
$result = new stdClass();
$result->product_id = “2″;
$result->title = “Product Title”;
return $result;
Thanks Vladimir, tomorrow i will try this, and post my results
Yes, that helped