Example #1
0
 /**
  * Obtiene el detalle de la tarjeta Amex desde CCTC
  */
 private function detalle_tarjeta_CCTC($id_cliente = 0, $consecutivo = 0)
 {
     //Traer la info de amex
     try {
         $cliente = new SoapClient("https://cctc.gee.com.mx/ServicioWebCCTC/ws_cms_cctc.asmx?WSDL");
         $parameter = array('id_clienteNu' => $id_cliente, 'consecutivo_cmsSi' => $consecutivo);
         $obj_result = $cliente->ConsultarAmex($parameter);
         $tarjeta_amex = $obj_result->ConsultarAmexResult;
         //regresa un objeto
         //print($simple_result);
         return $tarjeta_amex;
     } catch (SoapFault $exception) {
         echo $exception;
         echo '<br/>error: <br/>' . $exception->getMessage();
         //exit();
         return false;
     }
 }