예제 #1
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE037_2015.BPTezReturn xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE037_2015.BPTezReturn>(
                    Request);

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

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

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
예제 #2
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE037_2015.BPTezReturn acct;

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

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

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

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }