查找

Artigo
· Dez. 9, 2024 1min de leitura

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;

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Dez. 9, 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!

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Dez. 9, 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! 👍

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Dez. 9, 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 Comments
Discussão (3)3
Entre ou crie uma conta para continuar
Artigo
· Dez. 9, 2024 1min de leitura

Novidade na interoperabilidade 2024.3 - Nova opção para reenviar mensagens desde o Visual Trace

A capacidade de reenviar mensagens sempre foi um dos destaques das nossas funcionalidades de interoperabilidade.

Com a versão 2024.3, que será lançada em breve (já disponível como prévia para desenvolvedores), tornamos esse processo ainda mais simples!

Agora, diretamente no Visual Trace (Rastreamento Visual), você encontrará um botão "Reenviar" ao lado do cabeçalho da mensagem. Com um clique, você acessará o editor padrão de Reenvio de Mensagens, sem a necessidade de navegar pelo visualizador de mensagens para encontrar a mensagem específica.

Abaixo, você tem um exemplo de como isso se parece:

Consulte também as Notas de Versão relacionadas.

Discussão (0)1
Entre ou crie uma conta para continuar