|
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>". |
|