Action()
{
int msgcount=0;
char next_message_id[32]="";
lr_start_transaction("心跳");
web_service_call( "StepName=getSysMessageCount_101",
"SOAPMethod=DCMessageWS|DCMessageWSSoap|getSysMessageCount",
"ResponseParam=response",
"Service=DCMessageWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1318991539.inf",
BEGIN_ARGUMENTS,
"userId={userID}",
"companyId=1",
"imei=000000000000000",
END_ARGUMENTS,
BEGIN_RESULT,
"getSysMessageCountResult=Param_getSysMessageCountResult",
END_RESULT,
LAST);
lr_end_transaction("心跳", LR_AUTO);
msgcount=atoi(lr_eval_string("{Param_getSysMessageCountResult}"));
if (msgcount>=100){
do {
lr_save_string(next_message_id,"msgID");
lr_start_transaction("查看所有系统消息");
web_service_call( "StepName=GetSysMessDetailBytime_101",
"SOAPMethod=DCMessageWS|DCMessageWSSoap|GetSysMessDetailBytime",
"ResponseParam=response",
"Service=DCMessageWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1318992631.inf",
BEGIN_ARGUMENTS,
"msgID={msgID}",
"userId={userID}",
"imei=000000000000000",
"companyId=1",
END_ARGUMENTS,
BEGIN_RESULT,
"GetSysMessDetailBytimeResult=Param_GetSysMessDetailBytimeResult",
"nextmsgID=Param_nextmsgID",
END_RESULT,
LAST);
lr_end_transaction("查看所有系统消息", LR_AUTO);
strcpy(next_message_id,"");
strcpy(next_message_id,lr_eval_string("{Param_nextmsgID}"));
}while(strcmp(lr_eval_string("{Param_nextmsgID}"),"")!=0);
}
return 0;
}
{
int msgcount=0;
char next_message_id[32]="";
lr_start_transaction("心跳");
web_service_call( "StepName=getSysMessageCount_101",
"SOAPMethod=DCMessageWS|DCMessageWSSoap|getSysMessageCount",
"ResponseParam=response",
"Service=DCMessageWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1318991539.inf",
BEGIN_ARGUMENTS,
"userId={userID}",
"companyId=1",
"imei=000000000000000",
END_ARGUMENTS,
BEGIN_RESULT,
"getSysMessageCountResult=Param_getSysMessageCountResult",
END_RESULT,
LAST);
lr_end_transaction("心跳", LR_AUTO);
msgcount=atoi(lr_eval_string("{Param_getSysMessageCountResult}"));
if (msgcount>=100){
do {
lr_save_string(next_message_id,"msgID");
lr_start_transaction("查看所有系统消息");
web_service_call( "StepName=GetSysMessDetailBytime_101",
"SOAPMethod=DCMessageWS|DCMessageWSSoap|GetSysMessDetailBytime",
"ResponseParam=response",
"Service=DCMessageWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1318992631.inf",
BEGIN_ARGUMENTS,
"msgID={msgID}",
"userId={userID}",
"imei=000000000000000",
"companyId=1",
END_ARGUMENTS,
BEGIN_RESULT,
"GetSysMessDetailBytimeResult=Param_GetSysMessDetailBytimeResult",
"nextmsgID=Param_nextmsgID",
END_RESULT,
LAST);
lr_end_transaction("查看所有系统消息", LR_AUTO);
strcpy(next_message_id,"");
strcpy(next_message_id,lr_eval_string("{Param_nextmsgID}"));
}while(strcmp(lr_eval_string("{Param_nextmsgID}"),"")!=0);
}
return 0;
}