MyService


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

LoginByWeiXinID

用户获取WeiXinID登录(巡探登录:登录方式为获取WeiXinID)
参数
string MobileNo:WeiXinID,加密

返回结构:
public class LoginResult
{
    public int Result; // 返回结果,错误代码
    public int UserID; // 用户ID,数据库字段ID,唯一值
    public string CardNo; // 当前登录用户卡号
    public string UserName; // 当前登录用户名称
    public string LoginPassword; // 当前用户所属的公司编码【借用】
    public string DeviceName; // 所属公司名称【借用】
    public int UserType; // 用户分类【0、企业管理员;1、普通管理员;2、操作员;】
    public int DealerID; // 当前用户所属的经销商ID
    public int ErWeiMaStr; // 当前公司对应的二维码字符串
    public int QyErweiPath; // 企业二维码网络图片地址
    public string Message; // 错误信息【成功的时候为Token】
}

返回值
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=-11查询公司信息出现错误
Result=-30更换了登录手机【当前帐号已经在其他机器上登录】
Result=-32加入新的“设备名称为空”判断
Result=-33设备名称已经存在,请更换设备名称
Result=-34新增设备失败
Result=-100该登陆账号对应的经销商不存在
Result=-200该登陆账号对应的经销商二维码没有生成
Result=-35当前设备已经存在于其他公司,请到其他公司删除后,在重新登录
Result=-40没有接受到数据
Result=-41没有接受到具体公司信息(公司名称为空)
Result=-42用户名称为空
Result=-43用户密码为空

测试

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

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

<?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>
    <LoginByWeiXinID xmlns="http://tempuri.org/">
      <WeiXinID>string</WeiXinID>
    </LoginByWeiXinID>
  </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>
    <LoginByWeiXinIDResponse xmlns="http://tempuri.org/">
      <LoginByWeiXinIDResult>string</LoginByWeiXinIDResult>
    </LoginByWeiXinIDResponse>
  </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>
    <LoginByWeiXinID xmlns="http://tempuri.org/">
      <WeiXinID>string</WeiXinID>
    </LoginByWeiXinID>
  </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>
    <LoginByWeiXinIDResponse xmlns="http://tempuri.org/">
      <LoginByWeiXinIDResult>string</LoginByWeiXinIDResult>
    </LoginByWeiXinIDResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

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

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