How are you getting the the daily report? I'm new to this too but would like to know more.
Something like:
<?xml version="1.0" encoding="utf-16"?>
<countingStatisticsDescription xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
XML Schema">
<reportType>daily</reportType>
<timeSpanList>
<timeSpan>
<startTime>2017-05-03T00:00:00</startTime>
<endTime>2017-05-03T23:59:59</endTime>
</timeSpan>
</timeSpanList>
</countingStatisticsDescription>
Well, I'm doing it with a Java code by sending a similar XML request as your XML on a HTTP request. I'm using MediaType Jar Library to encode the XML with x-www-form-urlencoded and UTF-8 charset. Is something like this:
MediaType XML = MediaType.parse("application/x-www-form-urlencoded; charset=utf-8");
String myXML = "<CountingStatisticsDescription>"
+ "<statisticType>enternum</statisticType>"
+ "<reportType>daily</reportType>"
+ "<timeSpanList>"
+ "<timeSpan>"
+ "<startTime>2017-05-03T00:00:00</startTime>"
+ "<endTime>2017-05-03T23:59:59</endTime>"
+ "</timeSpan>"
+ "</timeSpanList>"
+ "</CountingStatisticsDescription>";
RequestBody requestBody = RequestBody.create(XML, myXML);
Request request = new Request.Builder()
.url("http://<CamIP:CamPort>/ISAPI/System/Video/inputs/channels/<ID>/counting/search")
.get()
.addHeader("Authorization", "Basic Base64Encoding(user, password)")
.post(requestBody)
.build();
Response response = null;
try {
response = client.newCall(request).execute();
} catch (IOException e) {
e.printStackTrace();
}