|
2#
楼主 |
发表于 2007-7-20 09:53:25
|
只看该作者
soap_request("StepName=login",
"URL=http://{LOGINIP}/safe/LoginWebService",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\""
"no\"?><soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap=\""
"http://schemas.xmlsoap.org/soap/envelope/\"><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>{LOGINCODE}</organCode>"
"<sessionID xsi:nil=\"true\"/><sessionIDSSO xsi:nil=\"true\"/><userID"
">QC{USERID}</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>",
"Snapshot=t1.inf",
"ResponseParam=response",
LAST);
soap_request("StepName=login_2",
"URL=http://{LOGINIP}/safe/LoginWebService",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\""
"no\"?><soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap=\""
"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><login xmlns=\""
"http://www.openuri.org/\"><inParam xmlns=\"java"
":ecsolutions.safe.parameters\"><action xsi:nil=\"true\"/><authHash"
">fbe7139977e5a64e27ed4256b6026b82</authHash><funcID>2E1</funcID>"
"<menuID xsi:nil=\"true\"/><methodID xsi:nil=\"true\"/><organCode"
">{LOGINCODE}</organCode><sessionID"
">20070626130309{LOGINCODE}fOJWdQRsrdPRXUVUZ47aQC{USERID}</sessionID>"
"<sessionIDSSO xsi:nil=\"true\"/><userID>QC{USERID}</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>7011</verno></inParam></login>"
"</soap:Body></soap:Envelope>",
"Snapshot=t2.inf",
"ResponseParam=response",
LAST);
上面是登录的两个请求!!第一个请求是得到服务器的sessionID 第二个是登录请求,各位帮忙看看,密码该如何参数化呢?? |
|