MyService
单击此处,获取完整的操作列表。
GetRouteSpotsStaticdata
线路下地点卡【结合静态数据】
参数:
string Token: 非空,Token数据
string RouteID: 线路ID, 非空,加密
string QueryDate:“今天(当前日期,格式为:yyyy-MM-dd,举例 2020-05-31)”,非空,加密
string BeginTime:“时间段开始时间(格式为:HH:mm:ss,24小时制,举例 00:12:00)”,非空,加密
string PageIndex: 页码,页码从0开始, 非空,加密
string Keyword: 地址卡名称,支持模糊查询,可以为空,加密
返回结构:
ReturnValue<List<SpotInfo>> json字符串数据
public class ReturnValue<T>
{
public long Result;//错误代码
public int MaxCount;//地点卡总数
public int PageSize;//每页显示记录数
public string Message;
public T Values;
}
public class SpotInfo
{
public string SpotID;//地点卡ID【数据库自增字段】
public string SpotName;//地点名称
public string CardNo;//地点卡号
public int Orders; //排序号
public int RouteClassID;// 线路类型(Route表ClassID字段) 【1、普通线路;2、工单线路(四级项目);3、临时工单模板线路;4、临时工单线路;】在新APP中 当 RouteClassID = 4 同时 地址卡号 CardNo 以 8F 开头,表示“虚拟卡号”,用户不需要“刷卡”可以直接进入数据填报页面
public string Comments;//备注
public double Longitude;//经度 当 Longitude == 0.0 同时 Latitude == 0.0 时,表示这个地址卡没有输入GPS坐标
public double Latitude; //纬度 当 Longitude == 0.0 同时 Latitude == 0.0 时,表示这个地址卡没有输入GPS坐标
public int GPSQualiRange; //手持机采集到的坐标点,与“地址卡坐标点(SpotInfo.Longitude, SpotInfo.Latitude)”之间的合格距离(单位:米)。【两点之间的距离,小于或者等于GPSQualiRange,表示打卡成功】
public bool NeedCheck; //是否指纹检测
public int PlanTypeID; //计划巡检类型(0、按指定人员;1、按班组;2、不指定人员;)
public string PatrolTime; //巡检时间
public string PlanPatrolMan; //计划巡检人员(或者班组名称)
public int TypeID; //数据类型ID (0、合格;1、误点;2、漏检;3、待检(默认);4、异常(只有事件型、项目型才有异常);5、(误点+异常));
public string UnisionID; //原始数据唯一值(TypeID 的值为 2、3 的时候,此值为空)
public string Address; //详细地址,暂时未用
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 获取数据成功 |
| Result=-1 | 出错, Message为错误信息 |
| Result=-2 | Token非法 |
| Result=-10 | 当前登录帐号已经在其他机器上登录 |
| Result=-31 | Token失效 |
提示:
如果地点卡数据超过一页(>50 spots), 请循环这个方法进行获取
测试
若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetRouteSpotsStaticdata"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetRouteSpotsStaticdata xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<QueryDate>string</QueryDate>
<BeginTime>string</BeginTime>
<PageIndex>string</PageIndex>
<Keyword>string</Keyword>
</GetRouteSpotsStaticdata>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetRouteSpotsStaticdataResponse xmlns="http://tempuri.org/">
<GetRouteSpotsStaticdataResult>string</GetRouteSpotsStaticdataResult>
</GetRouteSpotsStaticdataResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetRouteSpotsStaticdata xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<QueryDate>string</QueryDate>
<BeginTime>string</BeginTime>
<PageIndex>string</PageIndex>
<Keyword>string</Keyword>
</GetRouteSpotsStaticdata>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetRouteSpotsStaticdataResponse xmlns="http://tempuri.org/">
<GetRouteSpotsStaticdataResult>string</GetRouteSpotsStaticdataResult>
</GetRouteSpotsStaticdataResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/GetRouteSpotsStaticdata?Token=string&RouteID=string&QueryDate=string&BeginTime=string&PageIndex=string&Keyword=string HTTP/1.1 Host: www.zooytech.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx/GetRouteSpotsStaticdata HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&RouteID=string&QueryDate=string&BeginTime=string&PageIndex=string&Keyword=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>