public ZServiceResponse EjecutarServicio(ZServiceDTO zServiceDTO)
        {
            string responseStr = EjecutarServicio(zServiceDTO.IdAplication, zServiceDTO.Opcion, zServiceDTO.Tkna, zServiceDTO.Log, zServiceDTO.ObjectBuffer, zServiceDTO.Cmd, zServiceDTO.HttpMethod.ToString(), zServiceDTO.RemoteIpAddress);

            var zcolaResponse = JsonConvert.DeserializeObject <ZColaServiceEventos>(responseStr);


            ZServiceResponse response = zcolaResponse.Eventos.ElementAt(0).Dato.Buffer;

            response.ChequearFormatoJsonData();

            if (response.Errors != null)
            {
                throw new ZErrorException(response);
            }

            return(response);
        }
Пример #2
0
 public ZErrorException(ZServiceResponse zServiceResponse)
 {
     ZServiceResponse = zServiceResponse;
 }