lula / ngx-soap

Simple SOAP client for Angular
MIT License
66 stars 60 forks source link

client undefined #90

Closed AjithAyyappan closed 4 years ago

AjithAyyappan commented 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).

lula commented 4 years ago

Hello @AjithAyyappan

i guess asset path is wrong:

../../assets/si_soap_rfcService.wsdl

Try with

assets/...