Cant pass array objects in my soap call

Hi all,

I am using yii framework to develop my webservice. In that I can able to pass class objects. In mean while, i tried to pass object array to the soap function. I am getting below error.

SOAP-ERROR: Encoding: object hasn’t ‘id’ property

My class definition as below

class  Request{

    /**

    *@var info[] array of object     

    *@soap

    */

    public $infoarr

}

class info{

    /**

    *@var int id

    *@soap

    */

    public $id

}

My client function looks like below,

$wsdlUrl=Yii::app()->request->hostInfo.$this->createUrl('services');

$client=new SoapClient($wsdlUrl);

$objinfo = new info();

$objinfo->id = 2423423;

       

$objRequest = new Request();       

       

$objRequest->infoarr[0]    = $objinfo;   

$objRequest->infoarr[1]    = $objinfo;       

$lrespose = $client->perform($objRequest);

Kindly help with this, Thanks in advance

I guess it's caused by your WSDL caching…