Ejemplo n.º 1
0
        public As4Message Send(AccessPoint destination, As4Message message)
        {
            var client = new As4Client
            {
                Certificate = Tls
            };

            return(client.Send(destination.SystemInbound, message));
        }
Ejemplo n.º 2
0
        public As4Message Send(AccessPoint accessPoint, As4Message message)
        {
            var client = new As4Client
            {
                Certificate = Tls
            };

            return(client.Send(accessPoint.Outbox, message));
        }
Ejemplo n.º 3
0
        public As4Message Send(AccessPoint destination, As4Message message)
        {
            var encrypter = new EbmsEncrypter
            {
                Attachments           = message.Attachments,
                PublicKeyInAsn1Format = destination.Ebms.GetPublicKey(),
                Xml = message.SoapEnvelope
            };

            encrypter.Encrypt();

            var client = new As4Client
            {
                Certificate = TlsExternal
            };

            return(client.Send(destination.BusinessInbound, message));
        }