51Testing软件测试论坛
标题:
只要在use soap header下加入几行认证xml语句
[打印本页]
作者:
net_rong
时间:
2007-7-13 11:56
标题:
只要在use soap header下加入几行认证xml语句
脚本中显示如下
"SOAPHeader=<soap:Header> <CredentialSoapHeader xmlns=\"http://tempuri.org/\""
"> <UserName>
user
</UserName> <PassWord>
password
</PassWord> "
"</CredentialSoapHeader> </soap:Header>",
作者:
qiguojie
时间:
2007-7-13 12:00
???什么东西
作者:
Hbxlhm
时间:
2007-7-17 22:31
谢谢楼主!
作者:
huoxingyinzi
时间:
2008-12-21 03:02
小妹的脚本如下:
Action()
{
"SOAPHeader=<soap:Header> <CredentialSoapHeader xmlns=\"http://www.bellpv.ca/VASPOS2/\""
"> <authentication></authentication> <username>VASPOS2</username> <password>vp2aA2@1234</password> "
"</CredentialSoapHeader> </soap:Header>",
web_service_call( "StepName=getCustomerProfile_101",
"SOAPMethod=Pipe.PipeSoap.getCustomerProfile",
"ResponseParam=response",
"Service=Pipe",
"Snapshot=t1229796794.inf",
BEGIN_ARGUMENTS,
"xml:request=<request><accessPassword>auto string</accessPassword><authRequired>"
"N</authRequired><partnerID>GM</partnerID><timestamp>auto string</timestamp>"
"<userID>b1shen01</userID></request>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
运行没有错,但是在response中返回中不正确:
<responseInfo>
<responseCode>98</responseCode>
<responseDescription>
Invalid Authentication Credentials
</responseDescription>
<accessInfo />
<personalInfo />
</responseInfo>
</getCustomerProfileResult>
</getCustomerProfileResponse>
</soap:Body>
</soap:Envelope>
依然验证无效了,楼主能不能帮忙看看
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2