Complex class using PHP soapserver mapclass
- by user559343
Hi all,
I need to create a server for processing SOAP requests. I have the wsdl and xml specifications, but I have a doubt: the xml elements are pretty complex, they are not simple type, but they have parent/child relationships (e.g. I have a Book class with an author subclass). How can I map this to PHP classes? In this example, should I create an author class i.e.:
class Author
{
public $name;
public $surname;
}
and then
class Book
{
public $author;
}
will $author be a class of type Author? Or a typed array?
Any help will be appreciated
Thanks and happy new year!