Requirement: I am trying to generate the connection ID using the dataminer connect App API.
But receiving authentication error.
Post : https://chiv2dmas01b/API/v1/Json.asmx
Content-Type: application/soap+xml
Body:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<ConnectApp xmlns="http://www.skyline.be/api/v1">
<host>chiv2dmas01b</host>
<login>XXX</login>
<password>XXX</password>
<clientAppName>XXX</clientAppName>
</ConnectApp>
</soap12:Body>
</soap12:Envelope>
Response:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Unable to authenticate as ramesh.rajasekaran</soap:Text>
</soap:Reason>
<soap:Detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
Do I need to setup something on dataminer in order for the authentication to work
Hi Ramesh,
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?
As this question has now been inactive for a long time, I will close it. If you still want more information about this, could you post a new question?
From the error message it's not clear what goes wrong. It could be an incorrect password, an unknown user account, or something else. The logging of DataMiner will contain more details regarding why the authentication has failed. Would it be possible to repeat it, create a logcollector package, and include this package on a new support ticket. This way we can investigate this further.
PS: Like Felix also commented, if you prefer using SOAP then make use of the Soap.asmx endpoint, otherwise use JSON.
Hi Ramesh,
it looks like you provide a SOAP body to the JSON endpoint.
Can you try it with a JSON body or the SOAP endpoint instead?
Also the clientAppVersion is missing, but I’m not sure if this is mandatory.
https://docs.dataminer.services/develop/webservices/WS_v1/WS_Methods_v1/ConnectApp.html
Sample JSON Body:
{
“host”: “somehost”,
“login”: “someuser”,
“password”: “somepassword”,
“clientAppName”: “testAppName”,
“clientAppVersion”: “1.0”,
“clientComputerName”: “testComputerName”
}