MyService
单击此处,获取完整的操作列表。
GetRouteSpotsDetail
线路下地点卡数据明细【结合静态数据,Z-9000巡检,详情页面】
参数:
string Token: 非空,Token数据
string RouteID: 线路ID, 非空,加密
string SpotID: 地址卡ID, 非空,加密【GetRouteSpotsStaticdata 接口返回的 SpotID 字段】
string CardNo: 地址卡卡号, 非空,加密【GetRouteSpotsStaticdata 接口返回的 CardNo 字段】
string QueryDate:“今天(当前日期,格式为:yyyy-MM-dd,举例 2020-05-31)”,非空,加密
string BeginTime:“时间段开始时间(格式为:HH:mm:ss,24小时制,举例 00:12:00)”,非空,加密
返回结构:
ReturnValue<List<SpotInfo>> json字符串数据
public class ReturnValue<T>
{
public long Result;//错误代码
public int MaxCount;//地点卡总数
public int PlanTypeID;//计划巡检类型(0、按指定人员;1、按班组;2、不指定人员;)
public string PlanPatrolMan;//计划巡检人员(或者班组名称)【当PlanTypeID = 2时,特殊处理,赋值“任意”或者“Anynoe”】
public int TypeID;//数据类型ID (0、合格;1、误点;2、漏检;3、待检(默认);4、异常(只有事件型、项目型才有异常);5、(误点+异常))
public string CardNo;//地址卡编号
public string CardName;//地址卡名称
public string PatrolCode;//实际巡检人员编号
public string PatrolName;//实际巡检人员名称
public string PatrolTime;//巡更时间点
public string Message;
public T Values;
}
public class Item
{
public int ItemType;//项目类型(0、数字型;1、逻辑型;2、备注;其实2是不存在的,但是Z-9000比较特殊,在录入信息后,可以填写一个“备注信息”,特殊说明)
public string ItemName;//检测项目名称
public string UnitName;//用户填写的值(默认为 -- )
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 获取数据成功 |
| Result=-1 | 出错, Message为错误信息 |
| Result=-2 | Token非法 |
| Result=-10 | 当前登录帐号已经在其他机器上登录 |
| Result=-30 | 参数 UnisionID 为空 |
| 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/GetRouteSpotsDetail"
<?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>
<GetRouteSpotsDetail xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<SpotID>string</SpotID>
<CardNo>string</CardNo>
<QueryDate>string</QueryDate>
<BeginTime>string</BeginTime>
</GetRouteSpotsDetail>
</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>
<GetRouteSpotsDetailResponse xmlns="http://tempuri.org/">
<GetRouteSpotsDetailResult>string</GetRouteSpotsDetailResult>
</GetRouteSpotsDetailResponse>
</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>
<GetRouteSpotsDetail xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<SpotID>string</SpotID>
<CardNo>string</CardNo>
<QueryDate>string</QueryDate>
<BeginTime>string</BeginTime>
</GetRouteSpotsDetail>
</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>
<GetRouteSpotsDetailResponse xmlns="http://tempuri.org/">
<GetRouteSpotsDetailResult>string</GetRouteSpotsDetailResult>
</GetRouteSpotsDetailResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/GetRouteSpotsDetail?Token=string&RouteID=string&SpotID=string&CardNo=string&QueryDate=string&BeginTime=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/GetRouteSpotsDetail HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&RouteID=string&SpotID=string&CardNo=string&QueryDate=string&BeginTime=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>