51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3246|回复: 5
打印 上一主题 下一主题

[原创] xml 内容的替换

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-7-26 15:10:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
soap_request("StepName=getData",
                "URL=http://{LOGINIP}/safe/ApplicationTransactionWebService",
                "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\""
                "no\"?><soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
                "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap=\""
                "http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><getData xmlns="
                "\"http://www.openuri.org/\"><inParam xmlns=\"java"
                ":ecsolutions.safe.parameters\"><action>C</action><authHash"
                ">fa5709a8f995a77e2b2edd76a67cf6f3</authHash><funcID>013</funcID>"
                "<menuID>getData</menuID><methodID>getData</methodID><organCode"
                ">{LOGINCODE}</organCode><sessionID"
                ">20070626130309{LOGINCODE}fOJWdQRsrdPRXUVUZ47aQC001</sessionID>"
                "<sessionIDSSO/><userID>QC001</userID><warningCheck>N</warningCheck>"
                "<batchKey xsi:nil=\"true\"/><chkDate xsi:nil=\"true\"/><chkType xsi"
                ":nil=\"true\"/><currentCode xsi:nil=\"true\"/><currentLevel xsi:nil=\""
                "true\"/><currentSide xsi:nil=\"true\"/><data><ParamDataSet><test xsi"
                ":nil=\"true\"/><dataRows><ParamRow><test xsi:nil=\"true\"/>"
                "<fieldValues><string xmlns=\"java:language_builtins.lang\""
                ">{LOGINCODE}0706{RptDate}N{RandValue}</string></fieldValues></ParamRow></dataRows>"
                "<fieldNames><string xmlns=\"java:language_builtins.lang\">KEYDATA</"
                "string></fieldNames><updInd xsi:nil=\"true\"/></ParamDataSet></data>"
                "<dataType xsi:nil=\"true\"/><exportFromDate xsi:nil=\"true\"/>"
                "<exportToDate xsi:nil=\"true\"/><filePath xsi:nil=\"true\"/><funcType"
                ">1</funcType><isAck xsi:nil=\"true\"/><journalNo xsi:nil=\"true\"/>"
                "<keyData xsi:nil=\"true\"/><msgFromAddr xsi:nil=\"true\"/><msgFromSide"
                " xsi:nil=\"true\"/><msgFromSideCode xsi:nil=\"true\"/><msgRouter xsi"
                ":nil=\"true\"/><msgToAddr xsi:nil=\"true\"/><msgToSide xsi:nil=\"true"
                "\"/><msgToSideCode xsi:nil=\"true\"/><organLevel xsi:nil=\"true\"/>"
                "<organType>B</organType><receiveDate xsi:nil=\"true\"/><rptType>B</"
                "rptType><sendDate xsi:nil=\"true\"/><sendSeqNo xsi:nil=\"true\"/>"
                "<sendType xsi:nil=\"true\"/><submitDate xsi:nil=\"true\"/><txType xsi"
                ":nil=\"true\"/></inParam></getData></soap:Body></soap:Envelope>",
                "Snapshot=t4.inf",
                "ResponseParam=response",
                LAST);

if (LR_PASS ==1)
                {lr_log_message(lr_eval_string("response"),LAST);}


             //获取tblPayReceiveSts1表中的数据                                                                                                
        lr_xml_extract("XML={response}",                                                                                               
                       "FastQuery=/Envelope/Body/getDataResponse/workFlowResult/dataset/ParamDataSet/dataRows/ParamRow/fieldValues",   
                       "XMLFragmentParam=tblPayReceiveSts1",                                                                           
                       LAST);                                                                                                         
                                                                                                                                 
//获取tblPayReceiveBFChk1表中的数据                                                                                             
                                                                                                                                 
        lr_xml_extract("XML={response}",                                                                                               
                       "FastQuery=/Envelope/Body/getDataResponse/workFlowResult/dataset/ParamDataSet[2]/dataRows/ParamRow/fieldValues",
                       "XMLFragmentParam=tblPayReceiveBFChk1",                                                                        
                       LAST);   


