Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="certificate"></param>
        /// <returns></returns>
        private string SendRps(X509Certificate2 certificate)
        {
            var FRpsSent = TSJCSigner.Sign(FDefaultNamespace + "RPS", Rps, certificate);
            var service  = new PedidoEnvioRPSService();
            var response = service.PedidoEnvioRPS(TSettings.User, TSettings.Password, FRpsSent);

            return(response);
        }
Exemple #2
0
        public static string AssinaTag(XName Tag, X509Certificate2 certificado, XDocument Rps)
        {
            var rpsSigned = TSJCSigner.SignTag(Tag, Rps, certificado);

            return(rpsSigned.ToString());
        }