From: polettog at gmail dot com Operating system: linux 32bits PHP version: 5.3.22 Package: SOAP related Bug Type: Bug Bug description:SoapClient ignores faults sent by SoapServer
Description: ------------ A client request can be "one way" or not, if "one way", an empty response will be given to the caller (__getLastResponse() returns empty string). As i can see in soap.c (do_soap_call() : 2692), the "one way" detection is based on the wsdl : if the function (operation) has no "output message", no need to read the response, but in this case no faults will be taken in count. I report it as a bug since there is no mention in the doc of the necessity for a function to return something to make SoapFault system work and __getLastResponse() work. I first wanted to post it as a note in the doc but it says to not post bugs there. Expected result: ---------------- __getLastResponse() returns the response and SoapFault's are thrown in the client Actual result: -------------- __getLastResponse() returns empty string and no SoapFault thrown in the client (SoapFault's are lost in nature) -- Edit bug report at https://bugs.php.net/bug.php?id=64420&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64420&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64420&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64420&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64420&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64420&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64420&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64420&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64420&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64420&r=support Expected behavior: https://bugs.php.net/fix.php?id=64420&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64420&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64420&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64420&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64420&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64420&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64420&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64420&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64420&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64420&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64420&r=mysqlcfg