mily 发表于 2012-1-11 13:44:18

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

mily 发表于 2012-1-11 14:09:35

原脚本:
        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);

mily 发表于 2012-1-11 15:42:21

找到原因了,配置HTTP协议时,习惯将head配置为DO NOT record headers.对脚本进行瘦身,但是soap_request,是需要web_add_auto_header函数支援的

oceanwell 发表于 2012-1-12 13:47:10

so ga,学习了

zcl432106 发表于 2012-7-23 10:03:44

在哪设置head啊?

zcl432106 发表于 2012-7-23 10:41:07

知道在哪了,是在Advanced--Headers--选择Record headers in list--OK
页: [1]
查看完整版本: LR SOAP request execution failed