public void ProcessRequest(HttpContext context)
        {
            PrintingsServiceClient printError = new PrintingsServiceClient(new Utilitys().Protocole(), new Utilitys().EndPoint());
            string retourMail = "Echec envoi mail";

            //context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
            int bytelength = context.Request.ContentLength;

            byte[] inputbytes = context.Request.BinaryRead(bytelength);
            string message    = System.Text.Encoding.UTF8.GetString(inputbytes);

            // Toutes les clés sont concatenées dans "message",
            // il faut donc les separer et utliser chaque clé pour envoyer la facture
            string[] TousLesParametres = message.Split('/');


            foreach (string chaine in TousLesParametres)
            {
                string[] Unparametre = chaine.Split('|');
                SessionObject.machine     = Unparametre[3];
                SessionObject.portService = Unparametre[4];
                string from       = Unparametre[5];
                string subject    = Unparametre[6];
                string body       = Unparametre[7];
                string smtp       = Unparametre[8];
                string portSmtp   = Unparametre[9];
                string sslEnabled = Unparametre[10];
                string login      = Unparametre[11];
                string password   = Unparametre[12];

                Utilitys objetUtil = new Utilitys();
                string   filePath  = objetUtil.LaunchPDFgeneration(false, Unparametre[1], Unparametre[0], Unparametre[2]);
                if (objetUtil.parameter != null)
                {
                    if (objetUtil.parameter.ContainsKey("pismail"))
                    {
                        try
                        {
                            //objetUtil.LaunchPrinting(false, Unparametre[1], string.Empty, Unparametre[0], Unparametre[2], true);

                            if (!string.IsNullOrWhiteSpace(objetUtil.parameter["pismail"]))
                            {
                                printError.SetErrorsFromSilverlightWebPrinting(GetCurrentMethod(), "Debut lancement Mail");

                                //SendMail(objetUtil.parameter["pismail"], filePath);
                                retourMail = EnvoiMail(objetUtil.parameter["pismail"], filePath, from, subject, body, smtp, portSmtp, sslEnabled, login, password);

                                printError.SetErrorsFromSilverlightWebPrinting(GetCurrentMethod(), "Fin lancement Mail");
                            }
                        }
                        catch (Exception ex)
                        {
                            printError.SetErrorsFromSilverlightWebPrinting(GetCurrentMethod(), retourMail + " " + ex.Message);
                            throw ex;
                        }
                    }
                }
            }
            printError.SetErrorsFromSilverlightWebPrinting(GetCurrentMethod(), retourMail);
        }