Пример #1
0
        public static NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType FetchAccount(string AccountNo, string CIF)
        {
            try
            {
                //UAT url:http://10.35.1.154:9121/SON.CARD.OPS/services?wsdl
                //dress reh url: http://10.20.206.25:9091/SON.CARD.OPS/services
                //prod url: http://10.20.206.25:9091/SON.CARD.OPS/services?wsdl
                //UAT 1 url: http://10.35.1.154:9092/SON.CARD.OPS/services?wsdl
                NewCISSB.webRequestCommon header = new NewCISSB.webRequestCommon();
                header.company = "PK0029001";

                //Credentials
                header.userName = ConfigurationManager.AppSettings["UserFetch"];
                //header.password = EncryptDecrypt.Decrypt(ConfigurationManager.AppSettings["PassFetch"].ToString());
                header.password = ConfigurationManager.AppSettings["PassFetch"].ToString();

                NewCISSB.T24WebServicesImplService service = new NewCISSB.T24WebServicesImplService();
                NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType response = new NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType();
                if (!string.IsNullOrEmpty(AccountNo) && !string.IsNullOrEmpty(CIF))
                {
                    NewCISSB.SONFETCHCARDINFOType[]   SONFETCHCARDINFOType1 = new NewCISSB.SONFETCHCARDINFOType[2];
                    NewCISSB.enquiryInputCollection[] enqcollection         = new NewCISSB.enquiryInputCollection[2];

                    NewCISSB.enquiryInputCollection enq = new NewCISSB.enquiryInputCollection();
                    enq.columnName    = "ACCT.ID";
                    enq.criteriaValue = AccountNo.Trim();//"20000024679";
                    enq.operand       = "EQ";
                    NewCISSB.enquiryInputCollection enq1 = new NewCISSB.enquiryInputCollection();
                    enq1.columnName    = "CUST.ID";
                    enq1.criteriaValue = CIF.Trim();//"1000109118";
                    enq1.operand       = "EQ";
                    enqcollection[0]   = enq;
                    enqcollection[1]   = enq1;
                    var results = service.CARDOPS(header, enqcollection, out SONFETCHCARDINFOType1);
                    response = SONFETCHCARDINFOType1[0].gSONFETCHCARDINFODetailType.mSONFETCHCARDINFODetailType[1];
                }

                return(response);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
        public static NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType FetchAccount1(string AccountNo, string CIF)
        {
            try
            {
                NewCISSB.webRequestCommon header = new NewCISSB.webRequestCommon();
                header.company  = "PK0029001";
                header.userName = "******";
                header.password = "******";

                NewCISSB.T24WebServicesImplService service = new NewCISSB.T24WebServicesImplService();
                NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType response = new NewCISSB.SONFETCHCARDINFOTypeGSONFETCHCARDINFODetailTypeMSONFETCHCARDINFODetailType();
                if (!string.IsNullOrEmpty(AccountNo) && !string.IsNullOrEmpty(CIF))
                {
                    NewCISSB.SONFETCHCARDINFOType[]   SONFETCHCARDINFOType1 = new NewCISSB.SONFETCHCARDINFOType[2];
                    NewCISSB.enquiryInputCollection[] enqcollection         = new NewCISSB.enquiryInputCollection[2];

                    NewCISSB.enquiryInputCollection enq = new NewCISSB.enquiryInputCollection();
                    enq.columnName    = "ACCT.ID";
                    enq.criteriaValue = AccountNo.Trim();//"20000024679";
                    enq.operand       = "EQ";
                    NewCISSB.enquiryInputCollection enq1 = new NewCISSB.enquiryInputCollection();
                    enq1.columnName    = "CUST.ID";
                    enq1.criteriaValue = CIF.Trim();//"1000109118";
                    enq1.operand       = "EQ";
                    enqcollection[0]   = enq;
                    enqcollection[1]   = enq1;
                    var results = service.CARDOPS(header, enqcollection, out SONFETCHCARDINFOType1);
                    response = SONFETCHCARDINFOType1[0].gSONFETCHCARDINFODetailType.mSONFETCHCARDINFODetailType[1];
                }

                return(response);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }