I'm am new to angular and using angular 5.
I'm making a http post request and I want to send xml data to backend as my backend only accept data in xml format.
I've followed some tutorials but couldn't get it to work. Please let me know what I'm doing wrong and how can I make it work.
This is how I'm making request.
signin(){
const headers = new HttpHeaders({responseType: 'text' , 'Content-Type': 'text/xml' }).set('Accept', 'text/xml');
let body = '<request>'
'<username>Username</username>'
'<password>Password</password>'
'</request>';
const hdr = {headers:headers , body:body};
console.log("Checking: " , hdr);
return this.http.post('https://66.128.132.126:8002/?event=account_login' , hdr);
}