0

Is there any way to use HTTP.post(url, body, headers) of ionic-native with a XML body?

post() there it says it needs an object (JSON) but my webservice needs an XML request.

Is there maybe something like an xml object?

Musa
  • 96,336
  • 17
  • 118
  • 137
felix9607
  • 329
  • 5
  • 14

1 Answers1

0

Did you try to set content-type to text/xml like in the following example?

let headers = new Headers();
headers.append('Content-Type', 'text/xml');
Tobias Etter
  • 744
  • 1
  • 6
  • 19