An issue with retrieving images for integration purposes with the IOT platform

Here is the the used:

Request

<soap:Envelope xmlns:soap=“http://www.w3.org/2003/05/soap-envelope” xmlns:xpr=“http://videoos.net/2/XProtectCSRecorderCommand”>

soap:Header/

soap:Body

xpr:JPEGGetAt

 <!--Optional:-->

 <xpr:token>TOKEN#c767d6fa-565d-4f78-8053-bbce8e0114d2#desktop-0oif1rr//ServerConnector#</xpr:token>

 <xpr:deviceId>B79E67CD-4F0B-4911-8413-4096673BAE31</xpr:deviceId>

 <xpr:time>2021-12-03T12:57:07.213Z</xpr:time>

</xpr:JPEGGetAt>

</soap:Body>

</soap:Envelope>

---------------------------------

Response

<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

 <JPEGGetAtResult>

  <Time>0001-01-01T00:00:00.0000000</Time>

  <Data/>

 </JPEGGetAtResult>

</soap12:Body>

</soap12:Envelope>

The simplest explanation is that nothing is recorded.

As the documentation states:

JPEGData RecorderCommandService.JPEGGetAt( string token, Guid deviceId, DateTime time )

Get image from a given device as JPEG, at a given time or the nearest one (either before or after). If no image is available the response is a JPEGData structure with time set to minimum dateTime, and data set to nothing.

https://doc.developer.milestonesys.com/html/index.html?base=recordersoaphelp/class_recorder_command_service.html&tree=tree_search.html?search=jpeggetat

Try to doublecheck using the Smart Client that you have recorded footage. One idea while developing and testing could be to make a rule to record always.