NetTalk Central
The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Manuel on November 13, 2019, 09:08:07 AM
-
Hi
I'm getting an error at migrate a SOAP client from C10 N10.36 ST2.90 XF3.10 to C11 NT10.40 ST2.90 XF3.13.
NetAcme.Base64Urlencode PROCEDURE (StringTheory pInput)
code
pInput.Base64Encode(st:URLSafe + st:NoPadding)
-----------------
NetAcme.Finalize Procedure() ! version 2 only
strx stringtheory
code
self.state = state:Finalize
self.JsonHeaders()
self.SetJwsProtected(true,self.finalizeurl)
!payload
strx.loadfile(clip(self.certdir) & '\' & clip(self.CertificateName) & '.csr.der')
strx.Base64Encode(st:URLSafe + st:NoPadding)
TIA
Regards
Manuel
-
At a guess, you need a newer version of String Theory.
Line 79 of StringTheory.inc 3.11 (which is the version I have at the moment) has
st:NoPadding equate(2)
So it looks as if Bruce has made some change to Base64Encode since the version that you're using.
Jane
-
It seems that NT 10.40 requires ST 3.
Thank you.
Manuel
-
>> It seems that NT 10.40 requires ST 3.
yes. The new acme class uses features in ST 3 - I didn't realize that at the time, but it is the case.
cheers
Bruce