|
我在做一个web services - soap 脚本时总是碰到一个问题。
下面是我的脚本:
Action()
{
web_add_header("SOAPAction",
"HTTP ");
soap_request("StepName=LR-SOAPAction",
"ExpectedResponse=AnySoap",
"URL=http://shimospt13:7100/services/WSAdapterCallback",
"SOAPEnvelope= xml文件内容",
"Snapshot=t1.inf",
"ResponseParam=result",
LAST );
return 0;
}
运行结果:
Starting iteration 1.
Starting action Action.
Action.c(3): web_add_header("SOAPAction") was successful [MsgId: MMSG-26392]
Action.c(6): SOAP request "LR-SOAPAction" started
Action.c(6): Aborting pending download of URL="http://shimospt13:7100/services/WSAdapterCallback" [MsgId: MMSG-27656]
Action.c(6): Error: Step download timeout (120 seconds) has expired when downloading non-resource(s)
Action.c(6): Error: SOAP request "LR-SOAPAction" execution failed
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
使用的是LR的默认设置:
其中的timeout = 20s
我改过1200s,还是会报这样的错。
然后,我去数据库查看了一下消息,发现消息已经成功插入数据库。
只是在规定的时间内,LR无法收到soap response。
请大侠指教一下,谢谢。 |
|