<?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: format soap request body tESBConsumer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291701#M64857</link>
    <description>The document is an w3c document. It would be much easier to convert into a String (before you ask, I didn't have done this, Google is you friend &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; and perform with it the replacements.</description>
    <pubDate>Thu, 20 Aug 2015 21:41:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-20T21:41:18Z</dc:date>
    <item>
      <title>format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291696#M64852</link>
      <description>Greetings,
&lt;BR /&gt;Is it possible to encode the xml tags of the body of a SOAP request in Talend using tXMLMap-&amp;gt;tESBConsumer or another component prior to sending the request?
&lt;BR /&gt;Talend returns errors for the following request with raw xml tags present:
&lt;BR /&gt;&amp;lt;soap:Envelope&amp;gt;
&lt;BR /&gt;&amp;lt;soap:Body&amp;gt; 
&lt;BR /&gt;&amp;lt;shipmentEnvelope&amp;gt;
&lt;BR /&gt;&amp;lt;shipment&amp;gt;
&lt;BR /&gt;&amp;lt;details&amp;gt;
&lt;BR /&gt;&amp;lt;shipmentCurrencyCode&amp;gt;USD&amp;lt;/shipmentCurrencyCode&amp;gt;
&lt;BR /&gt;&amp;lt;shipmentType&amp;gt;AIATA&amp;lt;/shipmentType&amp;gt;
&lt;BR /&gt;&amp;lt;measurementType&amp;gt;MET&amp;lt;/measurementType&amp;gt;
&lt;BR /&gt;&amp;lt;exportCountry&amp;gt;US&amp;lt;/exportCountry&amp;gt;
&lt;BR /&gt;&amp;lt;importCountry&amp;gt;ES&amp;lt;/importCountry&amp;gt;
&lt;BR /&gt;&amp;lt;/details&amp;gt;
&lt;BR /&gt;&amp;lt;/shipment&amp;gt;&amp;lt;/shipmentEnvelope&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;
&lt;BR /&gt;I tested in a SOAP client and received a similar error. However, when encoding the XML tags of the SOAP:Body i get the desired result:
&lt;BR /&gt;&amp;lt;soap:Envelope&amp;gt;
&lt;BR /&gt;&amp;lt;soap:Body&amp;gt; 
&lt;BR /&gt;&amp;lt;shipmentEnvelope&amp;gt;
&lt;BR /&gt;&amp;amp;lt;shipment&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;details&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;shipmentCurrencyCode&amp;amp;gt;USD&amp;amp;lt;/shipmentCurrencyCode&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;shipmentType&amp;amp;gt;AIATA&amp;amp;lt;/shipmentType&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;measurementType&amp;amp;gt;MET&amp;amp;lt;/measurementType&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;exportCountry&amp;amp;gt;US&amp;amp;lt;/exportCountry&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;importCountry&amp;amp;gt;ES&amp;amp;lt;/importCountry&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;/details&amp;amp;gt;
&lt;BR /&gt;&amp;amp;lt;/shipment&amp;amp;gt;
&lt;BR /&gt;&amp;lt;/shipment&amp;gt;&amp;lt;/shipmentEnvelope&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;
&lt;BR /&gt;Is it possible to encode the XML tags for the body of the payload and not the header? If so-what approach/components should I use to accomplish this?</description>
      <pubDate>Fri, 14 Aug 2015 22:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291696#M64852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-14T22:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291697#M64853</link>
      <description>This is not the way how soap works. The payload will be send typically with a name space in it. This way you do not have to bother with encodings! What about creating your own shipment name space &amp;nbsp;- lets call it ship.
&lt;BR /&gt;Now you create your payload:
&lt;BR /&gt;&amp;lt;ship:shipmentEnvelope xmlns:ship="http://mycompany/"&amp;gt;
&lt;BR /&gt;... now you can use the name space for all further tags (not necessary to repeat the declaration).</description>
      <pubDate>Sat, 15 Aug 2015 18:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291697#M64853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-15T18:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291698#M64854</link>
      <description>Thanks for the reply. I actually removed the namespaces from the example; the envelope does have a namespace in both instances. Sorry for the confusion. 
&lt;BR /&gt;For some reason, however, I am unable to send the raw XML. I can only get the payload to successfully send when replacing the xml greater than/less than tags with &amp;amp;gt; and &amp;amp;lt;. The soap:header doesn't appear to have an issue with the raw XML, but anything within the soap:body in raw XML format is giving me issues. Is there any way to programatically replace the xml tags in just the soap:body? Can this be done with a component or would I need to write custom code in order to do this?</description>
      <pubDate>Mon, 17 Aug 2015 03:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291698#M64854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T03:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291699#M64855</link>
      <description>There is a bug in the tESBConsumer component which damages the payload in case of names spaces are used. 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/browse/TESB-15758?jql=text%20~%20%22TDI-32849%22%20ORDER%20BY%20created%20DESC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-15758?jql=text%20~%20%22TDI-32849%22%20ORDER%20BY%20created%20DESC&lt;/A&gt; 
&lt;BR /&gt;The only current way it to switch to this release. 
&lt;BR /&gt;If you want stay on your solution, I suggest building the payload and use a tJavaRow component and simply java code to replace the xml tags.</description>
      <pubDate>Mon, 17 Aug 2015 09:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291699#M64855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-17T09:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291700#M64856</link>
      <description>Can I perform a replace operation using TJavaRow on a document data type?</description>
      <pubDate>Thu, 20 Aug 2015 21:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291700#M64856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T21:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: format soap request body tESBConsumer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291701#M64857</link>
      <description>The document is an w3c document. It would be much easier to convert into a String (before you ask, I didn't have done this, Google is you friend &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; and perform with it the replacements.</description>
      <pubDate>Thu, 20 Aug 2015 21:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/format-soap-request-body-tESBConsumer/m-p/2291701#M64857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T21:41:18Z</dc:date>
    </item>
  </channel>
</rss>

