/
dimamir
/
node-soap
Обзор
Документация
Войти
/
dimamir
/
node-soap
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/client-options-test.js
33 строки
1009 B
Vasily Martynov
Upgrade dependencies and refactor code to work with the latest xml-crypto (#1242)
16 июл 2024, 10:46
Не верифицирован
16 июл 2024, 10:46
3c20595
Код
Авторство
О чём код?
'use strict'; var soap = require('..'), assert = require('assert'); describe('SOAP Client', function() { var options = { 'ignoredNamespaces': { 'namespaces': ['ignoreThisNS'], 'override': true }, 'overrideRootElement': { 'namespace': 'tns' }, 'overridePromiseSuffix': 'Test', 'request': 'customRequest', 'namespaceArrayElements': true }; it('should set WSDL options to those specified in createClient', function(done) { soap.createClient(__dirname+'/wsdl/json_response.wsdl', options, function(err, client) { assert.ok(client); assert.ifError(err); assert.ok(client.wsdl.options.ignoredNamespaces[0] === 'ignoreThisNS'); assert.ok(client.wsdl.options.overrideRootElement.namespace === 'tns'); assert.ok(typeof client.MyOperationTest === 'function'); assert.ok(client.wsdl.options.request, "customRequest"); assert.ok(client.wsdl.options.namespaceArrayElements === true); done(); }); }); });