/**
  * Processa a consulta e retorna VERDADEIRO se foi concluída com sucesso.
  * @return boolean
  * @access public
  * @throws Exception 
  */
 public function processaConsulta()
 {
     //Ativa o uso de URL FOpen
     ini_set("allow_url_fopen", 1);
     ini_set("soap.wsdl_cache_enabled", 0);
     //Inicia transação junto a Braspag
     try {
         if (@fopen(parent::URL_CALCULADOR, 'r')) {
             $soap = new SoapClient(parent::URL_CALCULADOR);
             $retorno = $soap->CalculaFrete((double) $this->getCnpjEmpresa(), (double) $this->idOrigem, (double) $this->cepOrigem, (double) $this->cepDestino, (double) $this->getCnpjEmpresa(), (double) $this->documentoDestino, (string) $this->tipoFrete, (double) $this->peso, (double) $this->valorNF, (double) $this->volume);
             if ($retorno instanceof stdClass) {
                 $servico = new BraspressCalculaFreteResultado($retorno);
                 $this->resultado = $servico;
                 return TRUE;
             } else {
                 return FALSE;
             }
         } else {
             return FALSE;
         }
     } catch (SoapFault $sf) {
         throw new Exception($sf->getMessage());
     }
 }