查找

Artículo
· 9 dic, 2024 Lectura de 3 min

第四十五章 终端输入 输出 - WRITE 命令

第四十五章 终端输入 输出 - WRITE 命令

WRITE 命令

将零个或多个字符写入终端

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 9 dic, 2024 Lectura de 1 min

CSP/RESTのPOSTデータに日本語が含まれる場合の処理のおまじない Parameter CONVERTINPUTSTREAM = 1

REST/JSONを使ってデータを交換することが増えてきていると思いますが、POSTでIRISにデータを渡す場合に日本語が含まれる場合に皆さんどう処理していますか?

わざわざ自分でコード変換する処理を追加していませんか?

実は、あまり知られていないのですが、自動で変換する方法がありますので、紹介します。

CSPのメカニズムを使ってクライアントからデータをPOSTすると、それはCSPのRequestオブジェクトのContentプロパティに渡されます。

ContentプロパティのTypeは%CSP.Streamになっていて、このTypeのクラスリファレンスを読むと、Content-TypeがText/のときには、CharSetに基づいてコード変換が行われると示唆されています。

つまりContent-TypeがJSONの場合には、自動的な変換がされないということになります。

本当は、Content-TypeがJSONの時も変換してくれるのが一番良い(わかりやすい)のですが、残念ながらそうなっていません。

その代わりにパラメータが用意されています。

RESTのディスパッチクラスの定義に以下のパラメータを追加することで、自動コード変換を行なってくれます。

Parameter CONVERTINPUTSTREAM = 1;

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 9 dic, 2024

Does Iris for Health Generate Reset Packets? Under What Circumstances? What Settings Are needed in a BS to Not Send Reset packets?

Iris for Health is sending back ACKs back to the vendor for incoming X12 messages but, they are not making it there. Instead, the vendor is getting Reset packets and it seems they are coming out from Iris for Health. 

Questions:

  1. Does Iris indeed generates Reset Packets? 
  2. What causes Reset Packets to be triggered?
  3. What settings does InterSystems recommend to not send Reset packets? 
  4. Are settings needed in the BS to prevent Reset Packets?

I already tried different settings unsuccessfully, and read much of the instructions provided by Intersystems but, we still can't resolve this issue. Part of a project at my organization is on-hold because of it. Please help. 

Thank you!

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 9 dic, 2024

[Video] How to Reach 99.99% Uptime on the Cloud

Hi Community,

Enjoy the new video on InterSystems Developers YouTube:

⏯ How to Reach 99.99% Uptime on the Cloud @ Global Summit 2024

Learn how to build highly available mission-critical applications in the public cloud.  

Presenters:
🗣 @Regilo Regilio Guedes de Souza, Director, Cloud Delivery, InterSystems
🗣 @Eduard Lebedyuk, Senior Cloud Architect, InterSystems

Enjoy watching, and expect to see more videos! 👍

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 9 dic, 2024

Foreign Server/Table Help

I am attempting to create a Foreign Server/Table so I can pull some information in from MS SQL server via JDBC connection, but as soon as I create the Server/Table and logout the Foreign Server disappears.

CREATE FOREIGN SERVER Epic.Clarity 
   FOREIGN DATA WRAPPER JDBC CONNECTION 'MS-EpicClarity'

logout, then run 

the documentation - Defining Foreign Tables | Using InterSystems SQL | InterSystems IRIS Data Platform 2024.3 mentions "A user that creates a foreign server must have the %MANAGE_FOREIGN_SERVER administrative privilege" but I am not finding that security setting to give to my role.

Does anyone might know what is going on?

Thanks

Scott

3 comentarios
Comentarios (3)3
Inicie sesión o regístrese para continuar