MyService
单击此处,获取完整的操作列表。
RegisterCompanyCode
注册公司信息(新版 APP)
参数:
string DealerID:经销商ID(加密前,为正整数,扫描二维码解码后获取),加密
string CompanyName:公司名称,加密
string DeviceTypeNo:机器型号(使用激活码,从激活码中,解码而来 00010801),加密
string DeviceID:机器号(使用激活码,从激活码中,解码而来 202503300001),加密
string UserName:用户名,加密
string PhoneNoEmail:发送验证码的手机号或者邮箱,加密
string Password:密码,加密
string ActivaCode:激活码
string PhoneEigenValue:手机特征值(AndroidID),加密
string ERCodeString:扫描二维码的内容,不加密,不加密,不加密
返回结构:
public class SimpleResult
{
public string Result; // 错误代码
public string Message; // 错误信息
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 注册成功 |
| Result=-1 | 程序错误,Message为错误信息 |
| Result=-10 | 公司名称已经注册(公司名称重复) |
| Result=-11 | 机器号 DeviceID 已经注册 |
| Result=-12 | 注册公司失败 |
| Result=-13 | 公司名称不能为空 |
| Result=-14 | 生成公司编码失败 |
| Result=-15 | 输入的经销商编码不存在 |
| Result=-16 | 创建公司数据库失败,请联系管理员,在后台手动创建 |
| Result=-17 | 注册使用的验证手机号码,已经被注册 |
| Result=-18 | 发送注册验证码的手机号,已经被注册 |
| Result=-19 | 发送注册验证码的Email,已经被注册 |
测试
若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。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/RegisterCompanyCode"
<?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>
<RegisterCompanyCode xmlns="http://tempuri.org/">
<DealerID>string</DealerID>
<CompanyName>string</CompanyName>
<DeviceTypeNo>string</DeviceTypeNo>
<DeviceID>string</DeviceID>
<UserName>string</UserName>
<PhoneNoEmail>string</PhoneNoEmail>
<Password>string</Password>
<ActivaCode>string</ActivaCode>
<PhoneEigenValue>string</PhoneEigenValue>
<ERCodeString>string</ERCodeString>
</RegisterCompanyCode>
</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>
<RegisterCompanyCodeResponse xmlns="http://tempuri.org/">
<RegisterCompanyCodeResult>string</RegisterCompanyCodeResult>
</RegisterCompanyCodeResponse>
</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>
<RegisterCompanyCode xmlns="http://tempuri.org/">
<DealerID>string</DealerID>
<CompanyName>string</CompanyName>
<DeviceTypeNo>string</DeviceTypeNo>
<DeviceID>string</DeviceID>
<UserName>string</UserName>
<PhoneNoEmail>string</PhoneNoEmail>
<Password>string</Password>
<ActivaCode>string</ActivaCode>
<PhoneEigenValue>string</PhoneEigenValue>
<ERCodeString>string</ERCodeString>
</RegisterCompanyCode>
</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>
<RegisterCompanyCodeResponse xmlns="http://tempuri.org/">
<RegisterCompanyCodeResult>string</RegisterCompanyCodeResult>
</RegisterCompanyCodeResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/RegisterCompanyCode?DealerID=string&CompanyName=string&DeviceTypeNo=string&DeviceID=string&UserName=string&PhoneNoEmail=string&Password=string&ActivaCode=string&PhoneEigenValue=string&ERCodeString=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/RegisterCompanyCode HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length DealerID=string&CompanyName=string&DeviceTypeNo=string&DeviceID=string&UserName=string&PhoneNoEmail=string&Password=string&ActivaCode=string&PhoneEigenValue=string&ERCodeString=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>