|
Action()
{
web_service_call( "StepName=login_102",
"SOAPMethod=LoginServiceProxyService|LoginServiceProxy|login",
"ResponseParam=response",
"Service=LoginServiceProxyService",
"ExpectedResponse=SoapResult",
"Snapshot=t1359354738.inf",
BEGIN_ARGUMENTS,
"xmlpt="
"<opt></opt>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
return 0;
}
如何在脚本里写调用函数?
4) 入参说明:
入参类型: Object
入参格式:
{"type":"1",
"parameters":{
" username ":"xxxxx",
" password ":"xxxxx"
}}
其中:
type:入参类型为“1”
parameters:参数,包括用户名“username”和密码“password” ,username不可为空。
出参说明:
出参类型:String
出参格式:{“status”:”0”}或{“status”:”1”, “fail-reason”: ”error msg”}
其中:
status:“0”接口调用成功;“1”接口调用失败
fail-reason:为错误信息 |
|