Can't authenticate in MIP with HTTP Basic Auth

Is there a way to use the recommended endpoint ManagementServer/ServerCommandService.svc with a simple HTTP client? We can’t use the C# Milestone SDK with our project. We use NodeJS on Ubuntu.

We tried the deprecated endpoint POST ServerAPI/ServerCommandService.asmx with the following HTTP body, as specified in the documentation, but the server returns a 401 error code. We set the correct login/password in the HTTP Basic auth headers.

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=“http://www.w3.org/2001/XMLSchema

xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>

soap:Body

<Login xmlns="[http://videoos.net/2/XProtectCSServerCommand](http://videoos.net/2/XProtectCSServerCommand "http://videoos.net/2/XProtectCSServerCommand")">

  <instanceId>3F2504E0-4F89-11D3-9A0C-0305E82C3301</instanceId>

  <currentToken></currentToken>

</Login>

</soap:Body>

</soap:Envelope>

Thank you.

You might already read this page, but let me introduce this URL, it describes that if you want to use Basic user then you need to use HTTPS, please see details here -

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_soap_protocols.html&tree=tree_3.html

Hi Rie, thx for you answer. We will look at this and get back to you.

I have got it to work. This (I can’t use protocol integration to get information (milestonesys.com)) could help you!