function refreshInstanceRequest($devaInsId, $vmName) { $wsdl = "http://ita-provisioner.cis.fiu.edu:8080/axis2/services/VirtualLabs?wsdl"; $location = "http://ita-provisioner.cis.fiu.edu:8080/axis2/services/VirtualLabs"; //$devaInsId = 'c9bfaa50-2036-4b93-a701-848a6671864f'; //$vmName = 'Laptop 1 (laptop1)'; try { $params = array('devaInsId' => $devaInsId, 'vmName' => $vmName); $client = new SoapClient($wsdl, array('location' => $location)); $result = $client->refreshVM($params); } catch (Exception $e) { echo $e->getMessage(); } catch (SoapFault $soapfault) { echo $soapfault->getMessage(); } return $result; }