MyService


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

LawLogin

执法记录仪(专用) -- 用户登录
参数
string CompanyName:公司名称或者公司code,加密
string UserName:用户名称,加密
string Password:密码【当密码为空的时候,传入的用户名称为用户卡号(刷卡登录)】,加密
string DeviceTypeNo:设备型号(传入一个固定值 00010901),加密
string DeviceNo:设备编号,加密
string DeviceName:设备名称,加密
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 DeviceName; // 后台服务器中设备名称
    public int UserType; // 用户分类【0、管理员;1、普通用户;】
    public Route RouteInfo; // 返回线路信息(包含地址卡、检测项目、逻辑选项)
    public string Message; // 错误信息
}

public class Route
{
    public string RouteID;
    public string ParentID;
    public string RouteName;
    public string CardNoNum; // 线路下对应的地址卡(巡更点)的数量
    public List SpotInfo; // 地址卡信息(项目型:检测项目、逻辑选项)(事件型:检测事件)
    public string Comments;
}

public class SpotInfoEx
{
    public string SpotID;//地点卡ID【数据库自增字段】
    public string SpotName;//地点名称
    public string CardNo;//地点卡号
    public int Orders; //排序号
    public string Comments;//备注
    public double Longitude;//经度
    public double Latitude; //纬度
    public bool NeedCheck; //是否指纹检测
    public List CheckItemInfo CheckItems; //地址卡的检测项目(项目型:检测项目、逻辑选项)
    public List ExceptionInfo Exceptions; //地址卡的检测事件(事件型)
    public string Address; //详细地址,暂时未用
}

public class ExceptionInfo
{
    public int ExceptionID; //事件 ID
    public string ExceptionName; // 事件名称
}

返回值
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:
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/LawLogin"

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

HTTP GET

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

GET /MyService.asmx/LawLogin?CompanyName=string&UserName=string&Password=string&DeviceTypeNo=string&DeviceNo=string&DeviceName=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/LawLogin 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&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>