I’m trying to connect to the ImageServer (using port 7563 and milestone essential+) in Java but I’m having “connection reset” errors when I’m trying to get the response.
After opening the sockets, I sent the following :
<?xml version="1.0" encoding="UTF-8"?>
<methodcall>
<requestid>1</requestid>
<methodname>connect</methodname>
<username>(username in plaintext)</username>
<password>(password in plaintext)</password>
<cameraid>(guid from the systeminfo.xml)</cameraid><alwaysstdjpeg>yes</alwaysstdjpeg>
</methodcall>
After i convert the xml message into a byte array utf-8, i added in the four bytes: 13 10 13 10 into the back. After sending the byte array, I seem to be getting some sort of response with a length of 352518144(?) but when i try to read it, Im getting errors
Is there any steps i missed? Are we supposed to get a response after the connect request and if so, will it be in string or a byte array etc?