WSS - SOAP WS-Security question

Nick Renders omnis1 at arcict.com
Mon Jun 8 11:14:52 UTC 2026


Hi Mike,

I am not using any of the Omnis WS features for this.
I just create the XML string and then send it with CURL (or alternatively the W3 HTTP worker)

Nick Renders


On 8 Jun 2026, at 12:48, Mike Matthews - Omnis via omnisdev-en wrote:

> Hello Nick,
>
> I thought the SOAP stuff was no longer supported now?  I think we used in v8 & v10.2, but had to move away for v11.  Maybe we did, maybe not?
>
> Thanks
>
> Mike Matthews
>
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
>
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
>
> http://www.lineal.co.uk/<http://www.lineal.co.uk/>
>
> http://www.sqlworks.co.uk/<http://www.sqlworks.co/>
>
>
>
> On 8 Jun 2026, at 10:24, Nick Renders via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>
> Warning: Unusual link
>
> This message contains an unusual link, which may lead to a malicious site.
> Confirm the message is safe before clicking any links.
>
> Hi List,
>
> Does anyone have any experience with the WSS standard for SOAP requests?
> https://en.wikipedia.org/wiki/WS-Security
>
> I am trying to call a third party API, but I am always getting a "SecurityError". It doesn't say much else, but my best guess is that I am doing something wrong with the creation of the "nonce".
>
> Here is my code:
>
> Calculate lNonce as stringjockey.$sha1digest(OW3.$makeuuid(kFalse))
> Calculate lDateTime as irProperties.$convertCETtoGMT(#T)
> Calculate lTSCreated as con(dat(lDateTime,"y-M-D"),"T",dat(lDateTime,"H:N:S"),"Z")
> Calculate lDateTime as irProperties.$convertCETtoGMT(dadd(kMinute,60,#T))
> Calculate lTSExpires as con(dat(lDateTime,"y-M-D"),"T",dat(lDateTime,"H:N:S"),"Z")
>
> Begin text block (Carriage return,Linefeed)
> Text:[kTab]<wsse:Security
> Text:[kSp]soapenv:mustUnderstand="1"
> Text:[kSp]xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
> Line:[kSp]xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
> Line:[kTab][kTab]<wsu:Timestamp>
> Line:[kTab][kTab][kTab]<wsu:Created>[lTSCreated]</wsu:Created>
> Line:[kTab][kTab][kTab]<wsu:Expires>[lTSExpires]</wsu:Expires>
> Line:[kTab][kTab]</wsu:Timestamp>
> Line:[kTab][kTab]<wsse:UsernameToken>
> Line:[kTab][kTab][kTab]<wsse:Username>[iSessionRow.soapLogin]</wsse:Username>
> Line:[kTab][kTab][kTab]<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">[stringjockey.$base64encode(binfromhex(stringjockey.$sha1digest(con(lNonce,lTSCreated,iSessionRow.soapPassword))))]</wsse:Password>
> Line:[kTab][kTab][kTab]<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">[stringjockey.$base64encode(binfromhex(lNonce))]</wsse:Nonce>
> Line:[kTab][kTab][kTab]<wsu:Created>[lTSCreated]</wsu:Created>
> Line:[kTab][kTab]</wsse:UsernameToken>
> Line:[kTab]</wsse:Security>
>
>
> irProperties.$convertCETtoGMT is a little routine to convert a local date/time to GMT.
> And as you can see, I use StringJockey for the SHA1 and Base64 encoding.
>
> I am pretty sure the calculation of the <wsse:Password> tag is correct, because when I try it with sample data (https://stackoverflow.com/questions/15779170/how-to-properly-generate-a-wsse-password-digest-in-php) , it returns the correct Base64 string.
> So I think the problem is with the input data. It is my understanding that the "nonce" should just be a random string, but I could be wrong.
>
> Any ideas/suggestions?
>
>
> Kind regards,
>
> Nick Renders
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com/
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com


More information about the omnisdev-en mailing list