public FTPSeguridadServiceClient ServicioFTPSoftrade()
        {
            var ftpService       = System.Configuration.ConfigurationSettings.AppSettings.Get("FTPService");
            var basicHttpBinding = new BasicHttpBinding()
            {
                MaxBufferSize          = 2147483647,
                MaxReceivedMessageSize = 2147483647
            };
            var endpoint =
                new EndpointAddress(
                    ftpService);
            var servicioConsultarPedimento = new FTPSeguridadServiceClient(basicHttpBinding, endpoint);

            return(servicioConsultarPedimento);
        }
        public FTPSeguridadServiceClient ConsultarPedimentoCompletoWS()
        {
            //var basicHttpBinding = new WSHttpBinding(SecurityMode.Transport);
            var basicHttpBinding = new BasicHttpBinding()
            {
                MaxBufferSize          = 2147483647,
                MaxReceivedMessageSize = 2147483647
            };
            //basicHttpBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
            var endpoint =
                new EndpointAddress(
                    "http://192.168.2.160:8090/FTPService.svc");
            var servicioConsultarPedimento = new FTPSeguridadServiceClient(basicHttpBinding, endpoint);

            //if (servicioConsultarPedimento.ClientCredentials != null)
            //{
            //    servicioConsultarPedimento.ClientCredentials.UserName.UserName = "******";
            //    servicioConsultarPedimento.ClientCredentials.UserName.Password = "******";
            //}
            return(servicioConsultarPedimento);
        }