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

From: Date: Sun, 10 Jul 2005 16:38:38 +0000
Subject: #33631 [Opn->Asn]: SOAP-RPC calls with parameters only succeed when __call() invoked explicitly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81635@lists.php.net to get a copy of this message
ID: 33631 Updated by: sniper@php.net Reported By: jw at jwscripts dot com -Status: Open +Status: Assigned Bug Type: SOAP related Operating System: Windows XP PHP Version: 5.1.0b2 -Assigned To: +Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2005-07-10 12:14:12] jw at jwscripts dot com 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 this bug report at http://bugs.php.net/?id=33631&edit=1

« previous php.bugs (#81635) next »