Re: AW: AW: AW: WSDL error can someone help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Christian,

I think I'm accessing the server now.
Do I need to change any code in my server for implement nusoap? I would
prefer to use it over regular SoapClient.

I'm getting the error.
Fatal error: Call to a member function getStockQuote() on a non-object in
/var/www/distribsys/newtest/client.php on line 7

Client code here again.
<?php
require_once('../nusoap/lib/nusoap.php');

$c = new
nusoap_client('http://localhost:80/distribsys/newtest/server.php?wsdl');

$proxy = $c->getProxy();
$stockprice = $proxy->getStockQuote('ABC');
#$stockprice = $c->call('getStockQuote',array('symbol' => 'ABC'));

echo "The stock price for 'ABC' is $stockprice.";

?>
 
And server is the same.

Thanks again for all the help. It's very much appreciated. I don't know how
I would have solved this myself.



Christian Wenz-4 wrote:
> 
> 
>> $c = new
>> soapclient('http://localhost/distribsys/newtest/server.php?wsdl');
> 
> Aah, didn't spot that at first. SoapClient is from PHP5's SOAP extension.
> Use nusoap_client instead.
> 
> If you want to use SoapClient, omit the getProxy() call.
> 
> --Christian
> 
> -- 
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/WSDL-error-can-someone-help-tp14985983p14998257.html
Sent from the Php - Soap mailing list archive at Nabble.com.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux