Example #1
0
 /**
  * This will search the AssetTypesList for a file upload.
  *
  */
 public function GetAssetTypesList()
 {
     $soap_url = $this->GetAssetWSDL();
     $parms = array();
     $parms[] = new SoapVar($this->userName, XSD_STRING, null, null, 'ns1:userName');
     $parms[] = new SoapVar($this->password, XSD_STRING, null, null, 'ns1:password');
     $soap = new SoapClient($soap_url, $this->GetSoapOptions());
     try {
         $call = $soap->GetAssetTypes(new SoapVar($parms, SOAP_ENC_OBJECT));
         return $call->GetAssetTypesResult;
     } catch (SoapFault $fault) {
         return false;
         //error
     }
 }