Re: Overriding __soapCall

From: Date: Thu, 14 Jul 2005 15:48:22 +0000
Subject: Re: Overriding __soapCall
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-218697@lists.php.net to get a copy of this message
On 14 Jul 2005, at 16:07, Marcus Bointon wrote:
I've found various references to overriding the __call function (which is now completely obsolete as it clashes with a magic method) for the same kind of reason that I need to. So, it seems as if __soapCall is NOT called internally when calling a WSDL function
Answering my own question - __soapCall is not called internally, but you can force it by using __call (that is the magic method, not the obsolete __call function in SoapClient) by adding this function to the class:
    function __call($function, $args) {
        return $this->__soapCall($function, $args, null);
    }
This means that I can finally get to pass stuff though my own __soapCall method, though I have the feeling that it may prevent me doing other stuff later on (I'm not normally relying on __call functionality). Phew. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

« previous php.general (#218697) next »