Closed AjithAyyappan closed 4 years ago
constructor(private soap: NgxSoapService, private http: HttpClient) { this.soap.createClient('../../assets/si_soap_rfcService.wsdl') .then(client => { client.setSecurity( new security.BasicAuthSecurity(this.user, this.password, '') ); console.log('client', this.client); this.client = client; }) .catch(err => console.log('Error', err)); }
It not even logs the error in console. It shows client undefined (from console.log function).
client undefined
Hello @AjithAyyappan
i guess asset path is wrong:
../../assets/si_soap_rfcService.wsdl
Try with
assets/...
constructor(private soap: NgxSoapService, private http: HttpClient) { this.soap.createClient('../../assets/si_soap_rfcService.wsdl') .then(client => { client.setSecurity( new security.BasicAuthSecurity(this.user, this.password, '') ); console.log('client', this.client); this.client = client; }) .catch(err => console.log('Error', err)); }
It not even logs the error in console. It shows
client undefined
(from console.log function).