Trust anchor for certification path not found in XML request with Nativescript in Android


#1

I am sending one request to SOAP(xml) service with Nativescript and I am having the next problem

JS: 'Error: Error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found..

Request code is:

var http = require("http");
  http.request({
    url: '<service-url>',
    method: 'POST',
    headers: { "Content-Type": "text/xml" },
    content : <body-request>,
  })
  .then(function (response) {
    console.log(response);
  }, function (e) {
      console.log("Error: " +e);
  });

I have followed these steps:xml soap request

Any clue of the problem??

Thank you