I have included the following packages in my service for processing SOAP-API.
"autopulous-xdom": "~0.0.12"
"autopulous-xdom2jso": "^0.0.12"
To use them, I added these lines at the beginning of my service.ts file:
import 'autopulous-xdom/xdom.js';
import 'autopulous-xdom2jso/xdom2jso.js';
import convert = xdom2jso.convert;
import {Injectable} from '@angular/core';
@Injectable()
export class SoapService {
constructor() {}
}
Compiling and building the code does not show any errors. However, when running the application in a browser, I encounter the following error:
https://i.sstatic.net/HS1rE.png
Has anyone had experience working with xdom2jso and xdom? Any help would be greatly appreciated.