MyService


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

Login

用户登录
参数
string CompanyName:公司名称,加密
string UserName:用户名称,加密
string Password:密码,加密
string DeviceTypeNo:设备型号,加密
string DeviceNo:设备编号,加密
string DeviceName:设备名称,加密
string HardID:未知,加密
string LoginTypeID:是否强制登录:0、否;1、是;加密

返回结构:
public class LoginResult
{
    public int Result; // 返回结果,错误代码
    public int UserID; // 用户ID,数据库字段ID,唯一值
    public string CardNo; // 当前登录用户卡号
    public string UserName; // 当前登录用户名称
    public string DeviceName; // 后台服务器中设备名称
    public string ReadCardMode; // Z-9000 对应的读卡模式:1、普通二维码;2、蓝牙读卡;3、射频读卡;4、GPS;5、精确二维码;【返回的数据可以为空,可以同时选择多种模式,返回数据示例:多种模式 1,2,3,4, 一种模式 1, 】
    public int UserType; // 用户分类【0、管理员;1、普通用户;】
    public string Message; // 错误信息
}

返回值
Result描述
Result=0执行成功,Message为Token数据
Result=-1程序错误,Message为错误信息
Result=-2公司不存在
Result=-3公司未启用
Result=-4当前公司使用到期
Result=-5经销商使用到期
Result=-6不存在合法的加密狗或证书
Result=-7设备使用超额
Result=-8登录用户不存在
Result=-9密码输入错误
Result=-30更换了登录手机【当前帐号已经在其他机器上登录】
Result=-32加入新的“设备名称为空”判断
Result=-33设备名称已经存在,请更换设备名称
Result=-34新增设备失败
Result=-35当前设备已经存在于其他公司,请到其他公司删除后,在重新登录

测试

若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。
参数
CompanyName:
UserName:
Password:
DeviceTypeNo:
DeviceNo:
DeviceName:
HardID:
LoginTypeID:

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

<?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>
    <Login xmlns="http://tempuri.org/">
      <CompanyName>string</CompanyName>
      <UserName>string</UserName>
      <Password>string</Password>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceNo>string</DeviceNo>
      <DeviceName>string</DeviceName>
      <HardID>string</HardID>
      <LoginTypeID>string</LoginTypeID>
    </Login>
  </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>
    <LoginResponse xmlns="http://tempuri.org/">
      <LoginResult>string</LoginResult>
    </LoginResponse>
  </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>
    <Login xmlns="http://tempuri.org/">
      <CompanyName>string</CompanyName>
      <UserName>string</UserName>
      <Password>string</Password>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceNo>string</DeviceNo>
      <DeviceName>string</DeviceName>
      <HardID>string</HardID>
      <LoginTypeID>string</LoginTypeID>
    </Login>
  </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>
    <LoginResponse xmlns="http://tempuri.org/">
      <LoginResult>string</LoginResult>
    </LoginResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /MyService.asmx/Login?CompanyName=string&UserName=string&Password=string&DeviceTypeNo=string&DeviceNo=string&DeviceName=string&HardID=string&LoginTypeID=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/Login HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

CompanyName=string&UserName=string&Password=string&DeviceTypeNo=string&DeviceNo=string&DeviceName=string&HardID=string&LoginTypeID=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>