public function sendData($data) { $arraydados = array("chave" => $this->getApiKey(), "referencia" => $this->getTransactionReference()); $url = $this->getUrl(); try { $client = new \SoapClient($url, array('cache_wsdl' => WSDL_CACHE_NONE)); $result = $client->informacaoReferencia($arraydados); } catch (SoapFault $sf) { throw new \Exception($sf->getMessage(), $sf->getCode()); } return $this->response = new checkStatusResponse($this, $result); }