I’m at the very beginning of a proof of concept for integrating MileStone into our other systems. right now I’m simply trying to get token via Postman using the instruction here: https://doc.developer.milestonesys.com/html/reference/protocols/imageserver_getdevices.html
I have found a few other questions that seem to be the same as mine but none have solved my issue. My initial thought is that I need to give my admin account API access but I have not found anything that would suggest that needs to be done or any place to add it.
Other questions that didn’t help me:
Call details:
POST https://{server}/ManagementServer/ServerCommandService.svc (and https://{server}/ServerAPI/ServerCommandService.asmx I tried both)
Headers:
Content-Type: application/xml; charset=utf-8’
SOAPAction: http://videoos.net/2/XProtectCSServerCommand/Login’
Authorization: Basic *****
Body:
<?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/”>
<Login xmlns="[http://videoos.net/2/XProtectCSServerCommand](http://videoos.net/2/XProtectCSServerCommand)">
<instanceId>12345</instanceId>
</Login>
</soap:Body>
</soap:Envelope>
Response:
Body:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
<style type="text/css">
<!--
body {
margin: 0;
font-size: .7em;
font-family: Verdana, Arial, Helvetica, sans-serif;
background: [#EEEEEE](javascript:void\(0\); "#EEEEEE");
}
fieldset {
padding: 0 15px 10px 15px;
}
h1 {
font-size: 2.4em;
margin: 0;
color: [#FFF](javascript:void\(0\); "#FFF");
}
h2 {
font-size: 1.7em;
margin: 0;
color: [#CC0000](javascript:void\(0\); "#CC0000");
}
h3 {
font-size: 1.2em;
margin: 10px 0 0 0;
color: #000000;
}
[#header](javascript:void\(0\); "#header") {
width: 96%;
margin: 0 0 0 0;
padding: 6px 2% 6px 2%;
font-family: "trebuchet MS", Verdana, sans-serif;
color: [#FFF](javascript:void\(0\); "#FFF");
background-color: #555555;
}
[#content](javascript:void\(0\); "#content") {
margin: 0 0 0 2%;
position: relative;
}
.content-container {
background: [#FFF](javascript:void\(0\); "#FFF");
width: 96%;
margin-top: 8px;
padding: 10px;
position: relative;
}
-->
</style>
<div id="header">
<h1>Server Error</h1>
</div>
<div id="content">
<div class="content-container">
<fieldset>
<h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
<h3>You do not have permission to view this directory or page using the credentials that you supplied.
</h3>
</fieldset>
</div>
</div>