Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the EJS templates to strings so they coudl be imported as modules Reason, is having a issue with this in AWS Lambda, where all dependencies are compiled into one file. Fix lint errors in: - lib/wsdl.js - test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js New line added to end of Package.json
- Loading branch information
Lorne Currie
committed
Dec 5, 2018
1 parent
9541e14
commit 7eb9ec4
Showing
8 changed files
with
41 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var header = ['<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"', | ||
'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"', | ||
'soap:mustUnderstand="1">', | ||
'<wsse:BinarySecurityToken ', | ||
'EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ', | ||
'ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" ', | ||
'wsu:Id="<%= id%>"><%= binaryToken%></wsse:BinarySecurityToken><% if (hasTimeStamp === true) { %>', | ||
'<Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" Id="_1">', | ||
'<Created><%= created%></Created>', | ||
'<Expires><%= expires%></Expires>', | ||
'</Timestamp> <% } %>', | ||
'</wsse:Security>'].join('\n'); | ||
|
||
module.exports = header; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var token = ['<wsse:SecurityTokenReference>', | ||
'<wsse:Reference URI="#<%= x509Id%>" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>', | ||
'</wsse:SecurityTokenReference>'].join('\n'); | ||
|
||
module.exports = token; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ | |
"sinon": "^1.17.5", | ||
"timekeeper": "~0.0.4" | ||
} | ||
} | ||
} |
15 changes: 9 additions & 6 deletions
15
test/request-response-samples/Dummy__should_handle_inline_types/wsdl_options.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
exports.customDeserializer = { | ||
DateTime: (text) => new Date(text), | ||
TimeHourMinute: (text) => { | ||
"use strict"; | ||
var customDeserializer = { | ||
DateTime: function (text) { return new Date(text); }, | ||
TimeHourMinute: function (text) { | ||
// Return number of minutes since midnight | ||
const results = text.split(':').map(t => parseInt(t, 10)); | ||
var results = text.split(':').map(function (t) { return parseInt(t, 10); }); | ||
return results[0] * 60 + results[1]; | ||
}, | ||
NestedSimpleType: (text) => { | ||
NestedSimpleType: function (text) { | ||
// Return number of minutes since midnight | ||
const results = text.split(':').map(t => parseInt(t, 10)); | ||
var results = text.split(':').map(function (t) { return parseInt(t, 10); }); | ||
return results[0] * 60 + results[1]; | ||
} | ||
}; | ||
|
||
module.exports = customDeserializer; |