MyService


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

LoginOperators

用户登录(巡探卫士登录)
参数
string DeviceTypeNo:机器型号(APP中定义的全局变量),加密
string MobileNo:登录帐号【所有的登录帐号为手机号】,加密
string Password:密码,加密
string LoginTypeID:是否强制登录:0、否;1、是;加密

返回结构:
public class LoginResult
{
    public int Result; // 返回结果,错误代码
    public int UserID; // 用户ID,数据库字段ID,唯一值
    public string CardNo; // 当前登录用户卡号
    public string UserName; // 当前登录用户名称
    public string CompanyName; // 所属公司名称
    public string LoginPassword; // 当前用户所属的公司编码【借用】
    public string DeviceTypeNo; // 设备型号【我们建议的定义的一个固定常量,为了方便调用,此次通过接口返回属性的方式返回】
    public string DeviceID; // 设备ID【将登录的手机号,当作设备ID,为了方便调用,此次通过接口返回属性的方式返回】
    public string DeviceName; // 设备名称
    public int UserType; // 用户分类【0、企业管理员;1、普通管理员;2、操作员;】
    public int DealerID; // 当前用户所属的经销商ID
    public string ReadCardMode; // Z-9000 对应的读卡模式:1、普通二维码;2、蓝牙读卡;3、射频读卡;4、GPS;5、精确二维码;【返回的数据可以为空,可以同时选择多种模式,返回数据示例:多种模式 1,2,3,4, 一种模式 1, 】
    public string ReadCardTimeSpacing; // Z-M900 系列 对应的读卡时间间隔(单位:分钟)
    public string ErWeiMaStr; // 当前公司对应的二维码字符串
    public string QyErweiPath; // 企业二维码网络图片地址
    public string Message; // 错误信息【成功的时候为Token】
}

返回值
Result描述
Result=0执行成功,Message为Token数据
(此时对 RouteCount 进行判断,当 RouteCount = 1 的时候,弹出一个对话框“您的存储记录配额即将用完,如需扩容请联系供应商 !”,然后继续登录)
Result=-1程序错误,Message为错误信息
Result=-2此手机号码未注册
Result=-3公司未启用
Result=-4当前公司使用到期
Result=-5经销商使用到期
Result=-6不存在合法的加密狗或证书
Result=-7设备使用超额
Result=-8登录用户不存在
Result=-9密码输入错误
Result=-11查询公司信息出现错误
Result=-12登录用户“未启用”,不能登录。
Result=-30更换了登录手机【当前帐号已经在其他机器上登录】
Result=-32加入新的“设备名称为空”判断
Result=-33设备名称已经存在,请更换设备名称
Result=-34新增设备失败
Result=-35当前设备已经存在于其他公司,请到其他公司删除后,在重新登录
Result=-36您的存储记录已超过配额。请联系供应商 !
Result=-100该登陆账号对应的经销商不存在
Result=-200该登陆账号对应的经销商二维码没有生成

测试

若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。
参数
DeviceTypeNo:
MobileNo:
Password:
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/LoginOperators"

<?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>
    <LoginOperators xmlns="http://tempuri.org/">
      <DeviceTypeNo>string</DeviceTypeNo>
      <MobileNo>string</MobileNo>
      <Password>string</Password>
      <LoginTypeID>string</LoginTypeID>
    </LoginOperators>
  </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>
    <LoginOperatorsResponse xmlns="http://tempuri.org/">
      <LoginOperatorsResult>string</LoginOperatorsResult>
    </LoginOperatorsResponse>
  </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>
    <LoginOperators xmlns="http://tempuri.org/">
      <DeviceTypeNo>string</DeviceTypeNo>
      <MobileNo>string</MobileNo>
      <Password>string</Password>
      <LoginTypeID>string</LoginTypeID>
    </LoginOperators>
  </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>
    <LoginOperatorsResponse xmlns="http://tempuri.org/">
      <LoginOperatorsResult>string</LoginOperatorsResult>
    </LoginOperatorsResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /MyService.asmx/LoginOperators?DeviceTypeNo=string&MobileNo=string&Password=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/LoginOperators HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

DeviceTypeNo=string&MobileNo=string&Password=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>