Complex class using PHP soapserver mapclass
Posted
by
user559343
on Stack Overflow
See other posts from Stack Overflow
or by user559343
Published on 2010-12-31T15:48:46Z
Indexed on
2010/12/31
15:54 UTC
Read the original article
Hit count: 166
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!
© Stack Overflow or respective owner