#$a = new SOAP_Client("http://soap.amazon.com/schemas2/AmazonWebServices.wsdl", true); #$a = new SOAP_Client('http://soap.amazon.com/onca/soap2'); #$params = array('keyword' => 'test', 'page' => '1', 'mode' => 'books', 'tag' => 'ideafund', 'type' => 'lite', 'devtag' => 'D1YUKLNYTW0NL6', 'version' => '2.0'); #$options = array('namespace' => 'urn:KeywordSearch'); #$res = $a->call('KeywordSearchRequest', $params, $options); #print_r($res); #while ((count($Ret) < 10)) { #$Params['page'] = $Page++; #$result = $a->call('KeywordSearchRequest',,'urn:AmazonSearch'); #if (get_class($result) == 'pear_error') { # $message = $result->message; #} else { # if (($result != null) && IsSet($result->TopLevelName) && (Count($result->TopLevelName) > 0)) { # $Details = $result->TopLevelName; # if (IsSet($Details[0])) { # foreach ($Details as $Detail) { # if (count($Ret) >= $Max) { # break; # } # $Ret[] = $Detail; # } # } else { # $Ret[] = $Details; # } # } #} #} #$aresults = $Ret; #$amazonresults = count($aresults);