<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic tRestRequest &amp; JSON in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-JSON/m-p/2362748#M126818</link>
    <description>Hi,&amp;nbsp; 
&lt;BR /&gt;I have a problem, like most of us 
&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; 
&lt;BR /&gt;I use Talend ESB v5.3.1.&amp;nbsp; 
&lt;BR /&gt;Actually, i've a very simple Web Service (see screenshot) totally OK with XML input.&amp;nbsp; 
&lt;BR /&gt;When i try to use JSON instead i get the error : 
&lt;BR /&gt; 
&lt;CENTER&gt; 
 &lt;B&gt;&lt;FONT color="#ff3333"&gt;ERROR=INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified&lt;/FONT&gt;&lt;/B&gt; 
&lt;/CENTER&gt; 
&lt;BR /&gt;The problem is only when i add an attribute. 
&lt;BR /&gt;Exemple, for an XML like this : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;magasin groupe="LAGARDERE"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;libelle&amp;gt;Carrefour&amp;lt;/libelle&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;id&amp;gt;10&amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/magasin&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;i have the answer :&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Magasin&amp;gt;Magasin : 10-Carrefour du groupe : LAGARDERE&amp;lt;/Magasin&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;But when i try with the corresponding JSON : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "root": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "magasin": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "-groupe": "LAGARDERE",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "libelle": "Carrefour",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "id": "10"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I have the error : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;{URI_ABSOLUTE=, ERROR=INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. , VERB=POST, STATUS=400, URI_BASE=, URI=Test}&lt;/PRE&gt; 
&lt;BR /&gt;Last thing, without the attribute "GROUPE" everything is fine. 
&lt;BR /&gt;Someone could tell me why and how could i correct that please ? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks.</description>
    <pubDate>Sat, 16 Nov 2024 11:09:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:09:27Z</dc:date>
    <item>
      <title>tRestRequest &amp; JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-JSON/m-p/2362748#M126818</link>
      <description>Hi,&amp;nbsp; 
&lt;BR /&gt;I have a problem, like most of us 
&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; 
&lt;BR /&gt;I use Talend ESB v5.3.1.&amp;nbsp; 
&lt;BR /&gt;Actually, i've a very simple Web Service (see screenshot) totally OK with XML input.&amp;nbsp; 
&lt;BR /&gt;When i try to use JSON instead i get the error : 
&lt;BR /&gt; 
&lt;CENTER&gt; 
 &lt;B&gt;&lt;FONT color="#ff3333"&gt;ERROR=INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified&lt;/FONT&gt;&lt;/B&gt; 
&lt;/CENTER&gt; 
&lt;BR /&gt;The problem is only when i add an attribute. 
&lt;BR /&gt;Exemple, for an XML like this : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;magasin groupe="LAGARDERE"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;libelle&amp;gt;Carrefour&amp;lt;/libelle&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;id&amp;gt;10&amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/magasin&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;i have the answer :&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Magasin&amp;gt;Magasin : 10-Carrefour du groupe : LAGARDERE&amp;lt;/Magasin&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;But when i try with the corresponding JSON : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "root": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "magasin": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "-groupe": "LAGARDERE",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "libelle": "Carrefour",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "id": "10"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;I have the error : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;{URI_ABSOLUTE=, ERROR=INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified. , VERB=POST, STATUS=400, URI_BASE=, URI=Test}&lt;/PRE&gt; 
&lt;BR /&gt;Last thing, without the attribute "GROUPE" everything is fine. 
&lt;BR /&gt;Someone could tell me why and how could i correct that please ? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 11:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-JSON/m-p/2362748#M126818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: tRestRequest &amp; JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-JSON/m-p/2362749#M126819</link>
      <description>Hi
&lt;BR /&gt;The problem is the "-groupe" starts with '-', is there any specific reason for it ? 
&lt;BR /&gt;tRESTRequest JSON to XML auto conversion fails to process "-groupe" because indeed an XML tag can have no '-' prefix.
&lt;BR /&gt;Thanks, Sergey</description>
      <pubDate>Tue, 07 Jul 2015 11:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-JSON/m-p/2362749#M126819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-07T11:42:40Z</dc:date>
    </item>
  </channel>
</rss>

