Closed yuvanesh10 closed 6 years ago
Errors are related to the fact that you're missing the property declarations in your AppComponent class. E.g
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements OnInit {
jsonResponse: any;
xmlResponse: string;
loading: boolean; // fixes error TS2339: Property 'loading' does not exist on type 'AppComponent'.
...
I don't understand what you're trying to achieve. ngx-soap should be used in the client only, when you don't have any backend. If you have a backend you can work with, I would say it's better to rely on it, and have the backend do you soap calls. You just need to wrap it in some REST Api for instance.
I solved those errors . but I would like to use ngx-soap in angular to make a wsdl call
I have solved most of them. Can you tell me what am I doing wrong here ?
@lula
I am trying to implement ngx-soap package in my Angular 4 application. I am using Node server and tried to create soap client and server file using this package strong-soap successfully implemented with the help I have got from here. Now I would to make the client in frontend.
` import {Component, OnInit} from '@angular/core'; import {SOAPService, Client} from 'ngx-soap'; import {Http} from '@angular/http';
In Node, I have serverfile where I am trying to access the query from arangodb and once I run my client file .,I am able to print out the result envelope in console.I would like to do the same but from Angular 4.
server.js `var soap = require('strong-soap').soap; var http = require('http');
`
Since I am new to working with backend services. I couldn't solve the basic errors. I am not getting the proper hang of it.Like how to approach it ?
ERRORS