You are here: Re: [PHP] Overriding __soapCall « PHP « IT news, forums, messages
Re: [PHP] Overriding __soapCall

Posted by Marcus Bointon on 07/14/05 18:48

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация