Package Exports
- ngx-soap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-soap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ngx-soap
Simple SOAP client for Angular 4 based on amazing node-soap library which apparently should only work in a node ambient and not in browsers.
WSDL definitions generator is based on json2ts, which is copied in tools/main.ts and updated a little given initial test cases I worked with.
Still at a very initial stage.
Installation
npm install ngx-soap
Usage
Import NgxSoapModule in yout app.module:
import { NgxSoapModule } from 'ngx-soap';
@NgModule({
imports: [
NgxSoapModule,
...
],
...
})
export class AppModule {}
Import SOAPService and inject it in your component:
import { SOAPService, BasicAuthSecurity, Client } from 'ngx-soap';
@Component({
template: `
<button (click)="callService()"></button>
<pre>{{jsonResponse | json}}</pre>
`
})
export class MyComponent {
jsonResponse: any;
constructor(
private soap: SOAPService
) { }
callService() {
}
}