I’m trying to create a preset in C ++ using the “SetPreset” method of the ImageViewer class, but from what I’ve seen in the documentation, this method is deprecated: “Sets a PrePosition (Preset) through ImageServer and Monitor.”, What is the ImageServer?.
SetPreset is according to the documentation deprecated as you say.
The ImageServer is in e-code a service, in c-code a protocol on the recording server. You can find the ImageServer protocol described in the documentation.
(The Monitor was a windows application in XProtect e-code which in XProtect Enterprise 6.0 (released November 2006) was replaced by the Recording Server service.)
The way to create a PTZ preset is very different in c-code and e-code. Have a look at the PTZandPreset sample (create preset region), it will outline two very different methods. If your C++ is .NET please use the sample. If not .NET you will have to use protocol methods. C-code it would be Configuration API. In e-code I do not see any methods, if you have this specific need let me know and I can try to dig deeper.
One suggestion for more details. Run the PTZandPreset sample towards your e-code XProtect server. Trace the communication (with Wireshark or similar) while you use the “Add preset” button.
We already tried it last week, but with wireshark we see that it is HTTPS (secure and encrypted).
With SOAP we are also trying, but the problem is the connection, we do not know what methods to use, and the order of them.
Please, do you have a connection example via SOAP / WSDL? … We have tried many connection strings / URLs and in many of them we have problems of not found page (404) or user error (401).