#33631 [NEW]: SOAP-RPC calls with parameters only succeed when __call() invoked explicitly

From: Date: Sun, 10 Jul 2005 10:14:13 +0000
Subject: #33631 [NEW]: SOAP-RPC calls with parameters only succeed when __call() invoked explicitly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81630@lists.php.net to get a copy of this message
From: jw at jwscripts dot com Operating system: Windows XP PHP version: 5.1.0b2 PHP Bug Type: SOAP related Bug description: SOAP-RPC calls with parameters only succeed when __call() invoked explicitly Description: ------------ SOAP-RPC calls with parameters only succeed when __call() invoked explicitly; when no parameters are required, $soapclient->functionName() succeed as expected. In the reproduce code below, when replacing: $result = $client->getRate($params); with $result = $client->__call('getRate', $params); everything works... Reproduce code: --------------- $wsdl = 'http://www.xmethods.net/sd/CurrencyExchangeService.wsdl'; // Parameters to send $params = array( 'country1' => 'USA', 'country2' => 'UK' ); $client = new SoapClient($wsdl); $result = $client->getRate($params); Expected result: ---------------- No output Actual result: -------------- Notice: Array to string conversion in G:\Apache Group\Apache2\htdocs\xins-soap\rpc-test.php on line 13 Notice: Undefined property: SoapFault::$faultstring in Unknown on line 0 Fatal error: Uncaught SoapFault exception: [soap:Server] (null) in G:\Apache Group\Apache2\htdocs\xins-soap\rpc-test.php:13 Stack trace: #0 G:\Apache Group\Apache2\htdocs\xins-soap\rpc-test.php(13): SoapClient->__call('getRate', Array) #1 G:\Apache Group\Apache2\htdocs\xins-soap\rpc-test.php(13): SoapClient->getRate(Array) #2 {main} thrown in G:\Apache Group\Apache2\htdocs\xins-soap\rpc-test.php on line 13 -- Edit bug report at http://bugs.php.net/?id=33631&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33631&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33631&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33631&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33631&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33631&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33631&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33631&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33631&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33631&r=support Expected behavior: http://bugs.php.net/fix.php?id=33631&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33631&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33631&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33631&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33631&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33631&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33631&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33631&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33631&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33631&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33631&r=mysqlcfg

« previous php.bugs (#81630) next »