Re: [SOAP] PHP SOAP - Extreme newbie questions :/
| From: | lmhelp2 | Date: | Thu, 01 Apr 2010 11:47:33 +0000 |
| Subject: | Re: [SOAP] PHP SOAP - Extreme newbie questions :/ | ||
| References: | 1 2 3 4 5 6 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3069@lists.php.net to get a copy of this message | ||
Hi,
Thank you for your answer :-).
(Apparently, you didn't send your message to the mailing list...)
Here is what happens when I try each of you proposals:
----- First case:
$stockprice = $c->__call("getStockQuote", array("symbol" =>
"ABC"));
============================================================================
>> php soap_tutorial_client.php
PHP Fatal error: Uncaught SoapFault exception: [HTTP] Not Found in
soap_tutorial_client.php:33
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', '
http://localhos...', 'urn:stockquote#...',
1, 0)
#1 soap_tutorial_client.php(33): SoapClient->__call('getStockQuote', Array)
#2 {main}
thrown in soap_tutorial_client.php on line 33
============================================================================
Line 33: $stockprice = $c->__call("getStockQuote", array("symbol" =>
"ABC"));
----- Second case:
$stockprice = $c->getStockQuotearray("symbol" => "ABC");
============================================================================
>> php soap_tutorial_client.php
PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in
soap_tutorial_client.php on line 34
============================================================================
Line 34: $stockprice = $c->getStockQuotearray("symbol" => "ABC");
----- Third case:
$stockprice = $c->getStockQuotearray("ABC");
============================================================================
>> php soap_tutorial_client.php
PHP Fatal error: Uncaught SoapFault exception: [Client] Function
("getStockQuotearray") is not a valid method for this service in
soap_tutorial_client.php:35
Stack trace:
#0 [internal function]: SoapClient->__call('getStockQuotear...', Array)
#1 soap_tutorial_client.php(35): SoapClient->getStockQuotearray('ABC')
#2 {main}
thrown in soap_tutorial_client.php on line 35
============================================================================
Line 35: $stockprice = $c->getStockQuotearray("ABC");
Not really working...
Best regards,
--
Lmhelp
--
View this message in context: http://old.nabble.com/PHP-SOAP---Extreme-newbie-questions-%3A--tp28095423p28107517.html
Sent from the Php - Soap mailing list archive at Nabble.com.