MyService


单击此处,获取完整的操作列表。

GetDeviceReadCardModel

保存设备读卡模式进数据库
参数
string Token:Token 不为空;
string MeterID:设备完整机号(GetAPPDeviceList 接口 返回的 MeterID 属性),加密
string DeviceReadCardModel:用户选择的读卡模式(可以多选 1,2,3,4,5 中间以英文逗号分割),不为空 加密

返回结构:
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=-2Token非法
Result=-3Token失效
Result=-10当前帐号已经在其他设备登录

测试

若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。
参数
Token:

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/GetDeviceReadCardModel"

<?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>
    <GetDeviceReadCardModel xmlns="http://tempuri.org/">
      <Token>string</Token>
    </GetDeviceReadCardModel>
  </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>
    <GetDeviceReadCardModelResponse xmlns="http://tempuri.org/">
      <GetDeviceReadCardModelResult>string</GetDeviceReadCardModelResult>
    </GetDeviceReadCardModelResponse>
  </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>
    <GetDeviceReadCardModel xmlns="http://tempuri.org/">
      <Token>string</Token>
    </GetDeviceReadCardModel>
  </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>
    <GetDeviceReadCardModelResponse xmlns="http://tempuri.org/">
      <GetDeviceReadCardModelResult>string</GetDeviceReadCardModelResult>
    </GetDeviceReadCardModelResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。

GET /MyService.asmx/GetDeviceReadCardModel?Token=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/GetDeviceReadCardModel HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Token=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>