RE: [SOAP] Soap ...
| From: | Danny Shepherd | Date: | Fri, 11 Apr 2003 14:43:48 +0000 |
| Subject: | RE: [SOAP] Soap ... | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-547@lists.php.net to get a copy of this message | ||
The wsdl URL is wrong for starters - should probably be
http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
I don't think nuSOAP is really maintained any more - you'd probably be
better off using Pear::Soap instead,
HTH
Danny Shepherd
-----Original Message-----
From: Carl Aarnes [mailto:carl.aarnes@broadpark.no]
Sent: 11 April 2003 12:21
To: soap@lists.php.net
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-q
uote
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
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php