{"id":6012,"date":"2019-01-12T20:18:31","date_gmt":"2019-01-12T20:18:31","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=6012"},"modified":"2024-08-05T17:37:04","modified_gmt":"2024-08-05T17:37:04","slug":"read-write-rest-api-data-in-talend-json-xml-soap","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/","title":{"rendered":"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP)"},"content":{"rendered":"<h2>Introduction<\/h2>\n<div class=\"su-note\"  style=\"border-color:#e5dd9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#fff7b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>UPDATE:<\/strong> Please visit <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/apps\/talend-studio\">Talend Studio Connectors<\/a>\u00a0page in <a href=\"https:\/\/zappysys.com\/api\/integration-hub\">API Integration Hub<\/a> to find updated articles on various Talend Studio integrations, including integrations with <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/rest-api-connector\/talend-studio\">REST API<\/a>, <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/soap-connector\/talend-studio\">SOAP API<\/a>, <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/json-file-connector\/talend-studio\">JSON file<\/a>, and <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/xml-file-connector\/talend-studio\">XML file<\/a>.<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11136 alignleft\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png\" alt=\"\" width=\"150\" height=\"151\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png 177w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2-150x150.png 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/>In this post we will learn how to read \/ write REST API data in Talend Open Studio. We will create a simple Talend Job using <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-json-rest-api-driver\/\" target=\"_blank\" rel=\"noopener\">ZappySys JSON\u00a0 Driver<\/a>\u00a0to read from REST API \/ JSON Files and load into Target (e.g. File \/ DB). Techniques listed in this article can be also used to read from SOAP API \/ XML Files or CSV Files \/ API using <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-xml-soap-api-driver\/\">XML Driver<\/a> \/ <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-csv-rest-api-driver\/\">CSV Driver<\/a>.<\/p>\n<p>These drivers support familiar SQL query language. Using SQL you can query virtually any API services just like relational database table. It can flatten nested hierarchy and provide output in rows \/ columns. Many complex REST API \/ SOAP API complexity is taken care automatically (e.g. Authentication, Pagination, Security, Error Handling).<\/p>\n<p>So let&#8217;s get started.<\/p>\n<p>&nbsp;<\/p>\n<h2>Requirements<\/h2>\n<ol>\n<li>Download and install Talend Open Studio (FREE) <a href=\"https:\/\/www.talend.com\/products\/data-integration\/data-integration-open-studio\/\" target=\"_blank\" rel=\"noopener\">from here<\/a>. Skip this step if you already installed.<\/li>\n<li>Download <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack<\/a> (JSON \/ XML Drivers)<\/li>\n<li>Get Microsoft <strong>JDBC driver<\/strong> for <strong>SQL Server<\/strong> <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?displaylang=en&amp;id=11774\">from here<\/a>\u00a0(Download\u00a0<strong>sqljdbc_6.0.8112.200_enu.exe<\/strong> which is self extracting file you can run and extract to some folder)<br \/>\nAfter you extract jdbc files, go to\u00a0sqljdbc_6.0\\enu\\jre8\\ folder rename\u00a0<strong>sqljdbc42.jar<\/strong> to\u00a0\u00a0<strong>mssql-jdbc.jar<\/strong> (name must be this). We will load this file in Talend later in this article.<\/li>\n<li>Basic knowledge about REST API and JSON \/ XML format.<\/li>\n<\/ol>\n<h2>Configure Data Gateway<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-5282\">Now let's look at how to configure\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/data-gateway\/\" target=\"_blank\" rel=\"noopener\">ZappySys Data Gateway<\/a>. This feature acts as a bridge between Client App and ZappySys Drivers. Using data gateway you can use ZappySys Drivers inside applications \/ operating systems where ZappySys drivers may not be available directly for some reason (e.g. You don't have access to Server for Installation or System does not support ODBC drivers like JAVA programs). <a href=\"https:\/\/zappysys.com\/blog\/category\/odbc-powerpack\/odbc-gateway\/\">Click here to read more<\/a> on various use cases of Data Gateway.\r\n<h4><span style=\"font-size: 14pt;\">Configure Data Gateway User \/ Port<\/span><\/h4>\r\nNow let's look at steps to configure Data Gateway after installation. We will also create a sample data source for ODATA API (i.e. JSON based REST API Service).\r\n<ol>\r\n \t<li>Assuming you have installed\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack<\/a>\u00a0using default options (Which also enables Data Gateway Service)<\/li>\r\n \t<li>Search \"Gateway\" in your start menu and click ZappySys Data Gateway\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/start-menu-open-zappysys-data-gateway.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/start-menu-open-zappysys-data-gateway.png\" alt=\"Open ZappySys Data Gateway\" \/><\/a>\r\n<p class=\"wp-caption-text\">Open ZappySys Data Gateway<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>First make sure Gateway Service is running (Verify Start icon is disabled)<\/li>\r\n \t<li>Also verify Port on General Tab\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-1.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-1.png\" alt=\"Port Number setting on ZappySys Data Gateway\" \/><\/a>\r\n<p class=\"wp-caption-text\">Port Number setting on ZappySys Data Gateway<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Now go to Users tab. <strong>Click Add<\/strong> icon to add a new user. Check Is admin to give access to all data sources you add in future. If you don't check admin then you have to manually configure user permission for each data source.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-2.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-2.png\" alt=\"Add Data Gateway User\" \/><\/a>\r\n<p class=\"wp-caption-text\">Add Data Gateway User<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n&nbsp;\r\n<h4><span style=\"font-size: 14pt;\">Configure Data Source<\/span><\/h4>\r\n<ol>\r\n \t<li>After user is added, go to Data Sources tab. <strong>Click Add<\/strong>\u00a0icon to create new data source. Select appropriate driver based on your API \/ File format. You can choose Generic ODBC option to read data from ODBC DSN or use Native Driver option.\r\n<pre class=\"\"><strong>NOTE:<\/strong> Whenever possible use native driver option for better performance \/ security and ease of use.<\/pre>\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-3.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-3.png\" alt=\"Add Gateway Data Source (Native JSON Driver)\" \/><\/a>\r\n<p class=\"wp-caption-text\">Add Gateway Data Source (Native JSON Driver)<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>Click on \"Edit\" under Data source and configure as per your need (e.g. Url, Connection, Request Method, Content Type, Body, Pagination etc.). For this demo we are going to pick simple JSON REST API which doesn't need any authentication.\u00a0 Enter following URL.\r\n<pre class=\"\">https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Invoices?$format=json<\/pre>\r\n<\/li>\r\n \t<li>You can also view response structure and select default hierarchy (i.e. Filter) like below (Select Array Icon) for data extraction.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-4.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-4.png\" alt=\"Configure JSON API Data source\" \/><\/a>\r\n<p class=\"wp-caption-text\">Configure JSON API Data source<\/p>\r\n\r\n<\/div><\/li>\r\n<\/ol>\r\n<h4><span style=\"font-size: 14pt;\">Test SQL Query \/ Preview Data<\/span><\/h4>\r\n<ol>\r\n \t<li>Now go to Preview Tab. You can click Preview button to execute default query\r\nOR\r\nSelect Table name from dropdown to generate SQL with column names.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-5.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-5.png\" alt=\"JSON \/ REST API Driver Query Preview \/ Query Examples (Read REST API or JSON Files)\" \/><\/a>\r\n<p class=\"wp-caption-text\">JSON \/ REST API Driver Query Preview \/ Query Examples (Read REST API or JSON Files)<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>You can also click Query Builder to generate SQL using different options in WITH clause. ANy setting you specify in WITH clause will override UI settings we applied in previous steps.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-6.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-6.png\" alt=\"Using SQL Query Builder (For Files or REST \/ SOAP API - JSON \/ XML \/ CSV Format)\" \/><\/a>\r\n<p class=\"wp-caption-text\">Using SQL Query Builder (For Files or REST \/ SOAP API - JSON \/ XML \/ CSV Format)<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li>There is another useful option for code generation. Select your Language and quickly copy code snippet. See below Example of XML Driver Query to call SOAP API.\r\n<div class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-7.png\">\r\n<img decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/11\/odbc-configure-data-gateway-json-7.png\" alt=\"Generate Example Code for ZappySys Driver\" \/><\/a>\r\n<p class=\"wp-caption-text\">Generate Example Code for ZappySys Driver<\/p>\r\n\r\n<\/div><\/li>\r\n \t<li><strong>Click OK<\/strong> to Close Data Source UI<\/li>\r\n \t<li>Once data source is tested and configured you can <strong>click Save <\/strong>button in the Gateway UI toolbar and click <strong>Yes<\/strong> for <strong>Restart Service<\/strong>.<\/li>\r\n<\/ol>\r\n&nbsp;<\/div>\n<h2>Register MS SQL JDBC driver in Talend<\/h2>\n<p>Now lets register Microsoft JDBC Driver in Talend. This is very important step because MSSQL JDBC driver is used to communicate with ZappySys Data Gateway we configured in previous step.<\/p>\n<p>If you missed steps mentioned in the Requirements section then make sure you first download JDBC driver using below steps.<\/p>\n<p>Get Microsoft <strong>JDBC driver<\/strong> for <strong>SQL Server<\/strong> <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?displaylang=en&amp;id=11774\">from here<\/a>\u00a0(Download\u00a0<strong>sqljdbc_6.0.8112.200_enu.exe<\/strong> which is self extracting file you can run and extract to some folder).\u00a0After you extract jdbc files, go to\u00a0sqljdbc_6.0\\enu\\jre8\\ folder rename\u00a0<strong>sqljdbc42.jar<\/strong> to\u00a0\u00a0<strong>mssql-jdbc.jar<\/strong> (name must be this).<\/p>\n<p>Now lets go through the steps to register MSSQL jdbc driver in Talend.<\/p>\n<ol>\n<li>Open Talend Open Studio<\/li>\n<li>Go to <strong>Windows<\/strong> &gt; Click <strong><strong>Show View<\/strong><\/strong>\n<div id=\"attachment_6038\" style=\"width: 456px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-views-menu.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6038\" class=\"size-full wp-image-6038\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-views-menu.png\" alt=\"Talend - Show View\" width=\"446\" height=\"184\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-views-menu.png 446w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-views-menu-300x124.png 300w\" sizes=\"(max-width: 446px) 100vw, 446px\" \/><\/a><p id=\"caption-attachment-6038\" class=\"wp-caption-text\">Talend &#8211; Show View<\/p><\/div><\/li>\n<li>When you see Popup selection under <strong>Talend<\/strong> &gt; Select <strong><strong><strong>Modules<\/strong><\/strong><\/strong>\n<div id=\"attachment_6037\" style=\"width: 342px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-modules-option.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6037\" class=\"size-full wp-image-6037\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-modules-option.png\" alt=\"Talend - Select Modules Window\" width=\"332\" height=\"399\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-modules-option.png 332w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-show-modules-option-250x300.png 250w\" sizes=\"(max-width: 332px) 100vw, 332px\" \/><\/a><p id=\"caption-attachment-6037\" class=\"wp-caption-text\">Talend &#8211; Select Modules Window<\/p><\/div><\/li>\n<li>When Module window is visible click on Little Jar Icon (Bottle icon) in the toolbar.<\/li>\n<li>Select\u00a0<strong>mssql-jdbc.jar<\/strong>\u00a0file we renamed earlier and load this file.\n<div id=\"attachment_6036\" style=\"width: 870px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-register-jdbc-driver-import-mssql-jar.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6036\" class=\"size-full wp-image-6036\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-register-jdbc-driver-import-mssql-jar.png\" alt=\"Talend - Import JAR file \/ module (Register MS SQL JDBC Driver Example)\" width=\"860\" height=\"348\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-register-jdbc-driver-import-mssql-jar.png 860w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-register-jdbc-driver-import-mssql-jar-300x121.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-register-jdbc-driver-import-mssql-jar-768x311.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><p id=\"caption-attachment-6036\" class=\"wp-caption-text\">Talend &#8211; Import JAR file \/ module (Register MS SQL JDBC Driver Example)<\/p><\/div><\/li>\n<li>That&#8217;s it. Now we ready to make API calls \/ read from JSON \/ XML in the next section.<\/li>\n<\/ol>\n<h2>Setup Talend REST API Connection (JSON \/ XML \/ CSV)<\/h2>\n<p>Now let&#8217;s configure REST API Connection in Talend. To read from JSON \/ XML Files you can use same steps too. We will use MSSQL JDBC Driver to connect to ZappySys Data Gateway.<\/p>\n<ol>\n<li>In Talend Go to Metadata &gt; Db Connections (Right click) &gt; Create Connection\n<div id=\"attachment_6030\" style=\"width: 353px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-create-new-db-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6030\" class=\"size-full wp-image-6030\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-create-new-db-connection.png\" alt=\"Talend - Create new DB connection (JSON \/ REST API Example)\" width=\"343\" height=\"364\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-create-new-db-connection.png 343w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-create-new-db-connection-283x300.png 283w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/a><p id=\"caption-attachment-6030\" class=\"wp-caption-text\">Talend &#8211; Create new DB connection (JSON \/ REST API Example)<\/p><\/div><\/li>\n<li>On the connection Wizard specify following attributes.<br \/>\n<strong>DB Version :<\/strong> Microsoft<br \/>\n<strong>Login :<\/strong>\u00a0 username you setup in zappysys data gateway<br \/>\n<strong>Password :<\/strong>\u00a0 password of data gateway user<br \/>\n<strong>Server :<\/strong> machine name or IP where zappysys data gateway is running<br \/>\n<strong>Port :<\/strong> &lt;default is 5000&gt; Port on which zappysys data gateway is listening<br \/>\n<strong>DataBase :<\/strong>\u00a0 Data source name you setup in\u00a0zappysys data gateway (case-sensitive)<\/p>\n<div id=\"attachment_6029\" style=\"width: 977px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-connect-json-xml-rest-api-using-zappysys-gateway-ms-jdbc.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6029\" class=\"size-full wp-image-6029\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-connect-json-xml-rest-api-using-zappysys-gateway-ms-jdbc.png\" alt=\"Talend - Connect to JSON \/ REST API using ZappySys Gateway (Use MS SQL JDBC Driver)\" width=\"967\" height=\"716\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-connect-json-xml-rest-api-using-zappysys-gateway-ms-jdbc.png 967w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-connect-json-xml-rest-api-using-zappysys-gateway-ms-jdbc-300x222.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-connect-json-xml-rest-api-using-zappysys-gateway-ms-jdbc-768x569.png 768w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/a><p id=\"caption-attachment-6029\" class=\"wp-caption-text\">Talend &#8211; Connect to JSON \/ REST API using ZappySys Gateway (Use MS SQL JDBC Driver)<\/p><\/div><\/li>\n<li>That&#8217;s all we need to do to setup a connection which can be used to read \/ write REST API data in Talend. In the next section we will see how to create a job to read data from REST API Service using this connection.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>Read from REST API in Talend<\/h2>\n<p>Now let&#8217;s look at how to read data from REST API source or JSON \/ XML File using the connection we configured in the previous section.<\/p>\n<h3>Configure REST API Source<\/h3>\n<ol>\n<li>Create a Talend JOB and double click to open designer<\/li>\n<li>Now drag and drop MSSQL Connection we created for ZappySys Data gateway, drop it on the designer surface. It will popup UI like below.<\/li>\n<li>Select <strong>tDBInput<\/strong> (Microsoft SQL Server). Remember that we are using MSSQL JDBC Driver to connect to ZappySys Data Gateway for REST API Call. This gateway uses Microsoft TDS Protocol so MSSQL JDBC driver is used to communicate.<\/li>\n<li>Now rename Source to something meaningful (e.g. Read from JSON REST API)<\/li>\n<li>Double click REST Source to configure.<\/li>\n<li>Enter <strong>Query<\/strong> like below (Make sure to <strong>enter between double quotes<\/strong>). See below examples to read from URL or File. If you have double quote in SQL then escape using \\&#8221; character (e.g. select \\&#8221;my col\\&#8221; from $ )<strong>Read From REST API Url<\/strong>\n<pre class=\"lang:tsql decode:true\">\"SELECT * FROM value \r\nWITH (SRC='https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json')\"<\/pre>\n<p><strong>Read from Local File (Wildcard Pattern Search allowed)<\/strong><\/p>\n<pre class=\"lang:tsql decode:true\">\"SELECT * FROM value \r\nWITH (SRC='c:\\data\\Customers_*.json')\"<\/pre>\n<\/li>\n<li>Click on <strong>Guess Schema<\/strong> button and Click OK to accept detected schema.\n<div id=\"attachment_6028\" style=\"width: 972px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-configure-json-rest-api-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6028\" class=\"size-full wp-image-6028\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-configure-json-rest-api-source.png\" alt=\"Talend - Configure REST API \/ JSON Source (Enter SQL Query \/ Guess Schema)\" width=\"962\" height=\"723\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-configure-json-rest-api-source.png 962w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-configure-json-rest-api-source-300x225.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-configure-json-rest-api-source-768x577.png 768w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/a><p id=\"caption-attachment-6028\" class=\"wp-caption-text\">Talend &#8211; Configure REST API \/ JSON Source (Enter SQL Query \/ Guess Schema)<\/p><\/div><\/li>\n<li>Now we will configure target in the next section.<\/li>\n<\/ol>\n<h3>Configure Target (Delimited File)<\/h3>\n<ol>\n<li>Now search for &#8220;FileOut&#8221; in the toolbox (Hit Enter). You will see <strong>tFileOutputDelimited<\/strong> so just select that for now and drag on the surface.\n<div id=\"attachment_6035\" style=\"width: 828px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-to-csv-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6035\" class=\"size-full wp-image-6035\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-to-csv-file.png\" alt=\"Talend - Add File Output (tFileOutputDelimited)\" width=\"818\" height=\"307\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-to-csv-file.png 818w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-to-csv-file-300x113.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-to-csv-file-768x288.png 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" \/><\/a><p id=\"caption-attachment-6035\" class=\"wp-caption-text\">Talend &#8211; Add File Output (tFileOutputDelimited)<\/p><\/div><\/li>\n<li>Double click it to configure.<\/li>\n<li>Enter correct file path\u00a0(e.g.\u00a0&#8220;C:\/Talend\/workspace\/rest-api-output.csv&#8221; )<\/li>\n<li>On Advanced Tab you can configure some additional settings (e.g. Throw an error if file already exists)<\/li>\n<\/ol>\n<h3>Connect and Run<\/h3>\n<ol>\n<li>Once you have configured Source and Target its time to connect them<\/li>\n<li>Drag Source Port to Target to connect like below.\n<div id=\"attachment_6033\" style=\"width: 539px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-load-json-rest-api-data-to-csv-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6033\" class=\"size-full wp-image-6033\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-load-json-rest-api-data-to-csv-file.png\" alt=\"Talend - Connect REST \/ JSON Source to File Target\" width=\"529\" height=\"176\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-load-json-rest-api-data-to-csv-file.png 529w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-load-json-rest-api-data-to-csv-file-300x100.png 300w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/a><p id=\"caption-attachment-6033\" class=\"wp-caption-text\">Talend &#8211; Connect REST \/ JSON Source to File Target<\/p><\/div><\/li>\n<li>Run the job\n<div id=\"attachment_6034\" style=\"width: 863px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-rest-api-import-into-file-table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6034\" class=\"wp-image-6034 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-rest-api-import-into-file-table.png\" alt=\"Run Talend Job - Loading REST API data into File (Read JSON \/ XML \/ CSV)\" width=\"853\" height=\"510\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-rest-api-import-into-file-table.png 853w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-rest-api-import-into-file-table-300x179.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-read-json-rest-api-import-into-file-table-768x459.png 768w\" sizes=\"(max-width: 853px) 100vw, 853px\" \/><\/a><p id=\"caption-attachment-6034\" class=\"wp-caption-text\">Run Talend Job &#8211; Loading REST API data into File (Read JSON \/ XML \/ CSV)<\/p><\/div><\/li>\n<li>That&#8217;s it. So in few clicks you loaded data from REST API to File in Talend Open Studio.<\/li>\n<\/ol>\n<h2>Write \/ Send data to REST API (POST Example)<\/h2>\n<p>There will be a time when you want to POST data to REST API service. Let&#8217;s check how to write POST query to submit data to REST API.<\/p>\n<p>Just like how we did Read query in previous example, we can set POST Body in the SQL Query to send data. Use query like below and click Guess Schema button. If Blank Filter gives you no data error then make sure you remove Filter on Data Gateway Data source. (Notice we used \\&#8221; to escape double quote inside query )<\/p>\n<pre class=\"lang:default decode:true \">\"SELECT * FROM _root_\r\nWITH (\r\n METHOD='POST'\r\n,HEADER='Content-Type: text\/plain || first-header: AAA || second-header: BBB'\r\n,SRC='http:\/\/httpbin.org\/post'\r\n,BODY='{id:1,notes:\\\"Some notes\\\"}'\r\n,FILTER=''\r\n)\r\n\"<\/pre>\n<div id=\"attachment_6040\" style=\"width: 848px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-post-data-to-rest-api-url.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6040\" class=\"size-full wp-image-6040\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-post-data-to-rest-api-url.png\" alt=\"Talend - POST data to REST API URL\" width=\"838\" height=\"641\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-post-data-to-rest-api-url.png 838w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-post-data-to-rest-api-url-300x229.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-post-data-to-rest-api-url-768x587.png 768w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/a><p id=\"caption-attachment-6040\" class=\"wp-caption-text\">Talend &#8211; POST data to REST API URL<\/p><\/div>\n<h2>SQL Query Examples<\/h2>\n<p>Click on below link to learn more writing SQL Query using ZappySys Drivers.<\/p>\n<p><a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/json-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">JSON \/ REST Driver &#8211; SQL Query Examples<\/a><\/p>\n<p><a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/xml-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">XML \/ SOAP Driver &#8211; SQL Query Examples<\/a><\/p>\n<p><a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/csv-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">CSV \/ REST Driver &#8211; SQL Query Examples<\/a><\/p>\n<h2>REST API \/ XML SOAP Pagination Settings for Talend<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3892\"><div style=\"margin-bottom: 1em;\">Even we set up ODBC Data Source to get the data, it may not be enough. Usually, if you are getting a huge data set from API provider, it won't give it to you in one HTTP response. Instead, it gives back only a subset of data and provides a mechanism for data pagination. The good news is that\u00a0<em>ZappySys ODBC Driver<\/em> includes many options to cover virtually any pagination method.<\/div>\r\n<div><span style=\"font-size: 16px;\">Below you will find a few examples of API pagination. If you need something more sophisticated check the below link (the article was written for SSIS PowerPack but UI options and concepts apply to ODBC Driver too):<\/span><\/div>\r\n<div style=\"margin-bottom: 1em;\"><a href=\"https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/\" target=\"_blank\" rel=\"noopener\">https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/<\/a><\/div>\r\n<h3>Paginate by Response Attribute<\/h3>\r\nThis example shows how to paginate API calls where you need to paginate until the last page detected. In this example, next page is indicated by some attribute called nextlink (found in response). If this attribute is missing or null then it stops fetching the next page.\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH(\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/pagination_nextlink_inarray_1.json'\r\n,NextUrlAttributeOrExpr = '$.nextlink'  --keep reading until this attribute is missing. If attribute name contains dot then use brackets like this $.['my.attr.name']\r\n)<\/pre>\r\n<h3>Paginate by URL Parameter (Loop until certain StatusCode)<\/h3>\r\nThis example shows how to paginate API calls where you need to pass page number via URL. The driver keeps incrementing page number and calls next URL until the last page detected (401 error). There are few ways to indicate the last page (e.g. By status code, By row count, By response size). If you don't specify end detection then it will use the default (i.e. No records found).\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH (\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/page-xml.aspx?page=1&amp;mode=DetectBasedOnResponseStatusCode'\r\n,PagingMode='ByUrlParameter'\r\n,PagingByUrlAttributeName='page'\r\n,PagingByUrlEndStrategy='DetectBasedOnResponseStatusCode'\r\n,PagingByUrlCheckResponseStatusCode=401\r\n,IncrementBy=1\r\n)<\/pre>\r\n<h3>Paginate by URL Path (Loop until no record)<\/h3>\r\nThis example shows how to paginate API calls where you need to pass page number via URL Path. The driver keeps incrementing page number and calls next URL until the last page is detected. There are few ways to indicate the last page (e.g. By status code, By row count, By response size). If you don't specify end detection then it will use the default (i.e. No records found).\r\n<pre class=\"lang:tsql decode:true codeblock\">SELECT * FROM $\r\nWITH (\r\nSRC=@'https:\/\/zappysys.com\/downloads\/files\/test\/cust-&lt;%page%&gt;.xml'\r\n,PagingMode='ByUrlPath'\r\n,PagingByUrlAttributeName='&lt;%page%&gt;'\r\n,PagingByUrlEndStrategy='DetectBasedOnRecordCount'\r\n,IncrementBy=1\r\n)<\/pre>\r\n<h3>Paginate by Header Link (RFC 5988)<\/h3>\r\nAPI like GitHub \/ Wordpress use Next link in Headers (<a href=\"https:\/\/tools.ietf.org\/html\/rfc5988\" target=\"_blank\" rel=\"noopener\">RFC 5988<\/a>)\r\n<pre class=\"lang:default decode:true \">SELECT * FROM $\r\nLIMIT 25\r\nWITH(\r\n\t Src='https:\/\/wordpress.org\/news\/wp-json\/wp\/v2\/categories?per_page=10'\r\n\t,PagingMode='ByResponseHeaderRfc5988'\r\n\t,WaitTimeMs='200' --\/\/wait 200 ms after each request\r\n)<\/pre>\r\n&nbsp;<\/div>\n<h2>REST API \/ SOAP Web Service Connection Settings for Talend<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3896\"><div style=\"margin-bottom: 1em;\">If you need to authenticate or authorize your user to access a web resource, you will need to use one of\u00a0the <em>Connections:<\/em><\/div>\r\n<ul>\r\n \t<li>HTTP<\/li>\r\n \t<li>OAuth<\/li>\r\n<\/ul>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4078 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252.png\" alt=\"ZappySys XML Driver - HTTP and OAuth Connection Types\" width=\"577\" height=\"302\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252.png 577w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-authentication-authorization-e1529337108252-300x157.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/>\r\n<h3>HTTP Connection<\/h3>\r\n<div style=\"margin-bottom: 1em;\">Use <em>HTTP Connection<\/em> for simple\u00a0Windows, Basic, NTLM or Kerberos authentication. Just fill in a username and a password and you are good to go!<\/div>\r\n<div style=\"margin-bottom: 1em;\">You can also use <em>HTTP Connection<\/em> for more sophisticated authentication like:<\/div>\r\n<ul>\r\n \t<li><strong>SOAP WSS<\/strong> (when accessing a SOAP WebService)<\/li>\r\n \t<li><strong>Static Token \/ API Key<\/strong> (when need to pass an API key in HTTP header)<\/li>\r\n \t<li><strong>Dynamic Token<\/strong> (same as Static Token method except that each time you need to log in\u00a0and retrieve a fresh API key)<\/li>\r\n \t<li><strong>JWT Token<\/strong> (As per RFC 7519)<\/li>\r\n<\/ul>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4091 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-connection-type-1.png\" alt=\"\" width=\"622\" height=\"570\" \/>\r\n<h3>OAuth<\/h3>\r\nIf you are trying to access REST API resource, it is a huge chance, you will need to use <em>OAuth Connection<\/em>. <a href=\"https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/\" target=\"_blank\" rel=\"noopener\">Read this article<\/a> to understand how OAuth authentication and authorization works and how to use it (article originally was written for <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">SSIS PowerPack<\/a>, but the concepts and UI stay the same):\u00a0<br\/>\r\n<a href=\"https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/\" target=\"_blank\" rel=\"noopener\">https:\/\/zappysys.com\/blog\/rest-api-authentication-with-oauth-2-0-using-ssis\/<\/a>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-connection-type-2.png\" width=\"721\" height=\"708\" \/><\/div>\n<h2>Other settings for REST API \/ SOAP XML Call in Talend<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3901\">There are few settings you can coder while calling Web API\r\n<h3><strong>API Limit \/ Throttling<\/strong><\/h3>\r\nWhile calling public API or other external web services one important aspect you have to check,\u00a0 how many requests are allowed by your API. Especially when you use API pagination options to pull many records you have to slow down based on API limits. For example, your API may allow you only 5 requests per second. Use Throttling Tab on Driver UI to set delay after each request.\r\n<h3><strong>2D Array Transformation<\/strong><\/h3>\r\nIf you are using JSON or XML API Driver then possible you may have to transform your data using 2D array transformation feature. <a href=\"https:\/\/zappysys.com\/blog\/parse-multi-dimensional-json-array-ssis\/\" target=\"_blank\" rel=\"noopener\">Check this link<\/a> for more information.\r\n\r\n&nbsp;<\/div>\n<h2>REST API \/ XML SOAP Performance Tips for Talend<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-4455\">While calling APIs you may face some performance issues. There are a few tips you can consider to speed up things.\r\n<h4><span style=\"font-size: 14pt;\"><strong>Use Server-side filtering if possible in URL or Body Parameters<\/strong><\/span><\/h4>\r\nMany API supports filtering your data by URL parameters or via Body. Whenever possible try to use such features.\u00a0 Here is an example of <a href=\"http:\/\/www.odata.org\/getting-started\/basic-tutorial\/\" target=\"_blank\" rel=\"noopener\">odata\u00a0API<\/a>, In the below query the first query is faster than the second query because\u00a0in the first query we filter at the\u00a0server.\r\n<pre class=\"lang:tsql decode:true\">SELECT * FROM value\r\nWITH(\r\n\t Src='https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json&amp;$filter=Country eq ''USA'''\r\n\t,DataFormat='Odata'\r\n)\r\n\r\n-- Slow query - Client-side filtering\r\nSELECT * FROM value\r\nWHERE Country ='USA'\r\nWITH(\r\n\t Src='https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Customers?$format=json'\r\n\t,DataFormat='Odata'\r\n)<\/pre>\r\n<h4><span style=\"font-size: 14pt;\"><strong>Avoid Special features in SQL Query (e.g. WHERE, Group By, Order By)<\/strong><\/span><\/h4>\r\nZappySys API engine triggers client-side processing\u00a0if special features are used in Query. Following SQL Features will trigger Client-Side processing which is several times slower than server-side processing. So always try to use simple query (Select col1, col2 ....\u00a0from mytable\u00a0)\r\n<ul>\r\n \t<li>WHERE Clause<\/li>\r\n \t<li>GROUP BY Clause<\/li>\r\n \t<li>HAVING Clause<\/li>\r\n \t<li>ORDER BY<\/li>\r\n \t<li>FUNCTIONS (e.g. Math, String, DateTime, Regex... )<\/li>\r\n<\/ul>\r\nLIMIT clause does not trigger client-side processing.\r\n<h4><span style=\"font-size: 14pt;\"><strong>Consider using pre-generated Metadata \/ Cache File<\/strong><\/span><\/h4>\r\nUse META option in WITH Clause to use static metadata (Pre-Generated)There are two more options to speedup query processing time. Check <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> for details.\r\n<ol>\r\n \t<li>\r\n<pre class=\"lang:default decode:true\">select * from value WITH( meta='c:\\temp\\meta.txt' )\r\n--OR--\r\nselect * from value WITH( meta='my-meta-name' )\r\n--OR--\r\nselect * from value WITH( meta='[ {\"Name\": \"col1\",&amp;nbsp;\"Type\": \"String\", Length: 100},&amp;nbsp;{\"Name\": \"col2\",&amp;nbsp;\"Type\": \"Int32\"} ...... ]' )<\/pre>\r\n<\/li>\r\n \t<li>Enable Data Caching Options (Found on <strong>Property Grid<\/strong> &gt; <strong>Advanced<\/strong> Mode Only )<\/li>\r\n<\/ol>\r\n<h4><span style=\"font-size: 14pt;\"><strong>Consider using Metadata \/ Data Caching Option<\/strong><\/span><\/h4>\r\nZappySys API drivers support Caching Metadata and Data rows to speed up query processing. If your data doesn't change often then you can enable this option to speed up processing significantly.\r\n\r\nCheck <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> for details how to enable Data cache \/ metadata cache feature for datasource level or query level.\r\n\r\nTo define cache option at query level you can use like below.\r\n<pre class=\"\">SELECT * FROM $\r\nWITH \r\n(  SRC='https:\/\/myhost.com\/some-api'\r\n  ,CachingMode='All'  --cache metadata and data rows both\r\n  ,CacheStorage='File' --or Memory\r\n  ,CacheFileLocation='c:\\temp\\myquery.cache'\r\n  ,CacheEntryTtl=300 --cache for 300 seconds\r\n)\r\n<\/pre>\r\n&nbsp;\r\n\r\n&nbsp;\r\n<h4><strong><span style=\"font-size: 14pt;\">Use --FAST Option to enable Stream Mode<\/span><\/strong><\/h4>\r\nZappySys JSON \/ XML drivers support <strong>--FAST<\/strong> suffix for Filter. By using this suffix after Filter driver enables Stream Mode, <a href=\"https:\/\/zappysys.com\/blog\/caching-metadata-odbc-drivers-performance\/#Reading_Large_Files_Streaming_Mode_for_XML_JSON\" target=\"_blank\" rel=\"noopener\">Read this article<\/a> to understand how this works.\r\n<pre class=\"lang:default decode:true\">SELECT * FROM $ \r\nLIMIT 10 --\/\/add this just to test how fast you can get 10 rows\r\nWITH(\r\n  Filter='$.LargeArray[*]--FAST' --\/\/Adding --FAST option turn on STREAM mode (large files)\r\n ,SRC='https:\/\/zappysys.com\/downloads\/files\/test\/large_file_100k_largearray_prop.json.gz'\r\n --,SRC='c:\\data\\large_file.json.gz'\r\n ,IncludeParentColumns='False'  --\/\/This Must be OFF for STREAM mode (read very large files)\r\n ,FileCompressionType='GZip' --Zip or None (Zip format only available for Local files)\r\n)<\/pre>\r\n&nbsp;<\/div>\n<h2>Calling SOAP Web Service in Talend<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3870\">To call SOAP API you need to know Request XML Body Structure.\u00a0If you are not sure how to create SOAP Request body then no worries. <a href=\"https:\/\/zappysys.com\/blog\/calling-soap-web-service-in-ssis-xml-source\/\" target=\"_blank\" rel=\"noopener\">Check this article<\/a> to learn how to generate SOAP Request body using the Free tool <a href=\"https:\/\/www.soapui.org\/downloads\/latest-release.html\" target=\"_blank\" rel=\"noopener\">SoapUI<\/a>. Basically, you have to use SoapUI to generate Request XML and after that, you can replace parameters as needed in the generated body.\r\n<h3>What is SOAP Web Service?<\/h3>\r\nIf you are new to SOAP Web Service sometimes referred as XML Web Service then please read some concept\u00a0about\u00a0SOAP\u00a0Web service standard <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/ms996507.aspx?f=255&amp;MSPPError=-2147217396\" target=\"_blank\" rel=\"noopener\">from this link<\/a>\r\n\r\nThere are two important aspects in SOAP Web service.\r\n<ol>\r\n \t<li>Getting WSDL file or URL<\/li>\r\n \t<li>Knowing exact Web Service URL<\/li>\r\n<\/ol>\r\n<h3>What is WSDL<\/h3>\r\nIn very simple term WSDL (often pronounced as whiz-dull) is nothing but a document which describes Service metadata (e.g. Functions you can call, Request parameters, response structure etc). Some service simply give you WSDL as xml file you can download on local machine and then\u00a0analyze or sometimes you may get direct URL (e.g. http:\/\/api.mycompany.com\/hr-soap-service\/?wsdl )\r\n<h3>Example SQL Query for SOAP API call using ZappySys XML Driver<\/h3>\r\nHere is an example SQL query you can write to call SOAP API. If you not sure about many details then check next few sections on how to use XML Driver User Interface to build desired SQL query to POST data to XML SOAP Web Service without any coding.\r\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH(\r\n\t Src='http:\/\/www.holidaywebservice.com\/HolidayService_v2\/HolidayService2.asmx'\r\n\t,DataConnectionType='HTTP'\r\n\t,CredentialType='Basic' --OR SoapWss\r\n\t,SoapWssPasswordType='PasswordText'\r\n\t,UserName='myuser'\r\n\t,Password='pass$$w123'\r\n\t,Filter='$.soap:Envelope.soap:Body.GetHolidaysAvailableResponse.GetHolidaysAvailableResult.HolidayCode[*]'\r\n\t,ElementsToTreatAsArray='HolidayCode'\t\r\n\t,RequestMethod='POST'\t\r\n\t,Header='Content-Type: text\/xml;charset=UTF-8 || SOAPAction: \"http:\/\/www.holidaywebservice.com\/HolidayService_v2\/GetHolidaysAvailable\"'\r\n\t,RequestData='\r\n&lt;soapenv:Envelope xmlns:soapenv=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:hol=\"http:\/\/www.holidaywebservice.com\/HolidayService_v2\/\"&gt;\r\n   &lt;soapenv:Header\/&gt;\r\n   &lt;soapenv:Body&gt;\r\n      &lt;hol:GetHolidaysAvailable&gt;\r\n         &lt;!--type: Country - enumeration: [Canada,GreatBritain,IrelandNorthern,IrelandRepublicOf,Scotland,UnitedStates]--&gt;\r\n         &lt;hol:countryCode&gt;UnitedStates&lt;\/hol:countryCode&gt;\r\n      &lt;\/hol:GetHolidaysAvailable&gt;\r\n   &lt;\/soapenv:Body&gt;\r\n&lt;\/soapenv:Envelope&gt;'\r\n)<\/pre>\r\nNow let's look at steps to create SQL query to call SOAP API. Later we will see how to generate code for your desired programming language (e.g. C# or SQL Server)\r\n<h3>Video Tutorial - Introduction to SOAP Web Service and SoapUI tool<\/h3>\r\nBefore we dive into details about calling SOAP API using ZappySys XML Driver, lets first understand what is SOAP API and how to create SOAP requests using SoapUI tool. You will learn more about this process in the\u00a0later section. The video contains some fragment about using SOAP API in SSIS but just ignore that part because we will be calling Soap API using ZappySys ODBC Driver rather than SSIS Components.\r\n\r\n&nbsp;\r\n\r\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/d_x5bgGjg0Y?rel=0&amp;showinfo=0\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe>\r\n<h3>Using SoapUI to test SOAP API call \/ Create Request Body XML<\/h3>\r\nAssuming you have downloaded and installed <a href=\"https:\/\/www.soapui.org\/downloads\/latest-release.html\" target=\"_blank\" rel=\"noopener\">SoapUI from here<\/a>, now we are ready to use WSDL for your SOAP Web Service Calls. If you do not have WSDL file or URL handy then contact your API provider (sometimes you just have to add <strong>?wsdl\u00a0<\/strong>at the end of your Service URL to get WSDL so try that. Example: http:\/\/mycompany\/myservice?wsdl ).\r\n\r\nIf you don't\u00a0know what is WSDL then in short, WSDL is <strong>Web service Description Language<\/strong> (i.e. XML file which describes your SOAP Service). WSDL helps to craft SOAP API request Body for ZappySys XML Driver. So Let's get started.\r\n<ol>\r\n \t<li>Open SoapUI and click SOAP button to create new SOAP Project<\/li>\r\n \t<li>Enter WSDL URL or File Path of WSDLFor example WSDL for our sample service can be accessed via this URL\r\n<pre class=\"lang:default highlight:0 decode:true\">http:\/\/www.dneonline.com\/calculator.asmx?wsdl<\/pre>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-import-wsdl-new-soapui-project.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3871\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-14.png\" alt=\"Create new SOAP API Project in SoapUI tool for SOAP API Testing\" width=\"486\" height=\"349\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Create new SOAP API Project in SoapUI tool for SOAP API Testing<\/div><\/li>\r\n \t<li>Once WSDL is loaded you will see possible operations you can call for your SOAP Web Service.<\/li>\r\n \t<li>If your web service requires credentials then you have to configure it. There are two common credential types for public services (<strong>SOAP WSS<\/strong> or <strong>BASIC<\/strong> )\r\n<ol>\r\n \t<li>\r\n<div style=\"margin-bottom: 1em;\">To use <strong>SOAP WSS Credentials<\/strong> select request node and enter UserId, Password, and <strong>WSS-PasswordType<\/strong> (PasswordText or PasswordHash)<\/div>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-pass-soap-wss-credentials-userid-password.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3872 alignnone\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-2.png\" alt=\"Configure SOAP WSS Credentials for SoapUI (SOAP API Testing Tool)\" width=\"294\" height=\"544\" \/><\/a>\r\n<div style=\"display: block;\">Configure SOAP WSS Credentials for SoapUI (SOAP API Testing Tool)<\/div><\/li>\r\n \t<li>To use <strong>BASIC Auth<\/strong> Credentials select request node and double-click it.\u00a0At the bottom click on Auth (Basic) and From Authorization dropdown click Add New and Select Basic.<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-api-pass-basic-authentication-userid-password.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3873\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-2.png\" alt=\"Configure Basic Authorization for SoapUI (SOAP API Testing Tool)\" width=\"616\" height=\"653\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Configure Basic Authorization for SoapUI (SOAP API Testing Tool)<\/div><\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li>Now you can test your request first Double-click on the request node to open request editor.<\/li>\r\n \t<li>Change necessary parameters, remove optional or unwanted parameters. If you want to regenerate request you can click on <strong>Recreate default request toolbar icon<\/strong>.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/06\/create-soap-request-with-optional-parameters-soapui.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2812\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-4.png\" alt=\"Create SOAP Request XML (With Optional Parameters)\" width=\"807\" height=\"315\" \/><\/a>\r\n<div style=\"margin-bottom: 1em;\">Create SOAP Request XML (With Optional Parameters)<\/div><\/li>\r\n \t<li>Once your SOAP Request XML is ready, <strong>Click the Play button<\/strong> in the toolbar to execute SOAP API Request and Response will appear in Right side panel.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soapui-test-soap-api-request-response-edit-xml-body.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3874\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-5.png\" alt=\"Test SOAP API using SoapUI Tool (Change Default XML Body \/ Parameters, Execute and See Response)\" width=\"1216\" height=\"511\" \/><\/a>\r\nTest SOAP API using SoapUI Tool (Change Default XML Body \/ Parameters, Execute and See Response)<\/li>\r\n<\/ol>\r\n<h3>Create DSN using ZappySys XML Driver to call SOAP API<\/h3>\r\nOnce you have tested your SOAP API in SoapUI tool, we are ready to use ZappySys XML driver to call SOAP API in your preferred BI tool or Programming language.\r\n<ol>\r\n \t<li>First open <strong>ODBC Data Sources<\/strong> (search ODBC in your start menu\u00a0or go under ZappySys &gt; ODBC PowerPack &gt; <strong>ODBC 64 bit<\/strong>)<\/li>\r\n \t<li>Goto <strong>System DSN<\/strong> Tab (or User DSN which is not used by Service account)<\/li>\r\n \t<li>Click <strong>Add<\/strong> and Select ZappySys XML Driver\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/zappysys-odbc-xml-soap-api-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3875\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-6.png\" alt=\"ZappySys ODBC Driver for XML \/ SOAP API\" width=\"593\" height=\"459\" \/><\/a>\r\nZappySys ODBC Driver for XML \/ SOAP API<\/li>\r\n \t<li>Configure API URL, Request Method and Request Body as below\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-web-service-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3876\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-7.png\" alt=\"ZappySys XML Driver - Calling SOAP API - Configure URL, Method, Body\" width=\"916\" height=\"874\" \/><\/a>\r\nZappySys XML Driver - Calling SOAP API - Configure URL, Method, Body<\/li>\r\n \t<li><strong>(This step is Optional)<\/strong> If your SOAP API requires credentials then Select Connection Type to HTTP and configure as below.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soap-api-call-credential-basic-soap-wss-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3877\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-8.png\" alt=\"ZappySys XML Driver - Configure SOAP WSS Credentials or Basic Authorization (Userid, Password)\" width=\"564\" height=\"483\" \/><\/a>\r\n<div style=\"display: block;\">ZappySys XML Driver - Configure SOAP WSS Credentials or Basic Authorization (Userid, Password)<\/div><\/li>\r\n \t<li>Configure-Request Headers as below (You can get it from Request &gt; Raw tab from SoapUI after you test the request by clicking the Play button)\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/set-soap-api-request-headers-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3881\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-9.png\" alt=\"Configure SOAP API Request Headers - ZappySys XML Driver\" width=\"1009\" height=\"747\" \/><\/a>\r\nConfigure SOAP API Request Headers - ZappySys XML Driver<\/li>\r\n \t<li>Once credentials entered you can select Filter to extract data from the desired node. Make sure to select array node (see special icon) or select the node which contains all necessary columns if you don't have array node.\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/soap-api-query-select-filter-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3882\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-10.png\" alt=\"Select Filter - Extract data from nested XML \/ SOAP API Response (Denormalize Hierarchy)\" width=\"809\" height=\"594\" \/><\/a>\r\nSelect Filter - Extract data from nested XML \/ SOAP API Response (Denormalize Hierarchy)<\/li>\r\n \t<li>If prompted select yes to treat selected node as Array (This is helpful when you expect one or more record for selected node)\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/xml-api-array-handling-zappysys-xml-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3883\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-11.png\" alt=\"Treat selected node as XML Array Option for SOAP API Response XML\" width=\"655\" height=\"572\" \/><\/a>\r\nTreat selected node as XML Array Option for SOAP API Response XML<\/li>\r\n<\/ol>\r\n<h3>Preview SOAP API Response \/ Generate SQL Code for SOAP API Call<\/h3>\r\nOnce you configure settings for XML Driver now you can preview data or generate example code for desired language (e.g. C#, Python, Java, SQL Server).\r\n\r\nGo to Preview tab and you will see default query generated based on settings you entered in previous sections. Attributes listed in WITH clause are optional. If you omit attribute in WITH clause it will use it from Properties tab.\r\n<h3>Preview Data<\/h3>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/calling-soap-web-service-zappysys-xml-api-driver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3884\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-12.png\" alt=\"Preview SOAP API Response in ZappySys XML Driver\" width=\"808\" height=\"780\" \/><\/a>\r\nPreview SOAP API Response in ZappySys XML Driver\r\n<h3>Generate Code Option<\/h3>\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/zappysys-driver-code-generator.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3885\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-call-soap-api-13.png\" alt=\"Generate Example Code for ZappySys Driver\" width=\"572\" height=\"618\" \/><\/a>\r\n<div style=\"display: block;\">Generate Example Code for ZappySys Driver<\/div><\/div>\n<h2>Conclusion<\/h2>\n<p>In this article, we used ZappySys Drivers to read data from JSON REST API \/ File. You can use same technique to consume SOAP \/ XML API or File. <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\">Try ODBC PowerPack for FREE<\/a> and check out how easy it is to consume virtually any REST \/ SOAP API or Read from JSON \/ XML \/ CSV Files in\u00a0 Talend Open Studio.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this post we will learn how to read \/ write REST API data in Talend Open Studio. We will create a simple Talend Job using ZappySys JSON\u00a0 Driver\u00a0to read from REST API \/ JSON Files and load into Target (e.g. File \/ DB). Techniques listed in this article can be also used to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11136,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[403,277,380,278],"tags":[32,434,6,279,3,67,433,7],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2019-01-12T20:18:31+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2024-08-05T17:37:04+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"177\" \/>\r\n\t<meta property=\"og:image:height\" content=\"178\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/\",\"name\":\"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png\",\"datePublished\":\"2019-01-12T20:18:31+00:00\",\"dateModified\":\"2024-08-05T17:37:04+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png\",\"width\":177,\"height\":178},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog","description":"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/","og_locale":"en_US","og_type":"article","og_title":"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog","og_description":"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).","og_url":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2019-01-12T20:18:31+00:00","article_modified_time":"2024-08-05T17:37:04+00:00","og_image":[{"width":177,"height":178,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/","url":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/","name":"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP) | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png","datePublished":"2019-01-12T20:18:31+00:00","dateModified":"2024-08-05T17:37:04+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Learn how to read \/ write REST API data in Talend Open Studio. Create ETL Jobs to read from JSON \/ XML Files \/ REST API \/ SOAP Service (OAuth, Pagination).","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/01\/talend-logo-2.png","width":177,"height":178},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-write-rest-api-data-in-talend-json-xml-soap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Read \/ Write REST API data in Talend (JSON \/ XML \/ SOAP)"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6012"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=6012"}],"version-history":[{"count":13,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6012\/revisions"}],"predecessor-version":[{"id":11143,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6012\/revisions\/11143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/11136"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=6012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=6012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=6012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}