Hello,
First of all thanks for your help.
We have the following scenario: some responses include special characters as ">" and "<" which are being put inside a property defined as:
Property PACPROBLEMAS As %String(MAXLEN = "", XMLNAME = "PAC_PROBLEMAS");
So then, when we observe the LOG SOAP it shows that the Target System replies to the ESB as follows:
➡️ <PAC_PROBLEMAS>46807#278.01#OBESIDAD INFANTIL GRAVE ( Z-SCORE IMC >2,70 ) #19/09/2019##N#</PAC_PROBLEMAS>
However when we observe the Visual Trace, the message being replied from the Operation to the Process has a CDATA section as you could see:
➡️ <s01:PAC_PROBLEMAS><![CDATA[46807#278.01#OBESIDAD INFANTIL GRAVE ( Z-SCORE IMC >2,70 )#19/09/2019##N#S]]>
</s01:PAC_PROBLEMAS>
We do need to find a way to remove the <![CDATA[]]> because the system which receives the response needs it to be raw without any CDATA.
We do have checked that it only shows this behaviour with special character which conflict with the ones that are used in XML as ">" and "<".
We do have investigated the following options:
📌 Declare CONTENT = "ESCAPE"
Property PACPROBLEMAS As %String(CONTENT = "ESCAPE", MAXLEN = "", XMLNAME = "PAC_PROBLEMAS");
It stills being the same
📌 Declare ESCAPE = "HTML"
Property PACPROBLEMAS As %String(ESCAPE = "HTML", MAXLEN = "", XMLNAME = "PAC_PROBLEMAS");
It behaves similarly
📌 Declare ESCAPE = "XML"
Property PACPROBLEMAS As %String(ESCAPE = "XML", MAXLEN = "", XMLNAME = "PAC_PROBLEMAS");
It just shows the same behaviour
We have also read:
https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...
https://community.intersystems.com/post/convert-string-property-cdata-an...
https://community.intersystems.com/post/there-way-automatically-remove-s...
However the previous post does not cover this topic.
Could you help us please?
🔎 How could we remove <![CDATA[]]> in a String property? 📍
Could we declare there any properties, parameters, configurations or options to remove it?
What is the most recommended and clean way to achieve this?
Thanks for your help, time, answers, teaching and support.
.png)
.png)