|Keep It Simple, Stupid|
SOAP::Lite dispatch routineby gildir (Pilgrim)
|on Jan 03, 2002 at 13:51 UTC||Need Help??|
gildir has asked for the wisdom of the Perl Monks concerning the following question:
I have recently came up to SOAP::Lite and made som experiment with it, but for a real use i will nett some kind of custom dispatch routine for SOAP::Lite.
What I'm trying to do:
I have tried it this way (mod_perl style):
But alas, $object is just a simple blessed hash. This won't work, because server side objects has open database handles and several non-travsferable attributes. The only way to do this is to make a proxy object and instantiate server side object on every request.
But SOAP is supposed to be Object Access protocol, not procedural RPC ..... so I want to use it the right way.
Well, I have decided to try it another way around. I want to access
objects with URI like this: 'http://jewels.bgs.sk/MyUser/whateverId' and
have it dispatched the way I like it.
Or am I going wrong way from the very beginning?