New post

Rechercher

Article
· Sep 2, 2024 1m read

Cómo descargar un archivo de imagen de un servidor web utilizando el lenguaje ObjectScript

[FAQ] Preguntas frecuentes de InterSystems

El siguiente código descarga https://www.intersystems.com/assets/intersystems-logo.png y guarda el archivo como c:\temp\test.png.

Es necesario definir una configuración SSL llamada SSLTEST antes de ejecutar este código.

 

ClassMethod download() As %Status
{
    Set sc = $$$OK
    Set httprequest=##class(%Net.HttpRequest).%New()
    set httprequest.Port = 443
    set httprequest.Https = 1
    set httprequest.SSLConfiguration = "SSLTEST"
    Set httprequest.Server="www.intersystems.com"
    Do httprequest.Get("/assets/intersystems-logo.png")
    Set httpresponse=httprequest.HttpResponse
    Set file=##class(%File).%New("c:\temp\test.png")
    Do file.Open("NWUK\BIN\")
    Do file.CopyFrom(httpresponse.Data)
    Do file.Close()
    Return sc
}
Discussion (0)1
Log in or sign up to continue
Article
· Sep 2, 2024 1m read

Helm Uninstall InterSystems - What does it do?

Say I want to uninstall the IKO - all I need to do is:

> helm uninstall intersystems

What happens behind the scenes is that helm will uninstall what was installed when you ran :

> helm install intersystems <relative/path/to/iris-operator>

In some sense - this is symmetric to when we ran install - however with a different image.

You'll notice that when you install, it knows what image to take from:

operator:
  registry: containers.intersystems.com
  repository: intersystems/iris-operator-amd
  tag: 3.7.13.100

For uninstall the image to take note of is:

cleaner:
  registry: appscode
  repository: kubectl
  tag: v1.14

as referenced in your values.yaml.

Some clients have had trouble uninstalling when their cluster is not connected to the internet, because this image is missing from their registry. What occurs then, is that we have to go and delete the objects that were created via the templates folder, referenced here, and these two secrets:

intersystems-iris-operator-amd-apiserver-cert
sh.helm.release.v1.intersystems.v1

To avoid this just push the cleaner image to your repository. You can find the newest image here (make sure to push the image you reference in values.yaml).

Hope this helps!

Discussion (0)1
Log in or sign up to continue
Question
· Sep 2, 2024

<PROTECT> *Function not allowed in IRIS Native python

Hello Community,

I got the PROTECT error while running functions. But, I could able to call the classmethods and methods in class definition with classMethodObject, classMethodValue etc.. from python. without any errors
python code

irispy.functionString('fnString','IRISPython',14)
irispy.function('fnString','IRISPython',14)
raise RuntimeError(error_message)
RuntimeError: <PROTECT> *Function not allowed
IRISPython.mac
fnString(fn1) public {
  quit "Hello "_fn1
}

7 Comments
Discussion (7)2
Log in or sign up to continue
Digest
· Sep 2, 2024

InterSystems 开发者出版物,August 26 - September 01, 2024,摘要

Article
· Sep 1, 2024 1m read

第十二章 WS-Policy 配置类详细信息 - 配置类基础知识

第十二章 WS-Policy 配置类详细信息 - 配置类基础知识

作为参考,本主题包含有关 IRIS 用于存储 WS-Policy 信息的配置类的详细信息。

配置类基础知识

要手动创建 WS-Policy 配置类,请创建 %SOAP.Configuration 的子类。在此类中,添加 XData 块,如下所示:

XData service
{
<cfg:configuration xmlns:cfg="http://www.intersystems.com/configuration" name="service">
...

XData 块具有以下一般结构:

Discussion (0)1
Log in or sign up to continue