MyService
单击此处,获取完整的操作列表。
QueryOriginDetailed
查询原始数据明细
参数:
string Token:Token,
string UnsionID:原始数据中的唯一值【有两个接口返回 QueryOriginData 以及 QueryPatrolSataDetailed】
返回结构:
ReturnValue<List<PatrolRecordPictures>> json 字符串数据
public class ReturnValue<T>
{
public long Result; //
public int MaxCount;//总数
public string Message;
public T Values;
}
public class QueryDetailedModel
{
public string RouteName; //线路名称【或者工单名称】
public string CardNo; //地址卡卡号
public string CardName; //地址卡名称
public string PatrolTime; //巡检时间
public string UserNo; //巡检人员卡号
public string UserName; //巡检人员名称
public string Comments; //备注信息
public List<string> ListExceptionItem; //事件或者项目的集合
public List<string> ListPictures; //图片集合
public List<string> ListVideo; //视频集合
public string StartTime; //【工单】计划开始时间
public string EndTime; //【工单】计划结束时间时间
public string PatrolMan; //【工单】计划班组/人员
public int PatrolResult; //【工单】结果(0、合格;1、误点;2、漏检;3、待巡;5、代检;8、节假日;(计划中的休息日、工作日;))【2、漏检,显示红色 X 号;3、待巡,显示灰色 - 号;剩余的值,显示绿色 √ 号;】
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 执行成功,Message为Token数据 |
| Result=-1 | 程序错误,Message为错误信息 |
| Result=-2 | 公司不存在 |
| Result=-3 | Token失效 |
测试
若要使用 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/QueryOriginDetailed"
<?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>
<QueryOriginDetailed xmlns="http://tempuri.org/">
<Token>string</Token>
<UnsionID>string</UnsionID>
</QueryOriginDetailed>
</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>
<QueryOriginDetailedResponse xmlns="http://tempuri.org/">
<QueryOriginDetailedResult>string</QueryOriginDetailedResult>
</QueryOriginDetailedResponse>
</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>
<QueryOriginDetailed xmlns="http://tempuri.org/">
<Token>string</Token>
<UnsionID>string</UnsionID>
</QueryOriginDetailed>
</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>
<QueryOriginDetailedResponse xmlns="http://tempuri.org/">
<QueryOriginDetailedResult>string</QueryOriginDetailedResult>
</QueryOriginDetailedResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/QueryOriginDetailed?Token=string&UnsionID=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/QueryOriginDetailed HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&UnsionID=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>