51Testing软件测试论坛
标题:
LoadRunner测试webservices接口问题---紧急求助
[打印本页]
作者:
dagoubuyaoren
时间:
2013-5-29 11:03
标题:
LoadRunner测试webservices接口问题---紧急求助
LR脚本导入wsdl并参数化参数arg0、arg1、arg2如下:
Action()
{
web_service_call( "StepName=dataCenterSingleWebService_101",
"SOAPMethod=DataCenterBusinessBLO|DataCenterBusinessBLOPort|dataCenterSingleWebService",
"ResponseParam=response",
"Service=DataCenterBusinessBLO",
"ExpectedResponse=SoapResult",
"Snapshot=t1369797048.inf",
BEGIN_ARGUMENTS,
"arg0=B003",
"arg1=003",
"arg2=<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?><input><aab004>001</aab004><aab002>001</aab002></input>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
return 0;
}
运行后有日志提示其中一部分如下:
Action.c(4): Notify: Saving Parameter "dataCenterSingleWebService_101_Response = <dataCenterSingleWebService><return><?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<result>\n <code>-1</code>\n <message>XML转换失败,请检查格式是否正确!</message>\n <output/>\n</result>\n</return></dataCenterSingleWebService>".
Action.c(4): Notify: Saving Parameter "response = <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:dataCenterSingleWebServiceResponse xmlns:ns1="http://bo.business.sjzx.gzsyjxxh.gov/"><ns1:return><?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<result>\n <code>-1</code>\n <message>XML杞崲澶辫触,璇锋鏌ユ牸寮忔槸鍚︽纭紒</message>\n <output/>\n</result>\n</ns1:return></ns1:dataCenterSingleWebServiceResponse></soap:Body></soap:Envelope>".
作者:
dagoubuyaoren
时间:
2013-5-29 11:17
是我的arg2参数转义有问题吗?
求教大神解决
作者:
yangxiaohu
时间:
2013-5-29 11:41
表示不懂。。。帮顶
作者:
dagoubuyaoren
时间:
2013-5-29 13:50
谢谢楼上
求大神转义
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2