title: SOAP api POST call not working in Ionic(5)/angular
body: <p>I have a Ionic 5 project with angular, and im trying to call a SOAP api endpoint to POST some data, but i'm getting this error.</p>
  <blockquote>
  <p>headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, headers: Map(0)}</p>
  <p>message: &quot;Http failure response for <a href="http://nsi.isaix.com/C5IP/Authenticate.svc/AuthenticateUserClaims" rel="nofollow noreferrer">http://nsi.isaix.com/C5IP/Authenticate.svc/AuthenticateUserClaims</a>: 0 Unknown Error&quot;</p>
  <p>name: &quot;HttpErrorResponse&quot;</p>
  <p>ok: false</p>
  <p>status: 0</p>
  <p>statusText: &quot;Unknown Error&quot;</p>
  <p>url: &quot;http://nsi.isaix.com/C5IP/Authenticate.svc/AuthenticateUserClaims&quot;**</p>
  </blockquote>
  <p>Below is the code i'm using to call the api.</p>
  <pre><code>import { HttpClient } from '@angular/common/http';
  import { Injectable } from '@angular/core';
  import { map, catchError } from 'rxjs/operators';
  import { environment } from 'src/environments/environment.prod';
  
  // import { HTTP } from '@ionic-native/http/ngx';
  import { NgxSoapService, Client, ISoapMethodResponse } from 'ngx-soap';
  
  @Injectable({
    providedIn: 'root'
  })
  export class AuthService {
  
    client: Client;
  
    private url = environment.url + 'apiendpoint';
  
    constructor(
      private http: HttpClient
    ) {}
     
  
    login(data){
      return this.http.post(this.url, data).toPromise();
    }
  </code></pre>
  <p>Also i would like to add that i have used the '@ionic-native/http/ngx' plugin and the call was successfull, but as this is a native plugin and works only on device, and i want to make this work in browser.</p>