MyService
单击此处,获取完整的操作列表。
GetRouteSpots
获取指定线路下的地点卡【下载地址卡、切换线路的时候使用到】
参数:
string Token: Token数据
string RouteID: 线路ID, 加密
string Keyword: 地址卡卡号、地址卡名称,支持模糊查询,可以为空,加密
string PageIndex: 页码,页码从0开始, 加密
返回结构:
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 int RouteClassID;//1、普通线路;2、工单线路(四级项目);3、临时任务模板线路;4、临时任务线路;
public string SpotID;//地点卡ID【数据库自增字段】
public string SpotName;//地点名称
public string CardNo;//地点卡号
public int Orders; //排序号
public string Comments;//备注
public double Longitude;//经度
public double Latitude; //纬度
public int GPSQualiRange; //手持机采集到的坐标点,与“地址卡坐标点(SpotInfo.Longitude, SpotInfo.Latitude)”之间的合格距离(单位:米)。【两点之间的距离,小于或者等于GPSQualiRange,表示打卡成功】
public bool PhotoFromAlbum;// 地址卡刷卡,照片,能否从相册中,选取照片【true、允许从相册选取;fasle、禁止;】
public int PictureCount;// 当前地址卡,允许拍摄的 照片数量 的最大值【当 PictureCount = 0 时,不允许拍照 】
public bool VideoFromAlbum;// 地址卡刷卡,视频,能否从相册中,选取视频【true、允许从相册选取;fasle、禁止;】
public int VideoCount;// 当前地址卡,允许拍摄的 视频数量 的最大值【当 VideoCount = 0 时,不允许拍视频 】
public int VideoTime;// 当前地址卡,允许拍摄的 视频时间长度 的最大值【单位:秒】
public int VideoSize;// 当前地址卡,如果允许从相册选取视屏 视频文件大小 的最大值【单位:M (兆)】
public int TimeInterval;// 打卡(读取地址卡)时间,与数据提交(点击数据提交按钮)到服务器时间,之间的时间间隔【少于这时间,不能点击数据提交按钮】【单位:分钟】
public bool NeedCheck; //是否指纹检测
public string ModelTypeID; //Z-5000X 地址卡信息显示模式【A、简易模式(默认);B、事件模式;C、表单模式;D、流水模式;】
public string FormName; //Z-5000X 表单名称【举例:保洁记录表】
public string PromptText; //Z-5000X 提示信息【举例:xx物业】
public string Address; //详细地址,暂时未用
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 获取数据成功 |
| Result=-1 | 出错, Message为错误信息 |
| Result=-2 | Token非法 |
| Result=-10 | 当前登录帐号已经在其他机器上登录 |
| Result=-31 | Token失效 |
提示:
如果地点卡数据超过一页(>200 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/GetRouteSpots"
<?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>
<GetRouteSpots xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<PageIndex>string</PageIndex>
<Keyword>string</Keyword>
</GetRouteSpots>
</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>
<GetRouteSpotsResponse xmlns="http://tempuri.org/">
<GetRouteSpotsResult>string</GetRouteSpotsResult>
</GetRouteSpotsResponse>
</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>
<GetRouteSpots xmlns="http://tempuri.org/">
<Token>string</Token>
<RouteID>string</RouteID>
<PageIndex>string</PageIndex>
<Keyword>string</Keyword>
</GetRouteSpots>
</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>
<GetRouteSpotsResponse xmlns="http://tempuri.org/">
<GetRouteSpotsResult>string</GetRouteSpotsResult>
</GetRouteSpotsResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/GetRouteSpots?Token=string&RouteID=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/GetRouteSpots HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&RouteID=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>