|
4#
楼主 |
发表于 2009-11-11 16:15:04
|
只看该作者
其实那个图片很清楚了,lr_xml_get_values捕获的选择select all时yes 一共有26个匹配的值,no就自动取第一个
但第一个不是我想要的,问题就在这里,而web_reg_save_param好像在webservices上无效的
脚本如下:
soap_request("StepName=login",
"URL=http://192.168.1.128:9080/pfms/services/LoginWebService?wsdl",
"SOAPEnvelope="
"<?xml version=\"1.0\" encoding=\"US-ASCII\" standalone=\"no\"?>"
"<E:Envelope E:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:y=\"http://www.w3.org/2001/XMLSchema\" xmlns:s=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:A=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:E=\"http://schemas.xmlsoap.org/soap/envelope/\">"
"\r\n"
"<E:Body>"
"\r\n"
"<m:login xmlns:m=\"http://webservice.login.sysman.tfms.gever.com\">"
"\r\n"
"<parameterStr A:arrayType=\"A:string[5]\" s:type=\"A:Array\">"
"\r\n"
"<item>userName==js02</item>"
"\r\n"
"<item>passWord==</item>"
"\r\n"
"<item>loginZT==1001</item>"
"\r\n"
"<item>loginYear==2009</item>"
"\r\n"
"<item>loginIP==0.0.0.0</item>"
"\r\n"
"</parameterStr>"
"\r\n"
"</m:login>"
"\r\n"
"</E:Body>"
"\r\n"
"</E:Envelope>",
"Snapshot=t3.inf",
"ResponseParam=response",
LAST);
//lr_output_message("ddd :%s", lr_eval_string("{response}"));
lr_xml_get_values("XML={response}",
"Query=/soapenv:Envelope/soapenv:Body/ns1:loginResponse/loginReturn/loginReturn",
"ValueParam=loginReturn",
"SelectAll=no",
LAST);
[ 本帖最后由 pzj228 于 2009-11-11 16:24 编辑 ] |
|