William Glover · Dec 19, 2022 go to post

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.

William Glover · Dec 20, 2022 go to post

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.

William Glover · Jan 25, 2023 go to post

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?

William Glover · Jan 25, 2023 go to post

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)

William Glover · Jan 31, 2023 go to post

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.

William Glover · May 22, 2023 go to post

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.

William Glover · May 22, 2023 go to post


     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.

William Glover · May 22, 2023 go to post

Hi Jeffrey,

No its not and it reads the string in correctly as shown by the watch on the debugger.