<?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: How to insert a context variable into a XML file in thttpClient and field RequestBody? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522688#M147705</link>
    <description>&lt;P&gt;Hi Denis_Segard, its not possible to see in the picture you attached, its to grainy if I zoome in... Please post a new picture or write the code to use....&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 10:47:27 GMT</pubDate>
    <dc:creator>EspenH</dc:creator>
    <dc:date>2025-06-30T10:47:27Z</dc:date>
    <item>
      <title>How to insert a context variable into a XML file in thttpClient and field RequestBody?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522656#M147703</link>
      <description>&lt;P&gt;I have a thttpClient which i use to request a SOAP service.&lt;/P&gt;&lt;P&gt;In this component I have a Request Body formated as Text with the necessary escape characters:&lt;/P&gt;&lt;P&gt;"&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Envelope xmlns:xsi=\"&lt;A href="http://www.w3.org/2001/XMLSchema-instance\" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance\&lt;/A&gt;" xmlns:xsd=\"&lt;A href="http://www.w3.org/2001/XMLSchema\" target="_blank"&gt;http://www.w3.org/2001/XMLSchema\&lt;/A&gt;" xmlns:soap12=\"&lt;A href="http://www.w3.org/2003/05/soap-envelope\" target="_blank"&gt;http://www.w3.org/2003/05/soap-envelope\&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;GetTransactions xmlns=\"&lt;A href="http://24sevenoffice.com/webservices/economy/accounting/\" target="_blank"&gt;http://24sevenoffice.com/webservices/economy/accounting/\&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;searchParams&amp;gt;&lt;BR /&gt;&amp;lt;DateSearchParameters&amp;gt;EntryDate&amp;lt;/DateSearchParameters&amp;gt;&lt;BR /&gt;&amp;lt;ShowOpenEntries&amp;gt;1&amp;lt;/ShowOpenEntries&amp;gt;&lt;BR /&gt;&amp;lt;DateStart&amp;gt;2025-01-01&amp;lt;/DateStart&amp;gt;&lt;BR /&gt;&amp;lt;DateEnd&amp;gt;2025-01-02&amp;lt;/DateEnd&amp;gt;&lt;BR /&gt;&amp;lt;TransactionTypeId&amp;gt;15&amp;lt;/TransactionTypeId&amp;gt;&lt;BR /&gt;&amp;lt;/searchParams&amp;gt;&lt;BR /&gt;&amp;lt;/GetTransactions&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Envelope&amp;gt;"&lt;/P&gt;&lt;P&gt;This request works, but i would like to use context variables in the elements/tags DateStart and DateEnd.&lt;/P&gt;&lt;P&gt;I have set the variables in a tJavaRow component formated as string, but I have trouble to set the variables into the XML?&lt;/P&gt;&lt;P&gt;Do any of you experts out there know how to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 05:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522656#M147703</guid>
      <dc:creator>EspenH</dc:creator>
      <dc:date>2025-06-30T05:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a context variable into a XML file in thttpClient and field RequestBody?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522658#M147704</link>
      <description>&lt;P&gt;See an example here :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Denis_Segard_0-1751262146033.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181707iCC4AFBA7D657677C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Denis_Segard_0-1751262146033.png" alt="Denis_Segard_0-1751262146033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 05:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522658#M147704</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-06-30T05:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a context variable into a XML file in thttpClient and field RequestBody?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522688#M147705</link>
      <description>&lt;P&gt;Hi Denis_Segard, its not possible to see in the picture you attached, its to grainy if I zoome in... Please post a new picture or write the code to use....&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 10:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522688#M147705</guid>
      <dc:creator>EspenH</dc:creator>
      <dc:date>2025-06-30T10:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a context variable into a XML file in thttpClient and field RequestBody?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522689#M147706</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Code used in "Body" content :&lt;/P&gt;
&lt;P&gt;"&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Envelope xmlns:xsi=\"&lt;A href="http://www.w3.org/2001/XMLSchema-instance\" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance\&lt;/A&gt;" xmlns:xsd=\"&lt;A href="http://www.w3.org/2001/XMLSchema\" target="_blank"&gt;http://www.w3.org/2001/XMLSchema\&lt;/A&gt;" xmlns:soap12=\"&lt;A href="http://www.w3.org/2003/05/soap-envelope\" target="_blank"&gt;http://www.w3.org/2003/05/soap-envelope\&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;GetTransactions xmlns=\"&lt;A href="http://24sevenoffice.com/webservices/economy/accounting/\" target="_blank"&gt;http://24sevenoffice.com/webservices/economy/accounting/\&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;searchParams&amp;gt;&lt;BR /&gt;&amp;lt;DateSearchParameters&amp;gt;EntryDate&amp;lt;/DateSearchParameters&amp;gt;&lt;BR /&gt;&amp;lt;ShowOpenEntries&amp;gt;1&amp;lt;/ShowOpenEntries&amp;gt;&lt;BR /&gt;&amp;lt;DateStart&amp;gt;"+context.DateStart+"&amp;lt;/DateStart&amp;gt;&lt;BR /&gt;&amp;lt;DateEnd&amp;gt;"+context.DateEnd+"&amp;lt;/DateEnd&amp;gt;&lt;BR /&gt;&amp;lt;TransactionTypeId&amp;gt;15&amp;lt;/TransactionTypeId&amp;gt;&lt;BR /&gt;&amp;lt;/searchParams&amp;gt;&lt;BR /&gt;&amp;lt;/GetTransactions&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Envelope&amp;gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 10:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522689#M147706</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-06-30T10:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a context variable into a XML file in thttpClient and field RequestBody?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522743#M147707</link>
      <description>&lt;P&gt;Hi Denis_Segard&lt;/P&gt;&lt;P&gt;I have tried this code before, but then i get an error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EspenH_0-1751343889159.png" style="width: 631px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181718i3886A75BAA857101/image-dimensions/631x172?v=v2" width="631" height="172" role="button" title="EspenH_0-1751343889159.png" alt="EspenH_0-1751343889159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On the other hand if I use escape character in this code like:&lt;/P&gt;&lt;P&gt;&amp;lt;DateStart&amp;gt;\"+context.DateStart+\"&amp;lt;/DateStart&amp;gt;&lt;BR /&gt;&amp;lt;DateEnd&amp;gt;\"+context.DateEnd+\"&amp;lt;/DateEnd&amp;gt;&lt;/P&gt;&lt;P&gt;I do not get an error, but also no result. Somhow the dates are then not red propper dates...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found a workaround and create the whole xml part in tjava, put it in an context variable and use this variable in the Request body, but would still like to hav a solution where i could only insert the dates as context variables in the XML...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 04:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-context-variable-into-a-XML-file-in-thttpClient/m-p/2522743#M147707</guid>
      <dc:creator>EspenH</dc:creator>
      <dc:date>2025-07-01T04:31:56Z</dc:date>
    </item>
  </channel>
</rss>

