public static void eliminarClienteTablet(string cliente_ID)
        {
            try
            {
                string         host   = Utils.getValorConfig("SERVIDORBD");
                XmlDocument    xmlDoc = new XmlDocument();
                string         soap   = @"<soapenv:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:mys=""MyServicePHP"">
   <soapenv:Header/>
   <soapenv:Body>
      <mys:eliminarClienteTablet soapenv:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">
         <cliente_ID xsi:type=""xsd:string"">" + cliente_ID + @"</cliente_ID>
      </mys:eliminarClienteTablet>
   </soapenv:Body>
</soapenv:Envelope>";
                HttpWebRequest req    = (HttpWebRequest)WebRequest.Create(host);
                req.Headers.Add("Accept-Encoding", "gzip");
                req.Headers.Add("SOAPAction", "http://tempuri.org/getRecordValue");
                req.ContentType = "text/xml;charset=\"utf-8\"";
                req.Accept      = "text/xml";
                req.Method      = "POST";

                using (Stream stm = req.GetRequestStream())
                {
                    using (StreamWriter stmw = new StreamWriter(stm))
                    {
                        stmw.Write(soap);
                    }
                }
                WebResponse response  = req.GetResponse();
                Stream      respStram = response.GetResponseStream();
                string      result    = "";
                if (response.Headers["Content-Encoding"] != null)
                {
                    if (response.Headers["Content-Encoding"].ToLower() == "gzip")
                    {
                        using (Stream streamGZip = new GZipStream(respStram, CompressionMode.Decompress))
                        {
                            StreamReader reader = new StreamReader(streamGZip);
                            result = reader.ReadToEnd();
                        }
                    }
                    else
                    {
                        StreamReader srd = new StreamReader(response.GetResponseStream());
                        result = srd.ReadToEnd();
                    }
                }
                else
                {
                    StreamReader srd = new StreamReader(response.GetResponseStream());
                    result = srd.ReadToEnd();
                }
            }
            catch (Exception ex)
            {
                Utils.EscribeLog(ex);
            }
        }
        public static void registraCambioTablets(int cliente_proveedor_ID, string accion)
        {
            //Query query = new Query("tablet");

            //Tablet[] arrTablet = CtrlTablet.getListado(query);
            //Sincroniza_tablet_cliente sincroCliente;
            //foreach (Tablet tablet in arrTablet)
            //{
            //    sincroCliente = new Sincroniza_tablet_cliente();
            //    sincroCliente.fcliente_proveedor_ID = cliente_proveedor_ID;
            //    sincroCliente.ftablet_ID = tablet.fID;
            //    sincroCliente.faccion=accion;
            //    sincroCliente.guardar();

            //}
            try
            {
                string         host   = Utils.getValorConfig("SERVIDORBD");
                XmlDocument    xmlDoc = new XmlDocument();
                string         soap   = @"<soapenv:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:mys=""MyServicePHP"">
   <soapenv:Header/>
   <soapenv:Body>
      <mys:registraCambioTablets soapenv:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">
         <cliente_proveedor_ID xsi:type=""xsd:string"">" + cliente_proveedor_ID + @"</cliente_proveedor_ID>
      </mys:registraCambioTablets>
   </soapenv:Body>
</soapenv:Envelope>";
                HttpWebRequest req    = (HttpWebRequest)WebRequest.Create(host);
                req.Headers.Add("Accept-Encoding", "gzip");
                req.Headers.Add("SOAPAction", "http://tempuri.org/getRecordValue");
                req.ContentType = "text/xml;charset=\"utf-8\"";
                req.Accept      = "text/xml";
                req.Method      = "POST";

                using (Stream stm = req.GetRequestStream())
                {
                    using (StreamWriter stmw = new StreamWriter(stm))
                    {
                        stmw.Write(soap);
                    }
                }
                WebResponse response  = req.GetResponse();
                Stream      respStram = response.GetResponseStream();
                string      result    = "";
                if (response.Headers["Content-Encoding"] != null)
                {
                    if (response.Headers["Content-Encoding"].ToLower() == "gzip")
                    {
                        using (Stream streamGZip = new GZipStream(respStram, CompressionMode.Decompress))
                        {
                            StreamReader reader = new StreamReader(streamGZip);
                            result = reader.ReadToEnd();
                        }
                    }
                    else
                    {
                        StreamReader srd = new StreamReader(response.GetResponseStream());
                        result = srd.ReadToEnd();
                    }
                }
                else
                {
                    StreamReader srd = new StreamReader(response.GetResponseStream());
                    result = srd.ReadToEnd();
                }
                //return result;
            }
            catch (Exception ex)
            {
                Utils.EscribeLog(ex);
                //return "error";
            }
        }