Skip to content

Commit

Permalink
tests for envelopeSoapUrl parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mkwiecinski authored May 16, 2024
1 parent 49e7377 commit 78bf6a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/client-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 78bf6a9

Please sign in to comment.