Ejemplo n.º 1
0
        private string ET0113()
        {
            try
            {
                XmlDocument doc1 = new XmlDocument();
                BS30600122  b    = new BS30600122();
                b.ApplicantAcctNo = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim();
                b.BillId          = xdoc.SelectSingleNode("//ebank//rgct_ids").InnerText.Trim();
                b.Signature       = xdoc.SelectSingleNode("//ebank//warteeSign").InnerText.Trim();
                b.Source          = "1";
                if (BSET.BS30600122(b, nodeNo, trandType, ref doc1) == "error")
                {
                    retSysError(errMsg);
                }
                else
                {
                    xher.UpdateContent("/ebank/hostReturnCode", doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim());
                    xher.UpdateContent("/ebank/hostErrorMessage", doc1.SelectSingleNode("//root//head//ErrorMsg").InnerText.Trim());
                }

                return(formatRetStr(xher));
            }
            catch (Exception ex)
            {
                return(retCatch(ex));
            }
        }
Ejemplo n.º 2
0
        static public string BS30600122(BS30600122 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            s.ServiceNo = "P0720002";
            s.SceneNo   = "08";
            s.TradeCode = "WYPJ30600122";
            XmlHelper xhs  = setHead(s);
            string    send = "";

            xhs.setBody("applicantAcctNo", b.ApplicantAcctNo);
            xhs.setBody("billId", b.BillId);
            xhs.setBody("signature", b.Signature);
            xhs.setBody("source", b.Source);
            xhs.setBody("reserve1", b.Reserve1);

            send = xhs.GetXmlDoc().OuterXml.Length.ToString().PadLeft(8, '0') + xhs.GetXmlDoc().OuterXml;
            XmlDocument recv = new XmlDocument();
            bool        jg   = tcp.SLSendData(send, nodeNo, trandType, ref xml);

            return(jg.ToString());
        }