<?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 Re: Issue to extract the token from the body in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234900#M24103</link>
    <description>&lt;P&gt;Hi !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The easiest way to achieve that is to put your XML example in a file, and t&lt;SPAN&gt;hen in XMLMap, on the left pane, right-click on your entry "body", and choose "Import from File". It will build you the structure of your XML.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the right pane, add a simple String field and drag-drop the attribute (it displays under your field, starting with an @ ).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So :&lt;/P&gt; 
&lt;P&gt;TRest =&amp;gt;tXMLMap=&amp;gt;tLogRow&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That's it, no need for further headache &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sincerely,&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 16:35:53 GMT</pubDate>
    <dc:creator>rmartin2</dc:creator>
    <dc:date>2020-01-02T16:35:53Z</dc:date>
    <item>
      <title>Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234898#M24101</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I have an issue to extract the token value from the Body.In my API Rest I am getting the body completely and I am trying to extract just the token from it but I couldn't suceed.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t1.PNG" style="width: 943px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8zC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154751i417B903440345E04/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8zC.png" alt="0683p000009M8zC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t4.PNG" style="width: 777px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9ET.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144798i895DBBF819E67AB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9ET.png" alt="0683p000009M9ET.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;tmap and txmlmap:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8hz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148737i42DF9B113605D278/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8hz.png" alt="0683p000009M8hz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Dl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132903i34A43A3578FC5827/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Dl.png" alt="0683p000009M9Dl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t5.PNG" style="width: 911px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9EY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134267iC1D1EC13973B44C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9EY.png" alt="0683p000009M9EY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t6.PNG" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Ed.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133561i2D0B503E2E16B946/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Ed.png" alt="0683p000009M9Ed.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;As you can see the first screen capture that I am getting oneline but after it passes through composant textractxml field 0 line is inserted.As I am new to API rest in talend I don't much about the functionalities.I know there is something missing in the composant tExtractXMLField but I couldn't find it.If you have any ideas please comment it below.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234898#M24101</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2024-11-16T03:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234899#M24102</link>
      <description>&lt;P&gt;I'm not too great with XML so what i tend to do in development is put a tLogRow after each step just to make sure the data looks how i expect it to look at each step. You'll probably find that the tExtractXML component isn't doing what you expect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 16:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234899#M24102</guid>
      <dc:creator>MattE</dc:creator>
      <dc:date>2020-01-02T16:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234900#M24103</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The easiest way to achieve that is to put your XML example in a file, and t&lt;SPAN&gt;hen in XMLMap, on the left pane, right-click on your entry "body", and choose "Import from File". It will build you the structure of your XML.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the right pane, add a simple String field and drag-drop the attribute (it displays under your field, starting with an @ ).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So :&lt;/P&gt; 
&lt;P&gt;TRest =&amp;gt;tXMLMap=&amp;gt;tLogRow&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That's it, no need for further headache &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234900#M24103</guid>
      <dc:creator>rmartin2</dc:creator>
      <dc:date>2020-01-02T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234901#M24104</link>
      <description>&lt;P&gt;Thanks for your reply,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t1.PNG" style="width: 631px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M98R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139261iFE0164654540BC54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M98R.png" alt="0683p000009M98R.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Fb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155433i9A477D8509FEB39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Fb.png" alt="0683p000009M9Fb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I did as you proposed but how to get the elements from the body when its not recogonised in the tXMLmap composant?&lt;/P&gt; 
&lt;P&gt;or the other way could be to use the composant textractXML but I dont know exactly what to fill in the Xpath loop and in the mapping Xpath.&lt;/P&gt; 
&lt;P&gt;If you have some ideas please let me know.&lt;/P&gt; 
&lt;P&gt;Have a good day,&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 09:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234901#M24104</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2020-01-03T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234902#M24105</link>
      <description>&lt;P&gt;What's the format of the Body which is output from the tRest component? If token is not an XML node then the tExtractXML component won't be able to find anything. It might be better to convert the Body to a string then in a tJavaRow component strip out the token and save it to use elsewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if the format of the Body was&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;token=ABC123456&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then in a tJavaRow you could do something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//create a sting to work with&lt;BR /&gt;String token = "";

//check it's not null first
if(!Relational.ISNULL(input_row.body) &amp;amp;&amp;amp; !input_row.body.equals("")){
	//get a substring from the offset of token= to the end of the string
	token = input_row.body.substring(input_row.body.indexOf("token=")+6, input_row.body.length());
}

//put the token into a global variable to recall elsewhere
globalMap.put("Token", token);&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Jan 2020 10:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234902#M24105</guid>
      <dc:creator>MattE</dc:creator>
      <dc:date>2020-01-03T10:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234903#M24106</link>
      <description>&lt;P&gt;the token looks like this&lt;/P&gt; 
&lt;P&gt;token=&lt;SPAN&gt;"IEllQMy6Qmh6VEB3EsdoNGHfU9C3eivv3Dw"&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t10.PNG" style="width: 738px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8zo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156363iF1A5E348A49C8DD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8zo.png" alt="0683p000009M8zo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t11.PNG" style="width: 249px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M904.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155587iA85E9D760DAB0C54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M904.png" alt="0683p000009M904.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks for your reply I tried it but its not working ,because it couldn't identify the column 'token'.But its okay that its not the case that token is null.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output format of the body is a string.The token is never null because the I have verified in the postman as well.The issue is that the textractxml could not identify the values of the string.So I think I should make it understand the string with the xpath loop and the query xpath.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 13:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234903#M24106</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2020-01-03T13:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234904#M24107</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the solutions you have proposed me but the issue isn't solved yet.&lt;/P&gt;&lt;P&gt;Your solutions are still welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your replies,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 10:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234904#M24107</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2020-01-07T10:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue to extract the token from the body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234905#M24108</link>
      <description>&lt;P&gt;The issue is solved.In the composant textract xml,the input to give in the loop and clolumns were corrected by myself with the help of using a metadata xml.&lt;/P&gt;&lt;P&gt;So I tried to create a metadata tfileinputxml with my xml content.The step before the final step of creating the metadata shows the header and other columns to be mapped in the table.&lt;/P&gt;&lt;P&gt;So I took the same elements it used to map in the metadata on my textract xml composant.&lt;/P&gt;&lt;P&gt;If you have any questions regarding this you can ask me in the comments.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-to-extract-the-token-from-the-body/m-p/2234905#M24108</guid>
      <dc:creator>Manoj_MUTHURAJA</dc:creator>
      <dc:date>2020-02-20T16:16:46Z</dc:date>
    </item>
  </channel>
</rss>

