Exemplo n.º 1
0
 /**
  *
  * @throws \BadMethodCallException
  * @throws \SoapFault
  */
 private function login()
 {
     $this->results = $this->cventSoapClient->client()->Login($this->cventApiCredentials);
     if (!isset($this->results->LoginResult->LoginSuccess) || !$this->results->LoginResult->LoginSuccess) {
         throw new SoapFault("Cvent Api Login", "Cvent Api Login Failed " . $this->results->ErrorMessage);
     }
     $this->cventSessionHeaderValue = $this->results->LoginResult->CventSessionHeader;
     $this->cventSessionHeaderExpires = time();
     $this->setSoapEndpoint();
     $this->setSoapSessionHeader();
 }