Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: SOAP::Lite games.

by rfb (Sexton)
on Oct 24, 2001 at 02:30 UTC ( #120938=note: print w/replies, xml ) Need Help??

in reply to SOAP::Lite games.

my perception of soap: the object is created and maintained on the service side, and the client would just make calls and get results.. is this correct?

Replies are listed 'Best First'.
Re: Re: SOAP::Lite games.
by Fletch (Chancellor) on Oct 24, 2001 at 06:28 UTC

    Basically, yes. The real object lives on the server and its code is executed there. You get a handle (sometimes called a proxy object since it stands in as the proxy for the real, remote instance) on the client side that takes care of marshalling the arguments (rolling them up into the XML wire format) and getting them sent to the server where the actual method runs. Any return value is again marshalled back into XML and returned to the caller, which turns things back into perl values.

      Actually, I'm not sure that's true. I don't believe the object really exists on the server side. When I call methods on my local object, it looks like SOAP::Lite is sending the state of the object via XML each time, and the server then bless's that object, and calls the method on it. Also, you can run a SOAP::Lite server via a simple CGI transport. If you are running CGI with Apache, those "servers" are all running in different processes. How could it maintain a persistent object across multiple processes? -Mike

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-12-04 02:03 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.