hi ,
i have integerate Amazon api using php with SOAP protocol.The above code i have used but it will display the error.
Code: Select all
<?php
// include class
require_once('../lib/nusoap.php');
// create a instance of the
//SOAP client object
$soapclient = new soapclient("http://soap.amazon.com/schemas3/AmazonWebServices.wsdl",array('exceptions' => 0));
//
//create a proxy so that WSDL methods can be accessed directly
$proxy = $soapclient->getProxy();
//
//format ASIN to ten-character format
$asin ='B00110NF9G';
//set up an array containing input parameters to be
// passed to the remote procedure
$params = array(
'asin' => 'B00110NF9G',
'mode' => 'books',
'tag' => 'melonfire-20',
'type' => 'heavy',
'devtag' => 'AKIAIY37CAXOTDABERIQ'
);
// get item details
$result = $proxy->AsinSearchRequest($params);
$items = $result['Details'];
print_r($result);
// get list of similar items
$simResult = $proxy->SimilaritySearchRequest($params);
$simItems = $simResult['Details'];
?>Call to undefined method SoapFault::AsinSearchRequest()
kindly provide me help to solve the problem.
regards,
venkat.R
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: