TA的每日心情 | 慵懒 2016-3-24 21:22 |
---|
签到天数: 35 天 连续签到: 1 天 [LV.5]测试团长
|
测试某个接口,先用了web_service_call请求,报错,抓包也没有抓到任何信息;后来尝试用soap_request成功,具体参数完全一致。现在就想了解web_service_call请求为什么会发生这个错误,并且希望各位能够提供解决方案,非常感谢。
脚本代码如下:
- Action()
- {
-
- web_service_call( "StepName=createBatchTransOrder_103",
- "SOAPMethod=WSTransOrderServiceBeanService|TransOrderServicePort|createBatchTransOrder",
- "ResponseParam=response",
- "Service=WSTransOrderServiceBeanService",
- "ExpectedResponse=SoapResult",
- "Snapshot=t1447832049.inf",
- BEGIN_ARGUMENTS,
- "xml:createBatchTransOrder="
- "<createBatchTransOrder>"
- "<arg0>"
- "<token>xxx</token>"
- "</arg0>"
- "<arg1>"
- "<acceptAddress>{acceptAddress}</acceptAddress>"
- "<acceptPerson>{acceptPerson}</acceptPerson>"
- "</arg1>"
- "</createBatchTransOrder>",
- END_ARGUMENTS,
- BEGIN_RESULT,
- END_RESULT,
- LAST);
- return 0;
- }
复制代码
错误如下:
- Action.c(6): Web service call "createBatchTransOrder_103" started
- Action.c(6): Error Exceptions:
- Action.c(6): Error: InvokeMethod failure: 外部组件发生异常。.
- Action.c(6): Error: ExtractResultArg failure: 外部组件发生异常。.
- Action.c(6): Error: Web service call "createBatchTransOrder_103" execution failed
- Ending action Action.
- Ending iteration 1.
- Ending Vuser...
- Starting action vuser_end.
- Ending action vuser_end.
- Vuser Terminated.
复制代码
|
|