12 require_once(
'../lib/nusoap.php');
13 require_once(
'../lib/class.wsdlcache.php');
23 $wsdlurl =
'http://webservices.amazon.com/AWSECommerceService/US/AWSECommerceService.wsdl';
31 $wsdl->debug_str =
'';
32 $wsdl->debug(
'Retrieved from cache');
38 echo
'<h2>Constructor error</h2><pre>' .
$err .
'</pre>';
48 $item[0] = array(
"ASIN" =>
"0596004206",
51 $item[1] = array(
"ASIN" =>
"0596003277",
56 $items = array(
"Item" => $item);
58 $request = array(
"Items" => $items,
"ResponseGroup" =>
"CartSimilarities");
61 $cartCreate = array(
"SubscriptionId" => $SubscriptionId,
71 $itemLookupRequest[] = array(
72 'ItemId' =>
'B0002IQML6',
75 'ResponseGroup' =>
'Large'
78 $itemLookupRequest[] = array(
79 'ItemId' =>
'0486411214',
82 'ResponseGroup' =>
'Small'
86 'SubscriptionId' => $SubscriptionId,
88 'Request' => $itemLookupRequest,
97 $itemSearchRequest = array(
101 'SearchIndex' =>
'Books',
102 'Sort' =>
'salesrank'
106 'SubscriptionId' => $SubscriptionId,
111 'Request' => array($itemSearchRequest)
121 "Keywords" =>
"postal stamps",
122 "SearchIndex" =>
"Books"
126 'SubscriptionId' => $SubscriptionId,
127 'Request' => $request
136 $listLookupRequest[] = array(
137 'ListId' =>
'1L0ZL7Y9FL4U0',
138 'ListType' =>
'WishList',
140 'ResponseGroup' =>
'ListFull',
141 'Sort' =>
'LastUpdated'
144 $listLookupRequest[] = array(
145 'ListId' =>
'1L0ZL7Y9FL4U0',
146 'ListType' =>
'WishList',
148 'ResponseGroup' =>
'ListFull',
149 'Sort' =>
'LastUpdated'
162 'SubscriptionId' => $SubscriptionId,
164 'Request' => $listLookupRequest,
173 $listSearchRequest[] = array(
174 'FirstName' =>
'Scott',
175 'LastName' =>
'Nichol',
176 'ListType' =>
'WishList'
180 'SubscriptionId' => $SubscriptionId,
182 'Request' => $listSearchRequest,
201 echo
"Unsupported method $method";
206 echo
'<h2>Fault</h2><pre>';
214 echo
'<h2>Error</h2><pre>' .
$err .
'</pre>';
217 echo
'<h2>Result</h2><pre>';
222 echo
'<h2>Request</h2><pre>' . htmlspecialchars(
$client->request, ENT_QUOTES) .
'</pre>';
223 echo
'<h2>Response</h2><pre>' . htmlspecialchars(
$client->response, ENT_QUOTES) .
'</pre>';
224 echo
'<h2>Debug</h2><pre>' . htmlspecialchars(
$client->debug_str, ENT_QUOTES) .
'</pre>';