Go to Google Groups Home    phpsoa
Re: [phpsoa] inheritance and soap

Thomy Berlin <jbscoutber...@gmail.com>

Hi Flo

i'm not an expert here on the list - but why should the client know about
b,c and d if you only send an array of a ?

or did I mist something ... ?

regards
JBScout

2008/10/3 flo <f...@flobittner.de>

> I just ran into a problem with my soap connection. Server is java6 and
> client is php5.

> Everything works fine, but as soon as i work with a hierarchical
> structure of objects i get the problem that subclasses are lost.
> Following example shows a simple setup:

> Classes:
> class a
> class b extends a
> class c extends a
> class d extends a

> Via soap i send an array of a. On the client side b, c and d are lost
> now. Is there a way to keep subclasses?

> Thanks,
> flo