Exemple #1
0
        public SatSoapClient(Certificate certificate, TimeSpan httpTimeout, Logger logger)
        {
            var endpointUri = new Uri("https://cfdidescargamasivasolicitud.clouda.sat.gob.mx/Autenticacion/Autenticacion.svc");

            SoapClient = new SoapClient(endpointUri, certificate, httpTimeout, SignAlgorithm.Sha1);
            Logger     = logger;
            SoapClient.HttpRequestFinished  += (sender, args) => HttpRequestFinished?.Invoke(this, args);
            SoapClient.XmlMessageSerialized += (sender, args) => XmlMessageSerialized?.Invoke(this, args);
        }
Exemple #2
0
 public async Task <XmlDocument> SendRevenueAsync(Autentica message)
 {
     return(await SoapClient.SendAsync <Autentica, XmlDocument>(message, operation : "https://cfdidescargamasivasolicitud.clouda.sat.gob.mx/Autenticacion/Autenticacion.svc").ConfigureAwait(continueOnCapturedContext: false));
 }