How to call SOAP Api in ionic 3

Can you tell me anyone. How to call SOAP Api in ionic 3.

Hi i have followed SOAP - WSDL request angular2/4 framework

I have followed this but still get an error stauts 0 response null

Do let me know if you have found any solution to this. Below is my code to call a SOAP service

soapCall() {
    let xmlhttp = new XMLHttpRequest();
    xmlhttp.open('GET', 'https://xxxxxxxxx/xxxxxxx/wsdl/xxxxx.wsdl', true, 'username@example.com', 'SomePassword');
    let sr =
        `<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:max="http://www.ibm.com/maximo">
        <soap:Header/>
        <soap:Body>
        <arguments>Some arguments</arguments>
        </soap:Body>
     </soap:Envelope>`;

    xmlhttp.onreadystatechange =  () => {
        if (xmlhttp.readyState == 4) {
            if (xmlhttp.status == 200) {
                let xml = xmlhttp.responseXML;
                alert(xmlhttp.responseText);
            }else{
              alert('XML response ' + xmlhttp.responseXML);
              alert(xmlhttp.status);
            }
        }
    }
    // Send the POST request
    xmlhttp.setRequestHeader('Content-Type', 'application/soap+xml');
    xmlhttp.responseType = "document";
    xmlhttp.send(sr);
  }

The response that i am getting is from the else part

else{
alert('XML response ’ + xmlhttp.responseXML);
alert(xmlhttp.status);
}