MyService
单击此处,获取完整的操作列表。
GetAPPDeviceList
获取APP设备列表
参数:
string Token:Token 不为空;
string DeviceTypeNo:机器型号(占位,直接为空),加密
string DeviceNo:设备号(占位,直接为空),加密
string Keyword:查询关键字(占位,直接为空),加密
返回结构:
public class DeviceMode
{
public string MeterType; // 机器型号 00010801、00010802
public string DeviceRealID; // 机器完整的机号(机器型号 + 机器ID) 举例 0001080113800138000、00010803202503250456
public string MeterID; // 登录用户名称【如果使用人脸登录,则使用这个属性做为参数】
public string DeviceAllowReadCardModel; // 当前设备【能够允许】的读卡模式【1、普通二维码;2、蓝牙读卡;3、射频读卡;4、GPS;5、精确二维码; 返回的值为1,2,3】
public string DeviceReadCardModel; // 当前设备【已经设置成功】的读卡模式【返回的值为1,2,3 ,可以为多种打卡模式】
public int RouteID; // 当前设备绑定的线路
public int RouteName; // 当前设备绑定的线路
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 执行成功 |
| Result=-1 | 程序错误,Message为错误信息 |
| Result=-2 | Token非法 |
| Result=-3 | Token失效 |
| Result=-10 | 当前帐号已经在其他设备登录 |
测试
若要使用 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/GetAPPDeviceList"
<?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>
<GetAPPDeviceList xmlns="http://tempuri.org/">
<Token>string</Token>
<DeviceTypeNo>string</DeviceTypeNo>
<DeviceNo>string</DeviceNo>
<Keyword>string</Keyword>
</GetAPPDeviceList>
</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>
<GetAPPDeviceListResponse xmlns="http://tempuri.org/">
<GetAPPDeviceListResult>string</GetAPPDeviceListResult>
</GetAPPDeviceListResponse>
</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>
<GetAPPDeviceList xmlns="http://tempuri.org/">
<Token>string</Token>
<DeviceTypeNo>string</DeviceTypeNo>
<DeviceNo>string</DeviceNo>
<Keyword>string</Keyword>
</GetAPPDeviceList>
</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>
<GetAPPDeviceListResponse xmlns="http://tempuri.org/">
<GetAPPDeviceListResult>string</GetAPPDeviceListResult>
</GetAPPDeviceListResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/GetAPPDeviceList?Token=string&DeviceTypeNo=string&DeviceNo=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/GetAPPDeviceList HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&DeviceTypeNo=string&DeviceNo=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>