Exemplo n.º 1
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            XmlDocument xm = new XmlDocument();

            COPXmlFactory.Code1AddressCheck.c1match xo;

            try
            {
                string InnerXML = Request.InnerXml;
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.Code1AddressCheck.c1match>(InnerXML);
                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo         = RevenueGovXMLFactory.GetCode1AddressCheck();
                xo.Message = ex.Message;
            }
            return(RevenueGovXMLFactory.GetXmlDocument(xo));
        }
Exemplo n.º 2
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE035.UOFORM acct;

            try
            {
                string InnerXML = Request.InnerXml;
                acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE035.UOFORM>(InnerXML);

                acct = __Call(acct);
            }
            catch (Exception ex)
            {
                acct = RevenueGovXMLFactory.GetUOFORMReturn();

                acct.ERROR_INFO         = new ERROR_INFO();
                acct.ERROR_INFO.ERROR   = 11.ToString();
                acct.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Exemplo n.º 3
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE027.WAGERETURN acct;

            try
            {
                string InnerXML = Request.InnerXml;
                acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE027.WAGERETURN>(InnerXML);

                acct = __Call(acct);
            }
            catch (Exception ex)
            {
                acct = RevenueGovXMLFactory.GetWageReturn();

                acct.ERROR_INFO         = new ERROR_INFO();
                acct.ERROR_INFO.ERROR   = 11.ToString();
                acct.ERROR_INFO.MESSAGE = ex.StackTrace;
            }

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }