Exemple #1
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE030_2014.BPTlfReturn xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030_2014.BPTlfReturn>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo = RevenueGovXMLFactory.GetBPTlf_2014Return();

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Exemple #2
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE028.TOBACCORETURN xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE028.TOBACCORETURN>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetTOBACCORETURN();

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Exemple #3
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE031.LossCarryForward xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE031.LossCarryForward>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetLossCarryForwardReturn();

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Exemple #4
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE016.PAYCOUPON>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetPAYCOUPON();

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Exemple #5
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE010.ACCTTEMPLATE xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE010.ACCTTEMPLATE>(
                    Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetAcctTemplate();

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }