public function getFacilityManagementXml()
 {
     $this->checkArgumentsForXmlDownload();
     $restCall = "uploadIfc";
     $url = $this->baseUrl . $restCall;
     $verb = "POST";
     $data = array('file' => '@' . $this->fileToSend);
     $rest = new RestRequest($url, $verb, $data);
     $rest->setAcceptType("application/xml");
     $rest->execute();
     //echo "SObim converter: response info\n";
     //print_r($rest->getResponseInfo());
     if ($rest->isError()) {
         $info = $rest->getResponseInfo();
         $http_code = $info["http_code"];
         if ($http_code == 0) {
             throw new NoResponseException();
         }
         throw new Exception("Rest call error : " . var_export($rest->getResponseInfo()));
     }
     return $rest->getResponseBody();
 }
 public function testRestRequestPost()
 {
     $url = "http://*****:*****@' . $this->testingFileWithPath);
     //var_dump( $data );
     $rest = new RestRequest($url, $verb, $data);
     //$rest->setUrl("http://145.247.163.52:8080/BIM_Facility_Management/rest/tests/testPut/ttt");
     // http://145.247.163.52:8080/BIM_Facility_Management/rest/uploadIfc
     $rest->setAcceptType("text/html");
     $rest->setLocalFile($this->testingFileWithPath);
     $rest->execute();
     echo $rest->getResponseBody();
     echo "\n resp info \n";
     var_dump($rest->getResponseInfo());
 }