Hey everybody,
I try a SOAP-Post Request, but everytime I get this:
The script is working on Postman and SoapUI, but not on Zoho Creator.
This is my sourcecode:
requestBody = "";
requestBody = requestBody + "<soapenv:Envelope ";
requestBody = requestBody + "xmlns:rep=\"
https://
XXXXXX/soap.php/soap/report\">";
requestBody = requestBody + "<soapenv:Header/>";
requestBody = requestBody + "<soapenv:Body>";
requestBody = requestBody + "<rep:getAll>";
requestBody = requestBody + "<mandator_id>4</mandator_id>";
requestBody = requestBody + "</rep:getAll>";
requestBody = requestBody + "</soapenv:Body>";
requestBody = requestBody + "</soapenv:Envelope>";
password = "XXXXXXXX";
username = "XXXXXXXX";
baseEncoded = zoho.encryption.base64Encode(username + ":" + password);
requestHeader = Map();
requestHeader.put("Authorization","Basic " + baseEncoded);
requestHeader.put("Content-Type","text/xml");
apiResponse = postUrl("
https://
XXXXXX/soap.php/soap/report",requestBody,requestHeader,false);
return apiResponse;
What's wrong?