Skip to content

Instantly share code, notes, and snippets.

@abelsromero
Created July 26, 2016 10:48
Show Gist options
  • Select an option

  • Save abelsromero/4d2e776263d645a4948d70da748a6049 to your computer and use it in GitHub Desktop.

Select an option

Save abelsromero/4d2e776263d645a4948d70da748a6049 to your computer and use it in GitHub Desktop.
CMIS timestamp auth token generation in SoapUI
USERNAME and PASSWORD are inserted using SoapUI feature
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" 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">
<wsu:Timestamp wsu:Id="TS-AD11234F3B4CF74705144725809787932">
<wsu:Created>${=TimeZone.setDefault(TimeZone.getTimeZone("UTC")); (new Date()).format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")}</wsu:Created>
<wsu:Expires>${=(new Date()).format("yyyy-MM-dd'T23:59:59.999Z'")}</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="UsernameToken-AD11234F3B4CF74705144724950372217">
<wsse:Username>USERNAME</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">rNB4FPQVw/c9C2c35u6I+g==</wsse:Nonce>
<wsu:Created>2015-11-11T13:45:03.722Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment