The developer at Omniture very kindly sent me a follow up email that gives me a sense of where my mistake might be, though I have no clear idea how to fix it. I sent him my code and my output, to which he responded:
" Most things seem in order until I see your wsse header. Its not correct as both the password digest and nonce values are improperly encoded. These should be base64 encoded representations of the values. Neither of these strings are base64 encoded. You can tell a given string is base64 encoded because it can only have 64 specific characters in the string: A-Z a-z 0-9 + / That's 26 + 26 + 10 + 2 = 64 " Sure enough, this is my nonce: Nonce="[B@180fad0a" I see his point -- this is not base64. But where did I go wrong? My code right now, for the nonce, consists of these lines: nonce (DigestUtils/md5Hex (random-string 32)) nonce-encoded-base64 (Base64/encodeBase64 (.getBytes nonce)) And then this gets added to the header: header (apply str " UsernameToken Username=\"" username "\" PasswordDigest=\"" digest "\" Nonce=\"" nonce-encoded-base64 "\" Created=\"" created "\"") So where did I go wrong? Why is this not Base64? On Mar 4, 10:53 am, Michael Klishin <michael.s.klis...@gmail.com> wrote: > 2013/3/4 larry google groups <lawrencecloj...@gmail.com> > > > Any suggestions? > > You can > usehttps://github.com/clojurewerkz/support/blob/master/src/clojure/cloju... > > note that you need to concatenate a byte array and bytes from a string > first. > -- > MK > > http://github.com/michaelklishinhttp://twitter.com/michaelklishin -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.