Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2021-10-17 20:23 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (72 votes). Check out past polls.