|
5#
楼主 |
发表于 2007-8-28 16:11:25
|
只看该作者
非常感谢楼上的回答,这种strcpy和strcat如果在字符较少的时候是可以处理但字符一多就很麻烦了,本来我的order_no是想替换下面倒数第4行的,这个{order_no}原来就是str中的字符串,麻烦再帮忙看看啊,再次感谢!
我看到loadrunner的lr_save_string的帮助可以将字符直接替换的啊,不知道怎么到我这里就不行了,sdlkfj8
soap_request("StepName=SQLParaUpdate",
"URL=http://10.0.19.7/A3/SqlEngineService.asmx",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\"no\"?>"
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" "
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi="
"\"http://www.w3.org/2001/XMLSchema-instance\">\r\n<soap:Body>\r\n<SQLParaUpdate "
"xmlns=\"http://tempuri.org/\">\r\n<in0>NG00012003</in0>\r\n<in1>"
"LZWNJuOZlOR0EEDOhvEBvORkgxtOcIFBzPJzNxvFggOEDOZpiEZjZjMMPMh0kZvNpwkQgO8lMpoN51gs"
"bNhvMZzOptjZllctiBwOktkkPOEYkZoMpjNdHN0bNJzMc3msJqVKplQOZvN5zrUkNxjMpsNlaOByhUbO"
"U+"
"kprrwgMdYNcnkZ1OUTPJsMs9PBnORhOl7EBmMZfm85ncbOh5OBlt9TNJlNx0xeNjcFNxkuggMJtmeTkc"
"ltBhM+"
"CMpmM1LOmbM9cMhzOBsMNijeeMh1jZkqJj3O7yuCOZoNNCxmCwhfzuflGDwtF0eljcOiEH4sbOBhPO*"
"GPWrp0nU85hfOHd79m7sb1pv18LjZiNNk9lwN+"
"Tv5jocaq3XPNaj5uO0BblpxfRMcnbVZmBkYocniHIbxqgAZhfQqBUQhAbk7gUcxyfZ1UcWhYl*"
"G4a29VJ5XhbqJGJCCFIRZMM2XQMdolgeJXHf2MYpjVkmvikdklHlm49HIeRtGFTwgVtdm0fJK2BSuEYI"
"RxshuF9mxjcoZHYdFD22cAYV6b9Ixzl4ZW*CkII9GwdWOCAKA*RubggnCcpvnScZ1nOdp5nie53n2ep+"
"nyf6CoGhKAoag6HoWiKLoQKUAA==</in1>\r\n<in2>string,string,datetime,string,string,"
"double,string,string,string,string,int,int,int,int,int,string,datetime,string,"
"double,double,int,int,datetime,double,double,datetime,string,double,double,int,"
"string,double,double,int,string,double,double,int,string,string,string,int,int,"
"string,int,string,int,double,string,string,double,double,int,double,double,"
"double,double,datetime,string,int,int,datetime,int,string,string,string</in2>"
"\r\n<in3>"
"LZW{order_no}</in3>\r\n</SQLParaUpdate>\r\n</soap:Body>\r\n</soap:Envelope>",
"Snapshot=t852.inf",
"ResponseParam=response",
LAST); |
|