/**
  * sample_GetAttributesCS::dispatchCall()
  * 
  * Dispatch the call
  *
  * @param array $params array of parameters for the eBay API call
  * 
  * @return boolean success
  */
 public function dispatchCall($params)
 {
     $req = new GetAttributesCSRequestType();
     $req->setDetailLevel($params['DetailLevel']);
     $req->setAttributeSetID($params['AttributeSetID']);
     $res = $this->proxy->GetAttributesCS($req);
     if ($this->testValid($res)) {
         $this->dumpObject($res);
         return true;
     } else {
         return false;
     }
 }
 private function _fetchCsSets($CsIdToGet, $VersionOnly = false)
 {
     // so query the CharactericsSet ...
     $request = new GetAttributesCSRequestType();
     if ($CsIdToGet) {
         $request->setAttributeSetID($CsIdToGet);
     }
     if (!$VersionOnly) {
         $request->setDetailLevel('ReturnAll');
     }
     $response = $this->_proxy->GetAttributesCS($request);
     $this->_AttributeSystemVersion = $response->getAttributeSystemVersion();
     if (!$VersionOnly) {
         $attributeData = $response->getAttributeData();
         $parser = $this->_proxy->getParser('http://www.intradesys.com/Schemas/ebay/AttributeData_Extension.xsd');
         $parser->setExtensionPrefix('EbatNsCsSetExt_');
         $parserResponse = $parser->decode('eBay', '<?xml version="1.0" encoding="utf-8" ?>' . utf8_encode($attributeData), 3, 'EbatNsCsSetExt_AttributeDataType');
         $attributeDependencyData = $this->manageDependencies($parserResponse);
         $characteristics = $attributeDependencyData->getCharacteristics();
         $characteristics = $characteristics[0];
         $characteristicSets = $characteristics->getCharacteristicsSet();
         foreach ($characteristicSets as $characteristicSet) {
             $this->_CharactericsSet[$characteristicSet->attributeValues['id']] = $characteristicSet;
         }
     }
 }