MyService
单击此处,获取完整的操作列表。
QueryCrashRecordList
查询设备跌摔记录
参数:
string Token:Token,
string ListRouteID: 线路 ID(当 RouteID = 0 时,查询所有数据;当有多个线路的时候,线路ID之间使用英文逗号,分开),加密
string BeginDate: 开始时间(格式 yyyy-MM-dd),加密
string EndDate: 结束时间(格式 yyyy-MM-dd),加密
string PageIndex: 页码,每页 10 条数据,页码从 0 开始,加密
返回结构:
ReturnValue<List<CrashRecordModel>> json 字符串数据
public class ReturnValue<T>
{
public long Result; //
public int MaxCount;//跌摔总记录数
public string Message;
public T Values;
}
public class CrashRecordModel
{
public string MeterType; //设备类型
public string DeviceRealID; //设备实际 ID
public string DeviceID; //设备编码(MeterType + DeviceRealID)
public int RouteID; //线路 ID
public string RouteName; //线路名称
public string CrashTime; //跌摔时间
public string UserCardID; //人员卡号(没有实际意义)
public string UserCardName; //人员名称(没有实际意义)
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 执行成功,Message为Token数据 |
| Result=-1 | 程序错误,Message为错误信息 |
| Result=-2 | 公司不存在 |
测试
若要使用 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/QueryCrashRecordList"
<?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>
<QueryCrashRecordList xmlns="http://tempuri.org/">
<Token>string</Token>
<ListRouteID>string</ListRouteID>
<BeginDate>string</BeginDate>
<EndDate>string</EndDate>
<PageIndex>string</PageIndex>
</QueryCrashRecordList>
</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>
<QueryCrashRecordListResponse xmlns="http://tempuri.org/">
<QueryCrashRecordListResult>string</QueryCrashRecordListResult>
</QueryCrashRecordListResponse>
</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>
<QueryCrashRecordList xmlns="http://tempuri.org/">
<Token>string</Token>
<ListRouteID>string</ListRouteID>
<BeginDate>string</BeginDate>
<EndDate>string</EndDate>
<PageIndex>string</PageIndex>
</QueryCrashRecordList>
</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>
<QueryCrashRecordListResponse xmlns="http://tempuri.org/">
<QueryCrashRecordListResult>string</QueryCrashRecordListResult>
</QueryCrashRecordListResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/QueryCrashRecordList?Token=string&ListRouteID=string&BeginDate=string&EndDate=string&PageIndex=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/QueryCrashRecordList HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&ListRouteID=string&BeginDate=string&EndDate=string&PageIndex=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>