tags:

views:

12

answers:

0

By default, XML Schema complexTypes are mapped to StdObjects.

You can make ext/soap map them to specific PHP classes like this $server = new SoapClient("books.wsdl", array('classmap' => array('MyBook' => "MyBook")));

My problems is that the MyBook object has one of the properties an array of MyPage objects and even if i defined this :

$server = new SoapClient("books.wsdl", array('classmap' => array('MyBook' =>     "MyBook",'MyPage'=>'Mypage')));

The final result is an object Mybook with an array of StdObjects as properties. Why isn't the mapping working for imbricated objected also ? How can I do this ?