Exemple #1
0
        public void ProcessByAcct(string securityToken, string accountNum)
        {
            string strReturnXML = null;

            using (UDIBroker.wsBinRoutingSoapClient oBinRouting = new UDIBroker.wsBinRoutingSoapClient())
            {
                try
                {
                    strReturnXML = oBinRouting.ProcessByAcct(CreateInputXMLFrom(securityToken, accountNum), accountNum);
                    Parse(strReturnXML);
                }
                catch (Exception)
                {
                    Utility.LogMessage("An error occured while calling UDI ProcessByAcct method");
                    throw;
                }
            }
        }
        public void LogOn(string userID, string password)
        {
            string strReturnXML = null;

            using (UDIBroker.wsBinRoutingSoapClient oBinRouting = new UDIBroker.wsBinRoutingSoapClient())
            {
                try
                {
                    strReturnXML = oBinRouting.Login(CreateInputXMLFrom(userID, password));
                    Parse(strReturnXML);
                }
                catch (Exception)
                {
                    Utility.LogMessage("An error occured while calling UDI Login method");
                    throw;
                }
            }
        }
Exemple #3
0
        public bool VerifySecurityToken(string securityToken, string accountNum)
        {
            bool result = false;

            using (UDIBroker.wsBinRoutingSoapClient oBinRouting = new UDIBroker.wsBinRoutingSoapClient())
            {
                try
                {
                    string udiOutputXml = oBinRouting.ProcessByAcct(CreateInputXMLFrom(securityToken, accountNum), accountNum);
                    var    xmlElements  = udiOutputXml.GetElements("/GeneralInquiry.UDIB.OUT/*");

                    if (xmlElements.GetValue("ResponseCode") == "00")
                    {
                        result = true;
                    }
                }
                catch (Exception ex)
                {
                    Utility.LogMessage("An error occured while calling UDI ProcessByAcct method");
                }
            }

            return(result);
        }