Example #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;
                }
            }
        }
Example #2
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);
        }