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));
 }
Пример #2
0
        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);
        }
Пример #4
0
 public TrainingPeaksClient()
 {
     ServicePointManager.Expect100Continue = false;
     soapClient = new ServiceSoapClient("ServiceSoap");
 }
Пример #5
0
 public TrainingPeaksClient(ServiceSoap client)
 {
     soapClient = client;
 }
Пример #6
0
 public AfipService(ServiceSoap afipServiceClient, LoginCMS afipLogin)
 {
     this.afipServiceClient = afipServiceClient;
     this.afipLogin         = afipLogin;
 }
Пример #7
0
 public TrainingPeaksClient()
 {
     ServicePointManager.Expect100Continue = false;
     soapClient = new ServiceSoapClient("ServiceSoap");
 }
Пример #8
0
 public TrainingPeaksClient(ServiceSoap client)
 {
     soapClient = client;
 }