SOAP - Class Mapping


on docs we have a little example:

class PostController extends CController


    public function actions()


        return array(




                    'Post'=>'Post',  // 




and I do something like this:

                'classMap' => array(

                    'File', // setup mapping






     * Returns all predictions.

     * @return File[] the members records

     * @soap


    public function getPredictions() {

        return File::model()->findAll(); // returns 3 rec.


returned XML:




            <return SOAP-ENC:arrayType="ns1:File[3]" xsi:type="ns1:FileArray">

                <item xsi:type="ns1:File"/>

                <item xsi:type="ns1:File"/>

                <item xsi:type="ns1:File"/>




but <item xsi:type="ns1:File"/> is EMPTY, what is wrong for my code?


You have to adapt the model e.g. like I did here.


thanks a lot!