|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-03-26 16:12 UTC] aavindraa at gmail dot com
Description: ------------ --- From manual page: http://www.php.net/soapclient.soapcall --- I am unable to override the method __soapCall in SoapClient. Is there something fundamental that I'm missing? Test script: --------------- public TestSoap extends SoapClient { public function __soapCall($function_name, $arguments, $options = null, $input_headers = null, &$output_headers = null) { echo "OVERRIDEN"; exit(1); } } $myClient = new SoapClient("http://example.com/some-service.wsdl"); $myClient->someMethod(); Expected result: ---------------- THe method override should echo OVERRIDDEN and stop the script Actual result: -------------- The method is never called and it continues as normal PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 13:00:01 2025 UTC |
Well, you should instantiate your class instead of SoapClient: $myClient = new TestSoap("http://example.com/some-service.wsdl");