Hi!
We are using the SOAP API for searching for recodings (RecorderCommandService.asmx). When we do a search with a device id that is not “registred” in Milestone VMS we get a Status Code 500 and this Fault:
<?xml version="1.0" encoding="UTF-8"?>
-<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-<soap:Body>
-<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Error processing message</faultstring>
-<detail>
<ErrorNumber>10000</ErrorNumber>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Could we assume that ErrorNumber 10000 means “Device/Camera not found”? We have not been able to trigger other errors, when we search with an existing device/cameraId it works fine.
Are there any documentation of the errors numbers that could be returned?
Kind regards Hans
Ok, thanks, the table states that 10000 is a general communication error and it seems like I get this when sending in an incorrect GUID, if I send a correct GUID (but one that does not match a registered device) I get a 40000 (An error occurred while executing this method). Maybe we need to check if the device is registered if we get an error doing the search in order to return a correct error message.
I suppose there exists an endpoint to look up a “registered” device in Milestone VMS?
/Hans
Error number Description
10000 General communication error.
10001 SOAP version is not supported.
10002 SOAP message is invalid.
10003 SOAP version could not be recognized.
20001 There is a problem with the specified security token.
40000 An error occurred while executing this method.
40295 A PTZ error occurred. For possible sub error numbers, see example for PTZMoveAbsolute
The expectation is that you know the devices from ServerCommandService.GetConfiguration()
There might be other options but I think that is the general expectation when using the Milestone SOAP services, that you get token and configuration there before proceeding to the other SOAP services. I hope it makes sense for you.