function syncViewings() { $this->display = false; $this->autoRender = false; $client = new SoapClient('http://internetviewing.capitex.se/service/DescriptionDataService.asmx?WSDL'); try { $results = $client->GetViewingTimes(array('licenseId' => 1000010)); } catch (SoapFault $fault) { echo $client->__getLastRequest(); echo $fault->getMessage(); } return $results; }