Open Jellevanlith35 opened 7 years ago
It looks like the constructor for the SoapService is not being passed any parameters - my suggestion would be to remove the SoapService from the providers metadata because the constructor needs to be explicitly invoked in you class (e.g. it doesn't already exist to be provided to your class)... if this works - I'm going to need to correct my readme file because it shows the SoapService in the providers.
Hello. I am trying to implement de the angular 2 soap in my ionic project. Unfortunality the compiler throws an error: Supplied parameters do not match any signature of call target.
In the tmp files the output is: get _SoapService_0_5():import4.SoapService { if ((this.SoapService_0_5 == (null as any))) { (this.SoapService_0_5 = new import4.SoapService()); } return this.__SoapService_0_5; }
this is my whole home.ts file:
import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import {SoapService} from "autopulous-angular2-soap/soap.service";
@Component({ selector: 'page-home', templateUrl: 'home.html', providers: [SoapService] }) export class Home { private servicePort:string = 'http://172.16.62.111:8091'; private servicePath:string = '/your-application-ws/ws/'; private targetNamespace:string = '';
constructor(public navCtrl: NavController) {
}
private username:string = ''; private password:string = '';
}
Do you know how this error is caused?
Thank you in advance!
Jelle