http://qs321.pair.com?node_id=624311


in reply to Re^3: SOAP Modules (OO or not?)
in thread SOAP Modules (OO or not?)

Hmmmm, as for sending an object back, maybe it doesn't know what class it is, but it doesn't need to for what i'm doing. I want people to be able to build a structure in the XML, say, to represent a customer, with an array of phone numbers, etc. I've been able to received such a structure, and put it directly in a hashref in the method, and then make some changes, and send back the hashref, which gets represented fine in the XML being sent back.

Replies are listed 'Best First'.
Re^5: SOAP Modules (OO or not?)
by perrin (Chancellor) on Jul 01, 2007 at 15:44 UTC

    maybe it doesn't know what class it is, but it doesn't need to for what i'm doing

    If it doesn't know what kind of object it is, you aren't doing OO programming. That's a basic requirement. What you're talking about -- sending complex data structures back and forth -- is not OO. There is no object, no behaviors tied to it, no inheritance, no encapsulation, etc.

    It sounds like SOAP is working fine for you, but try not to confuse the issue by attempting to jam OO stuff where it doesn't fit. There's no reason to do that bless stuff you have in there now.