Re: [SOAP] some soap focus

From: Date: Thu, 17 Apr 2003 06:07:56 +0000
Subject: Re: [SOAP] some soap focus
References: 1 2 3  Groups: php.soap 
Request: Send a blank email to php-soap+get-562@lists.php.net to get a copy of this message
Jan Schneider wrote:
Shane Caraveo wrote:
Jesus M. Castagnetto wrote:
--- Jan Schneider <jan@horde.org> wrote:
Quoting Shane Caraveo <shane@caraveo.com>:
[...snip...]
My head's not in the right spot to think about this right now (not enough coffee yet), but it sounds like you should be using overload with the __call method. But I could add a soap overload feature which would:
Overloading is not an option because it requires ZE2.
Hmm, the overload extension has been included as default in PHP since at least 4.3.0 IIRC. It is on by default on 4.3.1, so you can use that right now. Cheers.
Yeah, but it's pretty broken. I just fixed one bug, but there are others that are still causing problems.
And as my primary goal is to get a SOAP server (beside the already existing XMLRPC server) working for Horde, we don't want to add another dependancy for the users before they can install and use Horde if not absolutely necessary. Shane's "fallback" scenario would work with almost every PHP 4 version. Jan.
So I've implemented a type of call overloading. You call a function on the server to override the normal call handling. Then all soap requests get directed to your call handler. It can be used with regular functions or objects (works basicly like call_user_func_array does). See example/server2.php in cvs for a demo of it's usage. Shane

« previous php.soap (#562) next »