public function getAttributesCS($categorySiteID = 0) { global $argv; if (!empty($argv[2])) { $this->setAccount(1); $this->configEbay($argv[2]); } try { $client = new eBaySOAP($this->session); $Version = $this->version; $DetailLevel = "ReturnAll"; $params = array('Version' => $Version, 'DetailLevel' => $DetailLevel); $results = $client->GetAttributesCS($params); file_put_contents("GetAttributesCS-" . $this->site_id . ".xml", $results->AttributeData); echo "\n****************** getAttributesCS Site " . $this->site_id . " **************************\n"; flush(); //exit(); } catch (SOAPFault $f) { print $f; // error handling } }