You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem to call SOAP with these following envelope header and body, on the tutor, it doesn't include SoapEnvelope Header.
I will create this api call in the class .Service.TS
For example, these statements are called in the constructor
var requrl = environment.baseWSAddress + 'WS_serviceku.asmx?wsdl';
this.soap.createClient(requrl).then(client => {
The error occured on the picture, on environment.baseWSAddress I use debug address, It did't enter the breakpoint for debugging.
What's wrong and missing on my statement?
The text was updated successfully, but these errors were encountered:
I have a problem to call SOAP with these following envelope header and body, on the tutor, it doesn't include SoapEnvelope Header.
I will create this api call in the class .Service.TS
For example, these statements are called in the constructor
var requrl = environment.baseWSAddress + 'WS_serviceku.asmx?wsdl';
this.soap.createClient(requrl).then(client => {
the XML SOAP envelope are like these:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://aplikasinganu.com/">
soapenv:Header
api:UserCredential
api:Usernameuseranu</api:Username>
api:PasswordPasswordnganu</api:Password>
api:App_Nameappnganu</api:App_Name>
</api:UserCredential>
</soapenv:Header>
soapenv:Body
api:Login
api:loginVM
api:Usernamesujono</api:Username>
api:PasswordPassword123</api:Password>
</api:loginVM>
</api:Login>
</soapenv:Body>
</soapenv:Envelope>
I create mthod call in service class like this. For Example, this is "Login" method on WS_serviceku.asmx
DoLogin3() : Observable
{
this.client.addHttpHeader('Content-Type', 'application/soap+xml; charset=utf-8');
console.log("Sebelum panggil method login");
console.log("Dapatkan httpheader: " + this.client.getHttpHeaders());
console.log("Dapatkan getSoapHeaders: " + this.client.getSoapHeaders());
return this.client.call('Login',body, this.httpOptions );
}
Then on component.ts I call this:
this.service.DoLogin3().subscribe(res => {
// console.log("Has passed api call");
// console.log("Is Success: " + res.IsSuccess);
});
The text was updated successfully, but these errors were encountered: