update soap definition

This commit is contained in:
etuxxyl
2016-03-15 14:34:20 +08:00
parent 81ebfb3d08
commit 40f2dd30cf
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -1,6 +1,7 @@
/// <reference path="soap.d.ts" />
import * as soap from 'soap';
import * as events from 'events';
const url = 'http://example.com/wsdl?wsdl';
const wsdlOptions = { name: 'value' };
@@ -15,5 +16,8 @@ soap.createClient(url, wsdlOptions, function(err: any, client: soap.Client) {
client['create']({ name: 'value' }, function(err, result) {
// result is an object
}, {});
client.on('request', function(obj: any) {
//obj is an object
});
});