Example #1
0
        private string ET0111()
        {
            try
            {
                XmlDocument doc1 = new XmlDocument();
                BS30600006  b    = new BS30600006();//字段一样,实际为核心30600006
                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.BS30600006(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));
            }
        }
Example #2
0
        static public string BS30600006(BS30600006 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            s.ServiceNo = "P0720002";
            s.SceneNo   = "03";
            s.TradeCode = "WYPJ30600006";
            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;
            bool jg = tcp.SLSendData(send, nodeNo, trandType, ref xml);

            return(jg.ToString());
        }