That sorted it, Thanks.
- Log in to post comments
That sorted it, Thanks.
Hi @Cristiano Silva ,
It was due to the TCP operation I was using which did not have DeferResponse property set to enabled.
I was unsure what was causing this error as the logic for defering the reponse was nested in the process, as a result I thought the issue was there.
I have used the InterSystems.Data.IRISClient.ADO library fo .NET, but I also want the ability to call class methods in Ensemble and other earlier builds.
I assumed the API would be the best way as it allows me to inserts classes, but if it is not possible to call methods I would appreciate any other ways achieving this.
I see the signiture of the classes that I exported deployed then imported, with no content in the methods, is this how it is meant to show?
.png)
Thanks, I did follow these when doing the export/import.
I am assuming its something to do with the lacking qspec here, but I am finding it hard to know what flags to add from the docuemntation.
At current it is.
Do project.DeployToFile("C:\deployedExport.xml",,1)
Thanks Eduard,
That worked, is there a way of using this Qspec when writing out to a global, I am getting the same error when trying to do this with a global subscript.
Ah sorry I switched out the method call to see if it worked, i was using RSASHASign before where the first argument is the bitlength and was getting the same result, any ideas in that scenario.
Set encodedToken = ..UrlEncoding($System.Encryption.Base64Encode(..header.%ToJSON(),1)_
"."_ $System.Encryption.Base64Encode(..payload.%ToJSON(),1))
Set tFile=##class(%Stream.FileBinary).%New()
Set tFile.Filename=secretLocation
Set pemPrviateKey = tFile.Read($$$MaxLocalLength)
Set secretSigned = ##class(%SYSTEM.Encryption).RSASHASign(512,encodedToken,pemPrviateKey)
Set signature = $Translate($System.Encryption.Base64Encode(secretSigned, 1),"+/=","-_")
Return encodedToken_"."_signature
In my scenario the token is two encrypted JSONs appended together and the signature gets appended to the end.
The code above doesn't produce anything at secretSigned, the PEM encoded private key is valid.
Hi Jeffrey,
No its not and it reads the string in correctly as shown by the watch on the debugger.
Hi Jeffrey,
It does respond with RSA Key ok when running that command on it .
That makes sense but why does it work on one namespace and not another?
Switching all sends to Synchronous did also not work