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(); }