public WebServiceFeClient(long cuit, string token, string sign, bool isProdEnvironment, IAfipFeSoapClientFactory afipSoapClientFactory)
 {
     Cuit              = cuit;
     Token             = token;
     IsProdEnvironment = isProdEnvironment;
     Sign              = sign;
     _wsfeService      = afipSoapClientFactory.CreateClient(new EndpointAddress(IsProdEnvironment ? ProductionEnvironment : TestingEnvironment));
 }
        static void Main(string[] args)
        {
            Service service = new Service();

            service.BookAddService();

            ServiceSoap soap = new ServiceSoap();

            soap.PersonService();
        }
        public ServiceProcessContext()
        {
            String liveUrl        = AspDotNetStorefrontCore.AppLogic.AppConfig("AUTHORIZENET_Cim_LiveServiceURL");
            String testUrl        = AspDotNetStorefrontCore.AppLogic.AppConfig("AUTHORIZENET_Cim_SandboxServiceURL");
            String merchantId     = AspDotNetStorefrontCore.AppLogic.AppConfig("AUTHORIZENET_X_Login");
            String transactionKey = AspDotNetStorefrontCore.AppLogic.AppConfig("AUTHORIZENET_X_Tran_Key");
            bool   sandboxEnabled = AspDotNetStorefrontCore.AppLogic.AppConfigBool("AUTHORIZENET_Cim_UseSandbox");

            System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
            binding.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;

            string url = liveUrl;

            if (sandboxEnabled)
            {
                url = testUrl;
            }

            System.ServiceModel.EndpointAddress endpointAddress = new System.ServiceModel.EndpointAddress(url);

            Service = new ServiceSoapClient(binding, endpointAddress);

            MerchantAuthenticationType = ServiceTools.CreateMerchantAuthenticationType(merchantId, transactionKey);
        }
 public TrainingPeaksClient()
 {
     ServicePointManager.Expect100Continue = false;
     soapClient = new ServiceSoapClient("ServiceSoap");
 }
 public TrainingPeaksClient(ServiceSoap client)
 {
     soapClient = client;
 }
Example #6
0
 public AfipService(ServiceSoap afipServiceClient, LoginCMS afipLogin)
 {
     this.afipServiceClient = afipServiceClient;
     this.afipLogin         = afipLogin;
 }
 public TrainingPeaksClient()
 {
     ServicePointManager.Expect100Continue = false;
     soapClient = new ServiceSoapClient("ServiceSoap");
 }
 public TrainingPeaksClient(ServiceSoap client)
 {
     soapClient = client;
 }