LR SOAP request execution failed
录制了一个双协议的服务,其中一部分是webservice协议。LR为9.5.协议含HTTP&&webservice该部分的脚本所有的soap_request函数全部出错,
Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Error: SOAP request "GetNetTree" execution failed
Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Error: SOAP request "GetDeivceStatusCount" execution failed 原脚本:
web_add_header("Content-Type", "text/xml; charset=utf-8");
soap_request("StepName=GetAllMonitorPluginXapNames",
"URL=http://192.168.8.150:8090/Service/LayoutTreeService.svc",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"no\"?"
"><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s"
":Body><GetAllMonitorPluginXapNames xmlns=\"http://tempuri.org/\"/></s"
":Body></s:Envelope>",
"Snapshot=t28.inf",
"ResponseParam=response",
LAST); 找到原因了,配置HTTP协议时,习惯将head配置为DO NOT record headers.对脚本进行瘦身,但是soap_request,是需要web_add_auto_header函数支援的 so ga,学习了 在哪设置head啊? 知道在哪了,是在Advanced--Headers--选择Record headers in list--OK
页:
[1]