TA的每日心情 | 开心 2018-9-2 15:58 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
附上脚本:
Action()
{
int myfile;
web_reg_save_param("xml",
"LB=<vncport>",
"RB=</vncport>",
"Ord=all",
LAST);
soap_request("StepName=SOAP Request",
"URL=http://10.10.3.2/dp/cam/hb",
"SOAPEnvelope="
"<req ver=\"1.0\" version=\"2.0.0.0.114262\" devid= \"501\">"
"<parent>1</parent>"
"<seqid>0<seqid>"
"<time>2011-05-03 11:33:00</time>"
"</req>", "SOAPAction=Action", "ResponseParam=response", "Snapshot=t1304390001.inf",
LAST);
lr_output_message(lr_eval_string("{xml}"));
myfile = fopen( "C:\\temp\\a.txt","a" );
fprintf( myfile,"%s\n",lr_eval_string("{xml}"));
return 0;
}
执行结果日志:
不知道为什么会有这句话"SOAP request response content is not XML",不知道是否跟无法读取有关系?
但是在Tree视图里,可以看到server response的内容是XML结构的:
|
|