arrays - Zend_Soap : How to define return type struct in doc block? -
i have web service set using zend_soap, , public methods in web service. fact want return complex type.
for instance, if want return bidimensional array, rowset of table how should specify doc block? 1 of cases. want return array each element having int , 2 strings. like:
[0] = {1 , namea, stringa } [1] = {4 , nameb, stringb } [2] = {6 , namec, stringc } [3] = {9 , named, stringd }
how can achieve this? how can make more complex by, say, replace 3rd field array of int , string?
tia
use zend_soap_autodiscover http://framework.zend.com/manual/en/zend.soap.autodiscovery.html
with have define complex type
class complextype { /*put definitions of class here*/ }
and put in phpdoc this
/** * * @param int $id * @return complextype */ public function getsomething($id) {
Comments
Post a Comment