Re: Integerating Amazon APi

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!

Moderator: General Moderators

Post Reply
venkatsys
Forum Newbie
Posts: 6
Joined: Mon May 04, 2009 6:39 am

Re: Integerating Amazon APi

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Integerating Amazon APi

Post by Benjamin »

:arrow: Moved to PHP - Code
venkatsys
Forum Newbie
Posts: 6
Joined: Mon May 04, 2009 6:39 am

Re: Integerating Amazon APi

Post by venkatsys »

Thanks for your reply.

Please provide me an help to solve the problem.

regards,
venkat.R
Post Reply