Hi Dojo,
I'm trying to query an API with SOAP protocol same as Json, but I'm having the below error.
I sit not possible to query using SOAP protocol?
Please advice.
Hi Soumith,
From your screenshot I can see that you are trying to use the SOAP interface, however the body of your request contains a JSON data structure
You can find the WSDL file for the SOAP interface in your DMA (DataMiner Docs):
http://DmaNameOrIpAddress/API/v1/soap.asmx?WSDL
For example, for the method ConnectApp, the body of your request should like:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ConnectApp xmlns="http://www.skyline.be/api/v1">
<host>localhost</host>
<login>myUser</login>
<password>myPassword</password>
<clientAppName>TestApp1.0</clientAppName>
<clientAppVersion>1.0</clientAppVersion>
<clientComputerName>1.0</clientComputerName>
</ConnectApp>
</soap:Body>
</soap:Envelope>
Additional screenshots of the tool used to perform the SOAP calls:
Hi Soumith,
Based on the error, it seems that the URL used to send the request is not correct. Please could you confirm that the URL is as follows:
– http://DmaNameOrIpAddress /API/v1/soap.asmx
The following URL is NOT correct:
– http://DmaNameOrIpAddress /API/v1/soap.asmx/ConnectApp
Hi Miguel,
Possible SOAP version mismatch: Envelope namespace was unexpected
I have this error when I try the right URL.
Hi Soumith,
I noticed in your last screenshot that the tag for the envelope is ‘soap_X3a_Envelope’. Please could you try again with the sample I provided in my original answer? I updated it with valid entries.
Hi Soumith,
I just had a look at the tool that I am using to test the SOAP API (Postman) and I can confirm that the content type is application/xml.
Hi @Miguel Obregon,
Thank you for your reply.
I tried to set the format and pass the parameters but I still have the same Issue.
Uploaded the latest result in the question.