Ejemplo n.º 1
0
        public EetSoapClient(Certificate certificate, EetEnvironment environment)
        {
            Environment = environment;
            var subdomain   = environment == EetEnvironment.Production ? "prod" : "pg";
            var endpointUri = new Uri($"https://{subdomain}.eet.cz:443/eet/services/EETServiceSOAP/v3");

            SoapClient = new SoapClient(endpointUri, certificate.X509Certificate2);
        }
Ejemplo n.º 2
0
        public EetSoapClient(Certificate certificate, EetEnvironment environment, TimeSpan httpTimeout, EetLogger logger = null)
        {
            Environment = environment;
            var subdomain   = environment == EetEnvironment.Production ? "prod" : "pg";
            var endpointUri = new Uri($"https://{subdomain}.eet.cz:443/eet/services/EETServiceSOAP/v3");

            SoapClient = new SoapClient(endpointUri, certificate, httpTimeout, SignAlgorithm.Sha256, logger);
            Logger     = logger;
            SoapClient.HttpRequestFinished  += (sender, args) => HttpRequestFinished?.Invoke(this, args);
            SoapClient.XmlMessageSerialized += (sender, args) => XmlMessageSerialized?.Invoke(this, args);
        }
Ejemplo n.º 3
0
 public async Task <SendRevenueXmlResponse> SendRevenueAsync(SendRevenueXmlMessage message)
 {
     return(await SoapClient.SendAsync <SendRevenueXmlMessage, SendRevenueXmlResponse>(message, operation : "http://fs.mfcr.cz/eet/OdeslaniTrzby").ConfigureAwait(continueOnCapturedContext: false));
 }
Ejemplo n.º 4
0
 public Task <SendRevenueXmlResponse> SendRevenueAsync(SendRevenueXmlMessage message)
 {
     return(SoapClient.SendAsync <SendRevenueXmlMessage, SendRevenueXmlResponse>(message, operation: "http://fs.mfcr.cz/eet/OdeslaniTrzby"));
 }