MyService


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

QueryAttendance

查询出勤数据【注意:此接口不分页,一次返回所有数据】
参数
string Token:Token,
string ListUserCode:用户卡号【特别说明:此值为 QueryUsers 接口返回的 CardID 字段】(当有多个卡号时,使用英文逗号,隔开)【为了减少数据量,不能为空】
string BeginDate:开始日期(格式: yyyy-MM-dd,不能为空),加密
string EndDate:结束日期(格式: yyyy-MM-dd,不能为空。查询某一天的数据,开始日期与结束日期相同),加密

返回结构:
ReturnValue<List<QueryDetailedModel>> json 字符串数据【不想定义更多类,直接借用QueryDetailedModel】
public class ReturnValue<T>
{
    public long Result; //
    public int MaxCount;//总数
    public string Message;
    public T Values;
}

public class QueryDetailedModel
{
    public string UserNo; //人员卡号
    public string UserName; //人员名称
    public string CardNo; //合格次数
    public string CardName; //总天数
}

返回值
Result描述
Result=0执行成功,Message为Token数据
Result=-1程序错误,Message为错误信息
Result=-2公司不存在

测试

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

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

<?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>
    <QueryAttendance xmlns="http://tempuri.org/">
      <Token>string</Token>
      <ListUserCode>string</ListUserCode>
      <BeginDate>string</BeginDate>
      <EndDate>string</EndDate>
    </QueryAttendance>
  </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>
    <QueryAttendanceResponse xmlns="http://tempuri.org/">
      <QueryAttendanceResult>string</QueryAttendanceResult>
    </QueryAttendanceResponse>
  </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>
    <QueryAttendance xmlns="http://tempuri.org/">
      <Token>string</Token>
      <ListUserCode>string</ListUserCode>
      <BeginDate>string</BeginDate>
      <EndDate>string</EndDate>
    </QueryAttendance>
  </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>
    <QueryAttendanceResponse xmlns="http://tempuri.org/">
      <QueryAttendanceResult>string</QueryAttendanceResult>
    </QueryAttendanceResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /MyService.asmx/QueryAttendance?Token=string&ListUserCode=string&BeginDate=string&EndDate=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/QueryAttendance HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Token=string&ListUserCode=string&BeginDate=string&EndDate=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>