soap
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -83,3 +83,3 @@ "use strict"; | ||
const boundary = (0, uuid_1.v4)(); | ||
headers['Content-Type'] = 'multipart/related; type="application/xop+xml"; start="<' + start + '>"; type="text/xml"; boundary=' + boundary; | ||
headers['Content-Type'] = 'multipart/related; type="application/xop+xml"; start="<' + start + '>"; start-info="text/xml"; boundary=' + boundary; | ||
if (action) { | ||
@@ -86,0 +86,0 @@ headers['Content-Type'] = headers['Content-Type'] + '; ' + action; |
@@ -8,2 +8,3 @@ export * from './BasicAuthSecurity'; | ||
export * from './WSSecurityCert'; | ||
export * from './WSSecurityCertWithToken'; | ||
export * from './WSSecurityPlusCert'; |
@@ -24,3 +24,4 @@ "use strict"; | ||
__exportStar(require("./WSSecurityCert"), exports); | ||
__exportStar(require("./WSSecurityCertWithToken"), exports); | ||
__exportStar(require("./WSSecurityPlusCert"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -119,3 +119,3 @@ "use strict"; | ||
const secHeader = `<wsse:Security ${secExt} ` + | ||
secUtility + | ||
`${secUtility} ` + | ||
`${envelopeKey}:mustUnderstand="1">` + | ||
@@ -122,0 +122,0 @@ binarySecurityToken + |
@@ -8,3 +8,3 @@ import { Client } from './client'; | ||
export { HttpClient } from './http'; | ||
export { BasicAuthSecurity, BearerSecurity, ClientSSLSecurity, ClientSSLSecurityPFX, NTLMSecurity, WSSecurity, WSSecurityCert, WSSecurityPlusCert } from './security'; | ||
export { BasicAuthSecurity, BearerSecurity, ClientSSLSecurity, ClientSSLSecurityPFX, NTLMSecurity, WSSecurity, WSSecurityCert, WSSecurityPlusCert, WSSecurityCertWithToken } from './security'; | ||
export { Server } from './server'; | ||
@@ -11,0 +11,0 @@ export { passwordDigest } from './utils'; |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.listen = exports.createClientAsync = exports.createClient = exports.WSDL = exports.passwordDigest = exports.Server = exports.WSSecurityPlusCert = exports.WSSecurityCert = exports.WSSecurity = exports.NTLMSecurity = exports.ClientSSLSecurityPFX = exports.ClientSSLSecurity = exports.BearerSecurity = exports.BasicAuthSecurity = exports.HttpClient = exports.Client = exports.security = void 0; | ||
exports.listen = exports.createClientAsync = exports.createClient = exports.WSDL = exports.passwordDigest = exports.Server = exports.WSSecurityCertWithToken = exports.WSSecurityPlusCert = exports.WSSecurityCert = exports.WSSecurity = exports.NTLMSecurity = exports.ClientSSLSecurityPFX = exports.ClientSSLSecurity = exports.BearerSecurity = exports.BasicAuthSecurity = exports.HttpClient = exports.Client = exports.security = void 0; | ||
const debugBuilder = require("debug"); | ||
@@ -43,2 +43,3 @@ const client_1 = require("./client"); | ||
Object.defineProperty(exports, "WSSecurityPlusCert", { enumerable: true, get: function () { return security_1.WSSecurityPlusCert; } }); | ||
Object.defineProperty(exports, "WSSecurityCertWithToken", { enumerable: true, get: function () { return security_1.WSSecurityCertWithToken; } }); | ||
var server_2 = require("./server"); | ||
@@ -45,0 +46,0 @@ Object.defineProperty(exports, "Server", { enumerable: true, get: function () { return server_2.Server; } }); |
@@ -775,3 +775,3 @@ "use strict"; | ||
const typeQName = (0, utils_1.splitQName)(childSchemaObject.$type); | ||
const typePrefix = typeQName.prefix; | ||
const typePrefix = childSchemaObject.$baseNameSpace || typeQName.prefix; | ||
const typeURI = schema.xmlns[typePrefix] || this.definitions.xmlns[typePrefix]; | ||
@@ -1001,3 +1001,2 @@ childNsURI = typeURI; | ||
found.$baseNameSpace = childNameSpace; | ||
found.$type = childNameSpace + ':' + childName; | ||
break; | ||
@@ -1162,2 +1161,5 @@ } | ||
} | ||
else if (name === 'html') { | ||
throw new Error(`Root element of WSDL was <html>. This is likely an authentication issue.`); | ||
} | ||
else { | ||
@@ -1164,0 +1166,0 @@ throw new Error('Unexpected root element of WSDL or include'); |
{ | ||
"name": "soap", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A minimal node SOAP client", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -53,2 +53,4 @@ # Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] | ||
- [WSSecurityCert](#wssecuritycert) | ||
- [WSSecurityPlusCert](#wssecuritypluscert) | ||
- [WSSecurityCertWithToken](#wssecuritycertwithtoken) | ||
- [NTLMSecurity](#ntlmsecurity) | ||
@@ -1085,3 +1087,13 @@ - [Handling XML Attributes, Value and XML (wsdlOptions).](#handling-xml-attributes-value-and-xml-wsdloptions) | ||
``` | ||
### WSSecurityCertWithToken | ||
WS-Security X509 Certificate support. Just like WSSecurityCert, except that it accepts the input properties as a single object, with two properties added `username` and `password`. Which if added, will add a UsernameToken Element to the xml security element. | ||
``` xml | ||
<wsse:UsernameToken> | ||
<wsse:Username>someusername</wsse:Username> | ||
<wsse:Password>someusername's password</wsse:Password> | ||
</wsse:UsernameToken> | ||
``` | ||
### NTLMSecurity | ||
@@ -1088,0 +1100,0 @@ |
@@ -18,2 +18,2 @@ { | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
443776
65
5965
1458