Page 1 of 1

Re: Integerating Amazon APi

Posted: Tue May 05, 2009 8:06 am
by venkatsys
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: :arrow: Posting Code in the Forums to learn how to do it too.


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'];
 
?>
error is:
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: :arrow: Posting Code in the Forums to learn how to do it too.

Re: Integerating Amazon APi

Posted: Tue May 05, 2009 1:26 pm
by Benjamin
:arrow: Moved to PHP - Code

Re: Integerating Amazon APi

Posted: Tue May 05, 2009 10:52 pm
by venkatsys
Thanks for your reply.

Please provide me an help to solve the problem.

regards,
venkat.R