<?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: retrieve XML from API REST in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225745#M17917</link>
    <description>@pedro&lt;BR /&gt;Yes the result is in XML.&lt;BR /&gt;Thank for give me a way to manage it, I will try your solution.&lt;BR /&gt;Regards,&lt;BR /&gt;Pegazus</description>
    <pubDate>Tue, 07 Aug 2012 08:49:25 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-08-07T08:49:25Z</dc:date>
    <item>
      <title>retrieve XML from API REST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225743#M17915</link>
      <description>Hi all, 
&lt;BR /&gt;I am new in Talend community. I have read the user guide and some tutorial. But I have some difficulty to solve my problem. 
&lt;BR /&gt;I must retrieve a XML file from WEB Rest Service. I had looked the componant tWebService but i can't call the web service because it's not deploy yet ... . 
&lt;BR /&gt;So I want to create job or create a new compenant which : 
&lt;BR /&gt; - Get XML file in entry. 
&lt;BR /&gt; - Check the XML file with XSD schema from the web Service (i can't call the web service but y have the XSD schema). 
&lt;BR /&gt; - Retrieve attributs. 
&lt;BR /&gt; - Store attributs in SGBD. 
&lt;BR /&gt; 
&lt;BR /&gt;It's not realy complex in fact.But the main purpose is my XML file use Inheritance, and i don't how to manage it on TALEND, can we ? 
&lt;BR /&gt;For the moment I don't have find any method. I had tried to create metadata XML file with the XSD but i didn't success. 
&lt;BR /&gt;Maybe i think so much in JAVA. I want control everything at low lvl. It's strange to think at an upper lvl of interaction... 
&lt;BR /&gt;Here a sample XML: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;Customers&amp;gt;&lt;BR /&gt;	&amp;lt;MyCustomer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomerBasic" id="1" /&amp;gt;&lt;BR /&gt;	&amp;lt;MyCustomer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomerPremium" id="2"&amp;gt;&lt;BR /&gt;		&amp;lt;credit="10"&amp;gt; &lt;BR /&gt;	&amp;lt;/MyCustomer&amp;gt;&lt;BR /&gt;&amp;lt;/Customers&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Here a XSD sample: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" &amp;gt;&lt;BR /&gt;	&amp;lt;!-- defini an abstract Customer --&amp;gt;&lt;BR /&gt;	&amp;lt;xsd:complexType name="AbstractCustomer" abstract="true" &amp;gt;&lt;BR /&gt;		&amp;lt;xsd:attribute name="id" type="xsd:string"/&amp;gt;&lt;BR /&gt;		&amp;lt;xsd:attribute name="firstname" type="xsd:string"/&amp;gt;&lt;BR /&gt;		&amp;lt;xsd:attribute name="lastename" type="xsd:string"/&amp;gt;&lt;BR /&gt;	&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;		&lt;BR /&gt;		&amp;lt;xsd:complexType name="CustomerBasic"&amp;gt;&lt;BR /&gt;			&amp;lt;xsd:complexContent&amp;gt;&lt;BR /&gt;				&amp;lt;xsd:extension base="AbstractCustomer"&amp;gt;&lt;BR /&gt;					&lt;BR /&gt;				&amp;lt;/xsd:extension&amp;gt;&lt;BR /&gt;			&amp;lt;/xsd:complexContent&amp;gt;&lt;BR /&gt;		&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;		&lt;BR /&gt;		&amp;lt;xsd:complexType name="CustomerPremium"&amp;gt;&lt;BR /&gt;			&amp;lt;xsd:complexContent &amp;gt;&lt;BR /&gt;				&amp;lt;xsd:extension base="AbstractCustomer"&amp;gt;&lt;BR /&gt;					&amp;lt;xsd:sequence minOccurs="1" maxOccurs="1"&amp;gt;&lt;BR /&gt;						&amp;lt;xsd:element name="credits" type="xsd:string"/&amp;gt;&lt;BR /&gt;					&amp;lt;/xsd:sequence&amp;gt;&lt;BR /&gt;				&amp;lt;/xsd:extension&amp;gt;&lt;BR /&gt;			&amp;lt;/xsd:complexContent&amp;gt;&lt;BR /&gt;		&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&lt;BR /&gt;	&amp;lt;xsd:element name="Customers"&amp;gt;&lt;BR /&gt;		&amp;lt;xsd:complexType&amp;gt;&lt;BR /&gt;			&amp;lt;xsd:sequence minOccurs="0" maxOccurs="unbounded"&amp;gt;&lt;BR /&gt;				&amp;lt;xsd:element name="MyCustomer" type="AbstractCustomer"/&amp;gt;&lt;BR /&gt;			&amp;lt;/xsd:sequence&amp;gt;&lt;BR /&gt;		&amp;lt;/xsd:complexType&amp;gt;&lt;BR /&gt;	&amp;lt;/xsd:element&amp;gt;&lt;BR /&gt;	&lt;BR /&gt;	&lt;BR /&gt;&amp;lt;/xsd:schema&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Valid by 
&lt;A href="http://xsdvalidation.utilities-online.info/" target="_blank" rel="nofollow noopener noreferrer"&gt;site&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If we can't use Inheritance, we have to create one job that check the xsi:type for each MyCustomer, and 
&lt;BR /&gt;create different process for each class which extend MyCustomer. Because in my SGBD I have to create 
&lt;BR /&gt;three tables in order to store my customers. One AbstractCustomer which have the id share(because of the integrity constraint) for tables CustomerBasic 
&lt;BR /&gt;and CustomerPremium . What do you think ? 
&lt;BR /&gt; 
&lt;BR /&gt;Do you have any idea ? 
&lt;BR /&gt; 
&lt;BR /&gt;Thank in advance,</description>
      <pubDate>Mon, 06 Aug 2012 16:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225743#M17915</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-08-06T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve XML from API REST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225744#M17916</link>
      <description>Hi&lt;BR /&gt;Is the return result of this web service is a XML file?&lt;BR /&gt;Or you want to get a XML respone?&lt;BR /&gt;1. Use tSOAP to get XML response.&lt;BR /&gt;2. Use tXSDValidator to validate XML file.&lt;BR /&gt;3. tFileInputXML to retrieve data.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 07 Aug 2012 03:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225744#M17916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T03:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve XML from API REST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225745#M17917</link>
      <description>@pedro&lt;BR /&gt;Yes the result is in XML.&lt;BR /&gt;Thank for give me a way to manage it, I will try your solution.&lt;BR /&gt;Regards,&lt;BR /&gt;Pegazus</description>
      <pubDate>Tue, 07 Aug 2012 08:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/retrieve-XML-from-API-REST/m-p/2225745#M17917</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-08-07T08:49:25Z</dc:date>
    </item>
  </channel>
</rss>

