mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
update soap definition
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user