<?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 [resolved] Mapping SOAP response to Mysql Output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256960#M39189</link>
    <description>Hello, 
&lt;BR /&gt;I am creating a job that consumes a webservice through a tSOAP component. 
&lt;BR /&gt;I am taking the output of this component in Document format. 
&lt;BR /&gt;And now I want to dump the SOAP body content into a Mysql database table using tMysqlOutput component. 
&lt;BR /&gt;So I have created a tXMLMap component . 
&lt;BR /&gt;The soap response returned by the webservice is as follows: 
&lt;BR /&gt; 
&lt;I&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;soap:Envelope xmlns:soap="&lt;A href="http://www.w3.org/2003/05/soap-envelope" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;soap:Body&amp;gt;&lt;BR /&gt; &amp;lt;GetXmlDataResponse xmlns="&lt;A href="http://smartbear.com" target="_blank" rel="nofollow noopener noreferrer"&gt;http://smartbear.com&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;GetXmlDataResult&amp;gt;&lt;BR /&gt; &amp;lt;x:books xmlns:x="urn:books"&amp;gt;&lt;BR /&gt; &amp;lt;book xmlns="" id="bk001"&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;&lt;BR /&gt; &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;&lt;BR /&gt; &amp;lt;/book&amp;gt;&lt;BR /&gt; &amp;lt;book xmlns="" id="bk002"&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;&lt;BR /&gt; &amp;lt;/book&amp;gt;&lt;BR /&gt; &amp;lt;/x:books&amp;gt;&lt;BR /&gt; &amp;lt;/GetXmlDataResult&amp;gt;&lt;BR /&gt; &amp;lt;/GetXmlDataResponse&amp;gt;&lt;BR /&gt; &amp;lt;/soap:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/I&gt; 
&lt;BR /&gt;However when I run the job, it gets the whole response as a single row. 
&lt;BR /&gt;But it does not dump any data into the database table because the element values are retrieved as null. 
&lt;BR /&gt;See TOSJobOutput.png attached. 
&lt;BR /&gt;Can anyone tell me the issues with mapping done? 
&lt;BR /&gt;Or point me to any other post or tutorial that explains how to map a SoapResponse document to individual database columns. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCM2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152889iD26C7C5EE77D46C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCM2.png" alt="0683p000009MCM2.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCga.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146277iB4766F317E9C7D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCga.png" alt="0683p000009MCga.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:46:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:46:37Z</dc:date>
    <item>
      <title>[resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256960#M39189</link>
      <description>Hello, 
&lt;BR /&gt;I am creating a job that consumes a webservice through a tSOAP component. 
&lt;BR /&gt;I am taking the output of this component in Document format. 
&lt;BR /&gt;And now I want to dump the SOAP body content into a Mysql database table using tMysqlOutput component. 
&lt;BR /&gt;So I have created a tXMLMap component . 
&lt;BR /&gt;The soap response returned by the webservice is as follows: 
&lt;BR /&gt; 
&lt;I&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;soap:Envelope xmlns:soap="&lt;A href="http://www.w3.org/2003/05/soap-envelope" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2003/05/soap-envelope&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;soap:Body&amp;gt;&lt;BR /&gt; &amp;lt;GetXmlDataResponse xmlns="&lt;A href="http://smartbear.com" target="_blank" rel="nofollow noopener noreferrer"&gt;http://smartbear.com&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;GetXmlDataResult&amp;gt;&lt;BR /&gt; &amp;lt;x:books xmlns:x="urn:books"&amp;gt;&lt;BR /&gt; &amp;lt;book xmlns="" id="bk001"&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;&lt;BR /&gt; &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;&lt;BR /&gt; &amp;lt;/book&amp;gt;&lt;BR /&gt; &amp;lt;book xmlns="" id="bk002"&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;&lt;BR /&gt; &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;&lt;BR /&gt; &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;&lt;BR /&gt; &amp;lt;/book&amp;gt;&lt;BR /&gt; &amp;lt;/x:books&amp;gt;&lt;BR /&gt; &amp;lt;/GetXmlDataResult&amp;gt;&lt;BR /&gt; &amp;lt;/GetXmlDataResponse&amp;gt;&lt;BR /&gt; &amp;lt;/soap:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/I&gt; 
&lt;BR /&gt;However when I run the job, it gets the whole response as a single row. 
&lt;BR /&gt;But it does not dump any data into the database table because the element values are retrieved as null. 
&lt;BR /&gt;See TOSJobOutput.png attached. 
&lt;BR /&gt;Can anyone tell me the issues with mapping done? 
&lt;BR /&gt;Or point me to any other post or tutorial that explains how to map a SoapResponse document to individual database columns. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCM2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152889iD26C7C5EE77D46C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCM2.png" alt="0683p000009MCM2.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCga.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146277iB4766F317E9C7D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCga.png" alt="0683p000009MCga.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256960#M39189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256961#M39190</link>
      <description>Hi, &lt;BR /&gt;Could you use tLogrow instead of tMysqlOutput to see the actual result? Is there still error "Column bookid cannot be null" in console?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 23 Jan 2014 08:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256961#M39190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T08:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256962#M39191</link>
      <description>Yes, I have done that. The output (Soap response in italics) is also shown in the first post.</description>
      <pubDate>Thu, 23 Jan 2014 08:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256962#M39191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T08:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256963#M39192</link>
      <description>You need to map the xml to your schema in the db output.</description>
      <pubDate>Thu, 23 Jan 2014 08:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256963#M39192</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-01-23T08:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256964#M39193</link>
      <description>I have mapped the SOAP response to tMysqlOutput component through a tXmlMap component. See the attached image in my first post.&lt;BR /&gt;The problem is that it is not looping through the two book tags to get the data but treats the whole response as a single row. I am not able to figure out how to make the mapping so that each book tag is treated as a single row so that it can be inserted into the mysql db.</description>
      <pubDate>Thu, 23 Jan 2014 09:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256964#M39193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256965#M39194</link>
      <description>Sorry, missed the tXmlMap. You need to loop on book not envelope.</description>
      <pubDate>Thu, 23 Jan 2014 11:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256965#M39194</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-01-23T11:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256966#M39195</link>
      <description>I tried that too. I looped on book yet it shows only 1 row going into the tXmlMap and 0 rows coming out of it.</description>
      <pubDate>Fri, 24 Jan 2014 05:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256966#M39195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T05:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256967#M39196</link>
      <description>Hi 
&lt;BR /&gt;The return result of web service is a string with XML format, you can use tExtractXMLField component to extract the value such as The First Book from the title node after tSOAP, 
&lt;BR /&gt;tSOAP--main--tExtactXMLField--main--tMysqlOutput
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 06 Feb 2014 04:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256967#M39196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T04:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Mapping SOAP response to Mysql Output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256968#M39197</link>
      <description>Thanks shong, tExtractXmlField works like a charm!!</description>
      <pubDate>Fri, 07 Feb 2014 08:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Mapping-SOAP-response-to-Mysql-Output/m-p/2256968#M39197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-07T08:48:46Z</dc:date>
    </item>
  </channel>
</rss>

