Soap ...
| From: | Carl Aarnes | Date: | Fri, 11 Apr 2003 11:20:35 +0000 |
| Subject: | Soap ... | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-546@lists.php.net to get a copy of this message | ||
Hi....
Im using Php4.3.2RC1(ISAPI module) on IIS5.0 Win2000 pro.
Now im trying to learn Soap and doing so using nuSoap,
but seems im getting trouble ...
the following code gives these errors.
Warning: Invalid argument supplied for foreach() in
D:\php-4.3.2RC1-Win32\nuSoap\nusoap.php on line 4060
Fatal error: Call to undefined function: getquote() in
d:\inetpub\wwwroot\stockClient.php on line 7
I cant seem to figure out whats wrong, any help?
<?php
include('nusoap.php');
$s = new
soapclient('http://services.xmethods.net/soap/urn:xmethods.net-delayed-quote
s.wsdl','wsdl');
$p = $s->getProxy();
$sq = $p->getQuote('ibm');
if(!$err = $p->getError()) {
print "IBM current stock price: $sq.";
}
else
{
print "ERROR: $err";
}
print '<xmp>'.$p->request.'</xmp>';
print
'<xmp>'.str_replace('><',">\n<",$p->response).'</xmp>';
?>
regards
Carl