From: matt at warnockinc dot com Operating system: Redhat EL5 64-bit PHP version: 5.2.5 PHP Bug Type: Reproducible crash Bug description: SOAP fault, appears that function doesn't exist
Description: ------------ I am writing a script and keep getting an error. It appears that the function "logout" doesn't exist, however it is in the server, and in the WSDL. I removed everything but the function, and can reproduce the error Reproduce code: --------------- server: $server = new SoapServer( 'ws.wsdl', array('uri' => "urn://www.herong.home/res") ); $server->SetClass('ws'); $server->handle(); class ws { /** * logout method * * @param string $sessionkey sessionKey * @return string status status */ function logout ( $sessionkey ) { return "true"; } } Client: $client = new SoapClient(null, array( 'location' => "http://localhost/testserver.php", 'uri' => "urn://www.herong.home/req", 'trace' => 1 )); $return = $client->__soapCall("logout",array("04cbf12ab33ccf7710c24ef7f59699393371f319")); print_r( $return ); Expected result: ---------------- i should see "true" Actual result: -------------- Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Procedure 'logout' not present in /home/user/public_html/Dunbar/testclient.php:9 Stack trace: #0 /home/user/public_html/Dunbar/testclient.php(9): SoapClient->__soapCall('logout', Array) #1 {main} thrown in /home/user/public_html/Dunbar/testclient.php on line 9 -- Edit bug report at http://bugs.php.net/?id=44117&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44117&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44117&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44117&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44117&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44117&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44117&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44117&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44117&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44117&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44117&r=support Expected behavior: http://bugs.php.net/fix.php?id=44117&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44117&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44117&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44117&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44117&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44117&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44117&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44117&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44117&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44117&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44117&r=mysqlcfg