//获得申报单基础信息的总的金额
        lr_xml_get_values("XML={response}",
                          "FastQuery=/Envelope/Body/getDataResponse/workFlowResult/dataset/ParamDataSet[2]/dataRows/ParamRow/fieldValues/string[46]",
                          "ValueParam=TxAmt",
                          LAST);

        lr_xml_replace("XML={tblPayReceiveBFChk1}", "ResultParam=tblPayReceiveBFChk1",
                                        "Query=/fieldValues/string[55]",
                                        "XmlFragment=<string xmlns=\"java:language_builtins.lang\">{TxAmt}</string>",
                                        LAST);

        lr_xml_replace("XML={tblPayReceiveBFChk1}", "ResultParam=tblPayReceiveBFChk1",
                                 "Query=/fieldValues/string[58]",
                                 "XmlFragment=<string xmlns=\"java:language_builtins.lang\">{LOGINCODE}{RandValue}</string>",
                                 LAST);

   lr_xml_replace("XML={tblPayReceiveBFChk1}", "ResultParam=tblPayReceiveBFChk1",
                                 "Query=/fieldValues/string[57]",
                                 "XmlFragment=<string xmlns=\"java:language_builtins.lang\">{LOGINCODE}{RandValue}</string>",
                                 LAST);

    lr_xml_replace("XML={tblPayReceiveBFChk1}", "ResultParam=tblPayReceiveBFChk1",
                                        "Query=/fieldValues/string[36]",
                                        "XmlFragment=<string xmlns=\"java:language_builtins.lang\">O</string>",
                                        LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2007-7-26 15:11:01 | 只看该作者

回复 #1 evergreenwang 的帖子

soap_request("StepName=submitData",
                "URL=http://{LOGINIP}/safe/ApplicationTransactionWebService",
                "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\"no\"?>"
                "<soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi="
                "\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap="
                "\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><submitData xmlns="
                "\"http://www.openuri.org/\"><inParam xmlns=\"java:ecsolutions.safe.parameters\">"
                "<action>C</action><authHash>ee961dc330fbdaa6aa169ba5f852fa7e</authHash><funcID>"
                "013</funcID><menuID>submitData</menuID><methodID>submitData</methodID>"
                "<organCode>{LOGINCODE}</organCode><sessionID>20070626130309{LOGINCODE}"
                "fOJWdQRsrdPRXUVUZ47aQC{USERID}</sessionID><sessionIDSSO/><userID>QC{USERID}"
                "</userID><warningCheck>Y</warningCheck><batchKey xsi:nil=\"true\"/><chkDate "
                "xsi:nil=\"true\"/><chkType xsi:nil=\"true\"/><currentCode xsi:nil=\"true\"/>"
                "<currentLevel xsi:nil=\"true\"/><currentSide xsi:nil=\"true\"/><data>"
                "<ParamDataSet><test xsi:nil=\"true\"/><dataRows><ParamRow><test xsi:nil="
                "\"true\"/>"
                                 "{tblPayReceiveSts1}"
                                 "</ParamRow></dataRows><fieldNames><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.AmdVer</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.AppDateB</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.AppDateC</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.AppDateS</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.AppUserIDB</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.AppUserIDC</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.AppUserIDS</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.AppUserNameB</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.AppUserNameC</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.AppUserNameS</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.BankRtnDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.BankRtnType</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.BankSafe</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.BankSafe2</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.BankSafe3</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.BaseCrtDate</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.BaseTimestamp</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.BaseTp</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.BaseUpdDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.BaseallUpdDate</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.BranchCode</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.BranchCode2</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.BranchCode3</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.BranchName</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.CheckSum</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.ChkCustName</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.ChkSafeCode</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.ChkSts</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.ChkVer</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.CustSafe</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.CustSafe2</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.CustSafe3</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.ErrType</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.ExpiryDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.InpDateB</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.InpDateC</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.InpDateS</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.InpUserIDB</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.InpUserIDC</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.InpUserIDS</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.InpUserNameB</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.InpUserNameC</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.InpUserNameS</string>"
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2007-7-26 15:11:21 | 只看该作者
"<string xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.IsMiss</string>"
                "<string xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.IsTrade</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.NeedPrint</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.PayDate</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.PrtCount</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.PrtDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.PrtUser</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RecSts</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RefNo</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RegDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RegExpiryDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.ReportTp</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.ReportUpdDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RptNo</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RptSts</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.RptTimestamp</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.StatusDesc</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.StatusID</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.UnderLimit</string>"
                "<string xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.UpdDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.VerNo</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveSts1.WriteOffSts</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveSts1.WriteoffTp</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveSts1.WriteoffUpdDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">KEYDATA</string></fieldNames>"
                "<updInd xsi:nil=\"true\"/></ParamDataSet><ParamDataSet><test xsi:nil=\"true\"/>"
                "<dataRows><ParamRow><test xsi:nil=\"true\"/>"
                                 "{tblPayReceiveBFChk1}"
                                 "</ParamRow></dataRows><fieldNames><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.ActuAmt</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.ActuCcy</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.BankRmks</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.BankUserTel</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.BillNo</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.BusiCode</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.ContractAmt</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.ContractNo</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.CountryCode</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.CustArea</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.CustCode</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.CustName</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.CustType</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.CustomCode</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.ExRate</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.FcyAcc</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.FcyAmt</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.IDCode</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.ImpDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.InChargeAmt</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.InChargeCcy</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.InvoiceNo</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.IsPrinted</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.IsWriteoff</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.IssueDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.LCBGNo</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.LcyAcc</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.LcyAmt</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.Method</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.OppName</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.OsAmt</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.OthAcc</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.OthAmt</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.OutChargeAmt</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.OutChargeCcy</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.PayAttr</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.PayType</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.RecType</string>"                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.RegistNo</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.RptDate</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.RptNo</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.RptTel</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.RptUser</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.SafeRmks</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.Tenor</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxAmt</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxAmt1</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.TxAmt2</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxCcy</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxCode1</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxCode2</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.TxRem1</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.TxRem2</string><string "
                "xmlns=\"java:language_builtins.lang\">tblPayReceiveBFChk1.UsdAmt</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.WriteoffAmt</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.WriteoffDate</string>"
                "<string xmlns=\"java:language_builtins.lang\">"
                "tblPayReceiveBFChk1.WriteoffTel</string><string xmlns="
                "\"java:language_builtins.lang\">tblPayReceiveBFChk1.WriteoffUser</string>"
                "<string xmlns=\"java:language_builtins.lang\">KEYDATA</string></fieldNames>"
                "<updInd xsi:nil=\"true\"/></ParamDataSet><ParamDataSet><test xsi:nil=\"true\"/>"
                "<dataRows/><fieldNames><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.CustomAmt</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.CustomCcy</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.CustomDate</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.CustomNo</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.RecSts</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.RptNo</string><string xmlns=\"java:language_builtins.lang\">"
                "tblCustomNo.WriteoffAmt</string><string xmlns=\"java:language_builtins.lang\">"
                "KEYDATA</string></fieldNames><updInd xsi:nil=\"true\"/></ParamDataSet>"
                "<ParamDataSet><test xsi:nil=\"true\"/><dataRows><ParamRow><test xsi:nil="
                "\"true\"/>"
                "<fieldValues><string xmlns"
                "=\"java:language_builtins.lang\">{BillNo}</string><string xmlns=\""
                "java:language_builtins.lang\">A</string><string xmlns=\"java"
                ":language_builtins.lang\">{LOGINCODE}0706{RptDate}N{RandValue}</string><string xmlns"
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2007-7-26 15:11:36 | 只看该作者
"=\"java:language_builtins.lang\"/></fieldValues>"
                "</ParamRow></dataRows><fieldNames><string xmlns=\"java:language_builtins.lang\">"
                "tblReference.BillNo</string><string xmlns=\"java:language_builtins.lang\">"
                "tblReference.RecSts</string><string xmlns=\"java:language_builtins.lang\">"
                "tblReference.RptNo</string><string xmlns=\"java:language_builtins.lang\">"
                "KEYDATA</string></fieldNames><updInd xsi:nil=\"true\"/></ParamDataSet>"
                "<ParamDataSet><test xsi:nil=\"true\"/><dataRows><ParamRow><test xsi:nil="
                "\"true\"/><fieldValues><string xmlns=\"java:language_builtins.lang\">C</string>"
                "<string xmlns=\"java:language_builtins.lang\">B013</string><string xmlns="                "\"java:language_builtins.lang\">B</string><string xmlns="
                "\"java:language_builtins.lang\">0100</string><string xmlns="
                "\"java:language_builtins.lang\">013</string><string xmlns="
                "\"java:language_builtins.lang\"/><string xmlns=\"java:language_builtins.lang\"/>"
                "<string xmlns=\"java:language_builtins.lang\"/></fieldValues></ParamRow>"
                "</dataRows><fieldNames><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.Action</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.FlowID</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.FromSide</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.FromStatus</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.FunctionID</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.ToSide</string><string xmlns=\"java:language_builtins.lang\">"
                "tblTxFlow.ToStatus</string><string xmlns=\"java:language_builtins.lang\">"
                "KEYDATA</string></fieldNames><updInd xsi:nil=\"true\"/></ParamDataSet></data>"
                "<dataType xsi:nil=\"true\"/><exportFromDate xsi:nil=\"true\"/><exportToDate "
                "xsi:nil=\"true\"/><filePath xsi:nil=\"true\"/><funcType>1</funcType><isAck "
                "xsi:nil=\"true\"/><journalNo xsi:nil=\"true\"/><keyData xsi:nil=\"true\"/>"
                "<msgFromAddr xsi:nil=\"true\"/><msgFromSide xsi:nil=\"true\"/><msgFromSideCode "
                "xsi:nil=\"true\"/><msgRouter xsi:nil=\"true\"/><msgToAddr xsi:nil=\"true\"/>"
                "<msgToSide xsi:nil=\"true\"/><msgToSideCode xsi:nil=\"true\"/><organLevel "
                "xsi:nil=\"true\"/><organType>B</organType><receiveDate xsi:nil=\"true\"/>"
                "<rptType>B</rptType><sendDate xsi:nil=\"true\"/><sendSeqNo xsi:nil=\"true\"/>"
                "<sendType xsi:nil=\"true\"/><submitDate xsi:nil=\"true\"/><txType xsi:nil="
                "\"true\"/></inParam></submitData></soap:Body></soap:Envelope>",
                "Snapshot=t7.inf",
                "ResponseParam=response",
                LAST);

动态的把查询出来的数据中的两个表数组取出来,放在现在提交的脚本中运行作为参数化的一部分,但是如果在取的的数据中如果有中文,并且对这个动态数组进行修改的话,就会出现乱码,就破坏了原由的XML格式,
不知道怎么修改
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2007-7-26 15:13:02 | 只看该作者
简单的说明问题就是

下面这个命令执行的替换的XML中如果没有中文就是OK的如果有中文就会出现乱码

lr_xml_replace("XML={tblPayReceiveBFChk1}", "ResultParam=tblPayReceiveBFChk1",
                                        "Query=/fieldValues/string[55]",
                                        "XmlFragment=<string xmlns=\"java:language_builtins.lang\">{TxAmt}</string>",
                                        LAST);
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2007-7-27 10:01:53 | 只看该作者
大家都没有遇到这样的问题吗??
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-26 03:30 , Processed in 0.077352 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表