<?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 tXMLMap Component and Web Service Parameter that is an Array of Strings in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-Component-and-Web-Service-Parameter-that-is-an-Array-of/m-p/2336815#M105219</link>
    <description>&lt;P&gt;I am using the tXMLMap component to format data for a&amp;nbsp;tESBConsumer component (using Talend Data Integration 6.4.1) to talk to a SOAP&amp;nbsp;Web Service. We need to use a Web Service method that requires one of its parameters to be an array of strings, such that the payload needs to become something like:&lt;/P&gt; 
&lt;P&gt;"...&amp;nbsp;&amp;nbsp; &amp;lt;simpleParam&amp;gt;Simple Param Value&amp;lt;/simpleParam&lt;STRONG&gt;&amp;gt;&amp;lt;arrayOfStringsParam&amp;gt;&amp;lt;string&amp;gt;Array Item 1&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 2&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 3&amp;lt;/string&amp;gt;&amp;lt;/arrayOfStringsParam&amp;gt;&lt;/STRONG&gt; ..."&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I cannot determine how to pass the array into the control to get it in the correct format. There is no type for Schema fields of String[].&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is already a loop element in the tXMLMap, used for each input record, so I cannot use the looping mechanism.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried a type List but it got written out in the payload as something like&amp;nbsp;"... &amp;lt;arrayOfStringsParam&amp;gt;[Array Item 1, Array Item 2,Array Item 3]&amp;lt;/arrayOfStringsParam&amp;gt; ...".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried a type of String and formatted the data in previous steps as&amp;nbsp; "&amp;lt;string&amp;gt;Array Item 1&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 2&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 3&amp;lt;/string&amp;gt;" but in the resulting payload the less-than (&amp;lt;) signs got encoded to "&amp;amp;lt;" so they weren't recognised as&amp;nbsp;proper tags.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone please let me know how to get this data in the appropriate format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in anticipation,&lt;/P&gt; 
&lt;P&gt;Alan&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:46:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:46:14Z</dc:date>
    <item>
      <title>tXMLMap Component and Web Service Parameter that is an Array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-Component-and-Web-Service-Parameter-that-is-an-Array-of/m-p/2336815#M105219</link>
      <description>&lt;P&gt;I am using the tXMLMap component to format data for a&amp;nbsp;tESBConsumer component (using Talend Data Integration 6.4.1) to talk to a SOAP&amp;nbsp;Web Service. We need to use a Web Service method that requires one of its parameters to be an array of strings, such that the payload needs to become something like:&lt;/P&gt; 
&lt;P&gt;"...&amp;nbsp;&amp;nbsp; &amp;lt;simpleParam&amp;gt;Simple Param Value&amp;lt;/simpleParam&lt;STRONG&gt;&amp;gt;&amp;lt;arrayOfStringsParam&amp;gt;&amp;lt;string&amp;gt;Array Item 1&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 2&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 3&amp;lt;/string&amp;gt;&amp;lt;/arrayOfStringsParam&amp;gt;&lt;/STRONG&gt; ..."&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I cannot determine how to pass the array into the control to get it in the correct format. There is no type for Schema fields of String[].&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is already a loop element in the tXMLMap, used for each input record, so I cannot use the looping mechanism.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried a type List but it got written out in the payload as something like&amp;nbsp;"... &amp;lt;arrayOfStringsParam&amp;gt;[Array Item 1, Array Item 2,Array Item 3]&amp;lt;/arrayOfStringsParam&amp;gt; ...".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried a type of String and formatted the data in previous steps as&amp;nbsp; "&amp;lt;string&amp;gt;Array Item 1&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 2&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;Array Item 3&amp;lt;/string&amp;gt;" but in the resulting payload the less-than (&amp;lt;) signs got encoded to "&amp;amp;lt;" so they weren't recognised as&amp;nbsp;proper tags.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone please let me know how to get this data in the appropriate format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in anticipation,&lt;/P&gt; 
&lt;P&gt;Alan&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-Component-and-Web-Service-Parameter-that-is-an-Array-of/m-p/2336815#M105219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap Component and Web Service Parameter that is an Array of Strings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-Component-and-Web-Service-Parameter-that-is-an-Array-of/m-p/2336816#M105220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please post your current job design screenshot on forum which will be helpful for us to understand your job requirement?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-Component-and-Web-Service-Parameter-that-is-an-Array-of/m-p/2336816#M105220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T06:28:38Z</dc:date>
    </item>
  </channel>
</rss>

