客户端压力测试,选择webservice协议,运行脚本报错
脚本代码:web_add_header("Content-Type", "text/xml; charset=\"utf-8\"");
soap_request("StepName=encodePassword",
"URL=http://183.62.39.211:6003/prtwf/wsfire/PasswordWebService",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"zh_cn\"?>\r\n<SOAP-ENV"
":Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\""
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://"
"www.w3.org/2001/XMLSchema-instance\"><SOAP-ENV:Body><encodePassword "
"xmlns=\"http://webService.service.oa.westwind.com\"><in0>111111</in0>"
"<in1>111111</in1></encodePassword></SOAP-ENV:Body></SOAP-ENV"
":Envelope>\r\n",
"Snapshot=t2.inf",
"ResponseParam=response",
LAST);
错误提示信息:
vuser_init.c(46): Warning -26594: The header being added may cause unpredictable results if applied to ALL the URLs generated on behalf of the next script function. It will apply to the primary URL only.
vuser_init.c(46): web_add_header("Content-Type") highest severity level was "warning"
vuser_init.c(48): soap_request "encodePassword" started.
vuser_init.c(48): soap_request "encodePassword" was successful
哪位高手能帮忙解惑一下 使用soap_request()这种方式,需要在其前面加上以下POST、HOST和Content-Type三个web_add_auto_header()头函数。
页:
[1]