go ahead... be a heretic | |
PerlMonks |
Re: (jeffa) Re: SOAP::Lite dispatch routineby gildir (Pilgrim) |
on Jan 04, 2002 at 13:51 UTC ( [id://136240]=note: print w/replies, xml ) | Need Help?? |
Yes and No,
Yes, Perl objects are just a blessed references, but they may have inner objects which in turn may have other inner objects .. which may have xsub references in them or even open file descriptors. And that is a kind of my case. Every persistent object ($object) has in it a reference to its storage object. And that storage object includes an open (and bound) handle to LDAP storage. And No, your example will not work in any elegant way if you want to modify an object. Look at an example. I have fetched $object by use of instantiate() method as you suggested. But as the object is just a plain hash, it has no connection with original object on server. Modification of this object will no modify server-side object. Too bad. No persistence. What I'm trying to achieve is to get a 'proxy object' or a 'remote reference' on the SOAP client side. Something that I call $object->year(2002), it will call year() method on the original server-side object. This is more like CORBA IORs work. Passing object by reference, not by value.
In Section
Seekers of Perl Wisdom
|
|