PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi im trying to run a nusoap client but every client i have used has returned no information from a server. could somebody try running this code and let me know if they are getting any result? im getting nothing and the code is fine (i hope!!)
<?php
// include the SOAP classes
require_once('nusoap.php');
// define parameter array (ISBN number)
$param = array('isbn'=>'0385503954');
// define path to server application
$serverpath ='http://services.xmethods.net:80/soap/servlet/rpcrouter';
//define method namespace
$namespace="urn:xmethods-BNPriceCheck";
// create client object
$client = new soapclient($serverpath);
// make the call
$price = $client->call('getPrice',$param,$namespace);
// if a fault occurred, output error info
if (isset($fault)) {
print "Error: ". $fault;
}
else if ($price == -1) {
print "The book is not in the database.";
} else {
// otherwise output the result
print "The price of book number ". $paramїisbn] ." is $". $price;
}
// kill object
unset($client);
?>
I tried a test site, it didn't work. I tried your code. It didn't work. I made a different version to get eBay prices and it also didn't work. No errors, just no information. For now I will assume that their test server is not returning valid data.