rendered paste body<?php//wsdl$wsdl = "http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl?";$accesskey = "[YOUR KEY]";//$secretaccesskey = "";$client = new SoapClient($wsdl);//The value you specified for SearchIndex is invalid. Valid values include // All, Apparel, Automotive, Baby, Beauty, Blended, Books, Classical, DVD, DigitalMusic, // Electronics, GourmetFood, Grocery, HealthPersonalCare, HomeGarden, Industrial, Jewelry, // KindleStore, Kitchen, MP3Downloads, Magazines, Marketplace, Merchants, Miscellaneous, // Music, MusicTracks, MusicalInstruments, OfficeProducts, OutdoorLiving, PCHardware, PetSupplies, // Photo, SilverMerchants, Software, SportingGoods, Tools, Toys, UnboxVideo, VHS, Video, VideoGames, // Watches, Wireless, WirelessAccessories.$data = array(); $data["AWSAccessKeyId"] = $accesskey; $data["Operation"] = "ItemSearch"; $data["Shared"]->SearchIndex = "Music"; $data["Shared"]->Artist = "White Stripes"; $results = $client->ItemSearch($data);echo("<pre>");//print_r($results);$index = $results->Items;foreach($index->Item as $video){ //print_r($video); if(is_array($video->ItemAttributes->Artist)) { foreach($video->ItemAttributes->Artist as $items) { echo("<strong>" . $items . "</strong><br />"); } } else { echo($video->ItemAttributes->Artist . "<br />"); }}?>