|
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1008
------------------------------------------------------------------------------- */
vuser_init()
{
web_custom_request("LoginWebService",
"URL=http://192.1.6.64:7051/safe/LoginWebService",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><login xmlns=\"http://www.openuri.org/\"><inParam xmlns=\"java:ecsolutions.safe.parameters\"><action xsi:nil=\"true\" /><authHash xsi:nil=\"true\" /><funcID xsi:nil=\"true\" /><menuID xsi:nil=\"true\" /><methodID xsi:nil=\"true\" /><organCode>100000</organCode>"
"<sessionID xsi:nil=\"true\" /><sessionIDSSO xsi:nil=\"true\" /><userID>safe04</userID><warningCheck xsi:nil=\"true\" /><authList xsi:nil=\"true\" /><authListHash xsi:nil=\"true\" /><authMethod xsi:nil=\"true\" /><password xsi:nil=\"true\" /><sessionStatus>beginSession</sessionStatus><verno xsi:nil=\"true\" /></inParam></login></soap:Body></soap:Envelope>",
LAST);
web_custom_request("LoginWebService_2",
"URL=http://192.1.6.64:7051/safe/LoginWebService",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><login xmlns=\"http://www.openuri.org/\"><inParam xmlns=\"java:ecsolutions.safe.parameters\"><action xsi:nil=\"true\" /><authHash>0bcd3f4b6ad405b1a618786001371834</authHash><funcID>2E1</funcID><menuID xsi:nil=\"true\" /><methodID xsi:nil=\"true\" /><organCode>100000</"
"organCode><sessionID>20060817092256000000100000ulWEheoxwK00OMZM4i3Xsafe04</sessionID><sessionIDSSO xsi:nil=\"true\" /><userID>safe04</userID><warningCheck xsi:nil=\"true\" /><authList xsi:nil=\"true\" /><authListHash xsi:nil=\"true\" /><authMethod>digest</authMethod><password xsi:nil=\"true\" /><sessionStatus xsi:nil=\"true\" /><verno>6806</verno></inParam></login></soap:Body></soap:Envelope>",
LAST);
web_custom_request("CheckNewMessageWebService",
"URL=http://192.1.6.64:7051/safe/CheckNewMessageWebService",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><checkNewMessage xmlns=\"http://www.openuri.org/\"><inParam xmlns=\"java:ecsolutions.safe.parameters\"><action xsi:nil=\"true\" /><authHash>444f63e3a97d084752d0438e3d682cb4</authHash><funcID xsi:nil=\"true\" /><menuID xsi:nil=\"true\" /><methodID xsi:nil=\"true\" />"
"<organCode>100000</organCode><sessionID>20060817092256000000100000ulWEheoxwK00OMZM4i3Xsafe04</sessionID><sessionIDSSO /><userID>safe04</userID><warningCheck xsi:nil=\"true\" /></inParam></checkNewMessage></soap:Body></soap:Envelope>",
LAST);
web_custom_request("GetMenuWebService",
"URL=http://192.1.6.64:7051/safe/GetMenuWebService",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><getMenu xmlns=\"http://www.openuri.org/\"><inParam xmlns=\"java:ecsolutions.safe.parameters\"><action xsi:nil=\"true\" /><authHash>406447e13ebef5d58c8aabbbe707f4e1</authHash><funcID>getMenu</funcID><menuID xsi:nil=\"true\" /><methodID>getMenu</methodID><organCode"
">100000</organCode><sessionID>20060817092256000000100000ulWEheoxwK00OMZM4i3Xsafe04</sessionID><sessionIDSSO /><userID>safe04</userID><warningCheck xsi:nil=\"true\" /><organLevel>1</organLevel><organType>S</organType><userType>T</userType></inParam></getMenu></soap:Body></soap:Envelope>",
LAST);
return 0;
}
上面是vuser_init中的内容,需要关联的是<sessionID>20060817092256000000100000ulWEheoxwK00OMZM4i3Xsafe04</sessionID>中间的内容和<authHash>406447e13ebef5d58c8aabbbe707f4e1</authHash>中间的内容做关联,按照论坛上提供的资料进行做关联,但是都会提示错误,请高手帮忙
谢谢 |
|