📄 startperiodicnotification.java
字号:
package test.lcsL1Test;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
import cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.v2_1.service.*;
import cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.v2_1._interface.*;
import java.net.URL;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.*;
import org.apache.axis.types.*;
import cn.com.chinatelecom.www.schema.ctcc.common.v2_1.*;
import org.apache.axis.types.URI;
public class startPeriodicNotification {
public startPeriodicNotification() {
}
public static void main(String[] args) {
try {
String url = "http://10.40.90.15:8080/sagWeb/services/TerminalLocation";
//余燕给的参数顺序
//MSID_TYPE;MSID:MSID;QUERYPASSWORD;MSID:MSID;QUERYPASSWORD;TIME;START_TIME;
//STOP_TIME;INTERVAL;GMT_OFF;PR_TRIGGER;POSREQTYPE;COORD_SYS;DATUM;LL_FORMAT;
//RESP_REQ;RESP_TIMER;HOR_ACC;ALT_ACC;PRIO
String msIdType = "";
String msId = ""; //多个msId用;隔开
String queryPassWord = ""; //同上
String time = "";
String startTime = "";
String stopTime = "";
String interval = "";
String gmtOff = "";
String prTrigger = "";
String posReqType = "";
String coordSys = "";
String datum = "";
String llFormat = "";
String respReq = "";
String respTimer = "";
String horAcc = "";
String altAcc = "";
String prio = "";
sendStartPeriNoti req = new sendStartPeriNoti(url);
posInfos[] res = req.sendLCS(msIdType, msId,
queryPassWord, time, startTime,
stopTime, interval, gmtOff, prTrigger,
posReqType, coordSys, datum,
llFormat, respReq, respTimer,
horAcc, altAcc, prio);
for (int i = 0; i < res.length; i++) {
System.out.println(i + ":");
System.out.println("clientId:" + res[i].clientId);
System.out.println("orId:" + res[i].orId);
System.out.println("positionResult:" + res[i].positionResult);
System.out.println("msId:" + res[i].msId);
System.out.println("msId_type:" + res[i].msId_type);
System.out.println("areaCode:" + res[i].areaCode);
System.out.println("localTime:" + res[i].localTime);
System.out.println("latitudeType:" + res[i].latitudeType);
System.out.println("latitude:" + res[i].latitude);
System.out.println("longitudeType:" + res[i].longitudeType);
System.out.println("longitude:" + res[i].longitude);
System.out.println("radius:" + res[i].radius);
System.out.println("velocity:" + res[i].velocity);
System.out.println("direction:" + res[i].direction);
System.out.println("posour:" + res[i].posour);
}
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -