It is possible and should work exactly as you specified. Take a look
into t/03-server.t and search for "Server handler with complex
dispatches". In fact dispatch will look like
dispatch($obj), because class is already known (object is blessed
into this class, so you don't need specify it). Give it a try, but my
tests work with it. It should work also with COM objects, but I
didn't include test in my test suite. And don't forget that ALL
method calls to specified object will be allowed, there is no way to
limit it, but probably that's what you want.
Best wishes, Paul.
> I was wondering if dispatching to an existing object was possible.
> Something like:
> use SomeClass;
> $obj = new SomeClass();
> use SOAP::Transport::HTTP;
> ->object_dispatch(SomeClass => $obj)
> So, whenever an access to class SomeClass is made, it makes the
> like: $obj->method() instead of SomeClass->method().
> Each of my http access are fairly expensive here, network wise,
> taking upwards of 1 second, so I can't afford to call
> SomeClass->new() accross the network everytime.
> Any suggestion?
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices