Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: SOAP Modules (OO or not?)

by Cagao (Monk)
on Jul 01, 2007 at 15:00 UTC ( #624311=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2021-03-03 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (87 votes). Check out past polls.

    Notices?