diff --git a/test/client-test.js b/test/client-test.js index e9373358..6bea5e0a 100644 --- a/test/client-test.js +++ b/test/client-test.js @@ -1470,6 +1470,18 @@ var fs = require('fs'), }); }); + it('should allow customization of envelope Soap Url', function (done) { + soap.createClient(__dirname + '/wsdl/default_namespace.wsdl', Object.assign({ envelopeSoapUrl: 'http://example.com/v1' }, meta.options), function (err, client) { + assert.ok(client); + assert.ifError(err); + + client.MyOperation({}, function (err, result) { + assert.notEqual(client.lastRequest.indexOf('xmlns:soap=\"http://example.com/v1\"'), -1); + done(); + }); + }); + }); + it('should add soap headers', function (done) { soap.createClientAsync(__dirname + '/wsdl/default_namespace.wsdl', meta.options) .then(function (client) {