51Testing软件测试论坛
标题:
LR11中soap_request函数和web_service_call有何区别?
[打印本页]
作者:
暗影猎手
时间:
2013-3-2 11:33
标题:
LR11中soap_request函数和web_service_call有何区别?
在公司测试OA提供的webservices接口,试用了两种方式,为何soap_request可以请求成功,而web_service_call请求就报错了呢?请问大虾们,这是为什么?两个函数有何区别?
两个请求函数如下:
soap_request("StepName=SOAP Request",
"URL=
http://192.168.17.218:8080/dipAp ... SSImplServices?wsdl
",
"SOAPEnvelope="
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:foss=\"http://foss.errors.businessManagement.integrateportal.dip\">"
"<soapenv:Header></soapenv:Header>"
"<soapenv:Body>"
"<foss:hangdingid>201103100103</foss:hangdingid>"
"</soapenv:Body>"
"</soapenv:Envelope>",
"SOAPAction=",
"ResponseParam=response",
"Snapshot=t1358759330.inf",
LAST);
web_service_call( "StepName=queryVirtrualWaybill_101",
"SOAPMethod=OAErrorsForFOSSImplService|OAErrorsForFOSSImplServices|queryVirtrualWaybill",
"ResponseParam=response",
"Service=OAErrorsForFOSSImplService",
"ExpectedResponse=SoapResult",
"Snapshot=t1362193957.inf",
BEGIN_ARGUMENTS,
"hangdingid=201103100103",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
作者:
shotting
时间:
2013-3-5 17:07
一样的作用,不一样的参数格式而已。
一般要是SOAP请求的话就用soap_request, REST或者其他可以使用service_call.
在SOAP请求方面,两个方法是通用的
作者:
尚云鹏
时间:
2013-4-2 11:27
暗影猎手 ,请问你的问题解决了吗?我也遇到在WEB_SERVICE_CALL中回放,就失败的问题,报错提示:soap
header 信息不能为空,迷茫了,论坛里对WEBSERVICE 接口测试的解答太少了。求助
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2