MyService


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

GetUserPicture

新版APP查询当前设备能够允许登录的人员信息
参数
string Token:目前使用两种方式查询:第一种、在登录前,查询当前设备的允许的登录人员,这个时候,Token 值,为空;;;第二种、登录成功后,查询,此时 Token 不为空;
string DeviceTypeNo:机器型号(APP中定义的全局变量),加密
string DeviceNo:设备号(手机号码或者新APP的激活码中的机号),加密
string OperatorID:占位,目前没有切实意义,传入空值,加密
string OperatorName:占位,目前没有切实意义,传入空值,加密
string CardID:占位,目前没有切实意义,传入空值,加密

返回结构:
public class UserModel
{
    public int UserID; // 用户ID,数据库字段ID,唯一值
    public string CardID; // 用户卡号
    public string UserName; // 登录用户名称【如果使用人脸登录,则使用这个属性做为参数】
    public string PicturePath; // 人脸地址,如果为空的时候,表示没有此人的人脸照片信息

}

返回值
Result描述
Result=0执行成功
Result=-1程序错误,Message为错误信息
Result=-2此手机号码未注册
Result=-3Token失效

测试

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

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

<?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>
    <GetUserPicture xmlns="http://tempuri.org/">
      <Token>string</Token>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceNo>string</DeviceNo>
      <OperatorID>string</OperatorID>
      <OperatorName>string</OperatorName>
      <CardID>string</CardID>
    </GetUserPicture>
  </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>
    <GetUserPictureResponse xmlns="http://tempuri.org/">
      <GetUserPictureResult>string</GetUserPictureResult>
    </GetUserPictureResponse>
  </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>
    <GetUserPicture xmlns="http://tempuri.org/">
      <Token>string</Token>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceNo>string</DeviceNo>
      <OperatorID>string</OperatorID>
      <OperatorName>string</OperatorName>
      <CardID>string</CardID>
    </GetUserPicture>
  </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>
    <GetUserPictureResponse xmlns="http://tempuri.org/">
      <GetUserPictureResult>string</GetUserPictureResult>
    </GetUserPictureResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /MyService.asmx/GetUserPicture?Token=string&DeviceTypeNo=string&DeviceNo=string&OperatorID=string&OperatorName=string&CardID=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/GetUserPicture HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Token=string&DeviceTypeNo=string&DeviceNo=string&OperatorID=string&OperatorName=string&CardID=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>