{"id":3450,"date":"2018-05-08T21:01:37","date_gmt":"2018-05-08T21:01:37","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=3450"},"modified":"2019-10-03T18:38:34","modified_gmt":"2019-10-03T18:38:34","slug":"read-json-informatica-import-rest-api-json-file","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/","title":{"rendered":"Read JSON in Informatica &#8211; Import REST API \/ SOAP \/ JSON File"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3454 alignleft\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\" alt=\"Informatica PowerCenter Logo\" width=\"108\" height=\"108\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png 200w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo-150x150.png 150w\" sizes=\"(max-width: 108px) 100vw, 108px\" \/><\/a>JSON \/ REST API is becoming more and more popular each day as everyone embrace cloud-centric\u00a0services. This article is primarily focused on Informatica users who want to do <strong>XML SOAP\/\u00a0JSON \/ REST API Integration in Informatica<\/strong>. However many tips and techniques described in this article will help you to understand how to integrate XML SOAP \/ JSON \/ REST API in other ETL \/ Reporting apps such as Tableau, Power BI, SSRS, Talend, Excel and many more.<\/p>\n<p>After going through this article you will learn\u00a0<strong>how to\u00a0Read JSON in Informatica <\/strong>and understand the <strong>concept of JSON \/ REST API<\/strong>. We will go through many screenshots and step-by-step examples to demonstrate\u00a0\u00a0<strong>JSON File or REST API integration in Informatica PowerCenter.<\/strong><\/p>\n<p>XML \/ JSON can come from a local file or REST API service (internal or public) so we will include both examples in this article (i.e. Read JSON files in Informatica,\u00a0\u00a0Import REST API in Informatica). So let&#8217;s get started. Next article will focus on <a href=\"https:\/\/zappysys.com\/blog\/post-data-api-informatica-using-sql-transformation\/\" target=\"_blank\" rel=\"noopener\">how to write data to API in Informatica (POST \/ PUT data)<\/a><\/p>\n<h2>Requirements<\/h2>\n<p>This article assumes that you have full filled following basic requirements.<\/p>\n<ol>\n<li>Download Install <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys ODBC PowerPack<\/a> (Drivers for JSON and REST API)<\/li>\n<li>Install Informatica PowerCenter Client Tools (e.g. Workflow and Mapping Designers)<\/li>\n<li>Access to a Relational database such as SQL Server (or use any of your choice e.g. Oracle, MySQL, DB2 ). If nothing available then you can use flat file target.<\/li>\n<\/ol>\n<h2>How to Import JSON data using Informatica (Read JSON Files or REST API)<\/h2>\n<p>Before we dive deep to learn how to load JSON data in Informatica (JSON to SQL Table), Here the summary of high-level steps you need to perform to import JSON Files or REST API in Informatica.<\/p>\n<ol>\n<li>Download and Install <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys JSON ODBC Driver<\/a> (for JSON Files and REST API)<\/li>\n<li>Create ODBC DSN using ZappySys JSON driver for your API Service (You can override most of the DSN settings via SQL Query at runtime)<\/li>\n<li>Create Relational &gt; <strong>ODBC<\/strong> Connection in <strong>Informatica Workflow designer<\/strong> (Point to JSON DSN we created in the\u00a0previous step)<\/li>\n<li>Import JSON Source Definition in the <strong>Informatica Mapping Designer<\/strong> &gt; <strong>Sources Tab<\/strong><\/li>\n<li>Import Target Table\u00a0Definition\u00a0in the <strong>Informatica Mapping Designer<\/strong> &gt; <strong>Targets Tab<\/strong><\/li>\n<li>Create source to target mapping in Mappings tab<\/li>\n<li>Save mapping (name <strong>m_API_to_SQL_Load<\/strong> )<\/li>\n<li>Create Session using the mapping we created in the previous step<\/li>\n<li>Save Workflow and execute to load JSON data into SQL Table. Verify your data and log.\n<div id=\"attachment_3475\" style=\"width: 730px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3475\" class=\"wp-image-3475 size-medium_large\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-768x379.png\" alt=\"Loading JSON data to SQL Table in Informatica (Import REST API or JSON Files)\" width=\"720\" height=\"355\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-768x379.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-300x148.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-1024x505.png 1024w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import.png 1164w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-3475\" class=\"wp-caption-text\">Loading JSON data to SQL Table in Informatica (Import REST API or JSON Files)<\/p><\/div><\/li>\n<\/ol>\n<h2>Video Tutorial &#8211; Read JSON in Informatica (Load JSON to SQL Table)<\/h2>\n<p>By watching following ~5 min video can learn steps listed in this article to load JSON API data into SQL Server Table using <strong>ZappySys JSON Driver<\/strong>. You can go though full article to learn many useful details not covered in this video.<\/p>\n<div class=\"lyte-wrapper fourthree\" style=\"width:480px;max-width:100%;margin:5px auto;\"><div class=\"lyMe qsa_\\&amp;showinfo\\=0\" id=\"WYL_TaKp9Tewbr0\"><div id=\"lyte_TaKp9Tewbr0\" data-src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FTaKp9Tewbr0%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC hidden\"><div class=\"tT\"><\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/TaKp9Tewbr0\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTaKp9Tewbr0%2F0.jpg\" alt=\"\" width=\"480\" height=\"340\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:480px;margin:5px auto;\"><\/div><\/p>\n<h2>Getting Started &#8211; Import JSON to SQL Server in Informatica<\/h2>\n<p>Now let&#8217;s get started. For example purpose, we will read data from OData JSON based REST API service and load data into SQL Server Table using Informatica Workflow.<\/p>\n<h3>Create ODBC DSN using ZappySys JSON Driver<\/h3>\n<p>The first step to read from JSON File or REST API Service in Informatica is to create ODBC DSN.<\/p>\n<ol>\n<li>Search for ODBC in your start menu and open <strong>ODBC Data Sources (64bit)<\/strong>. You can also find same under ZappySys &gt; ODBC PowerPack &gt; ODBC Data Sources (64bit)<\/li>\n<li>When ODBC UI shows up, Go to System tab.<\/li>\n<li>Click on <strong>Add<\/strong><\/li>\n<li>Select <strong>ZappySys JSON Driver<\/strong> from the list and click Finish.\n<div id=\"attachment_3457\" style=\"width: 578px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/create-odbc-dsn-for-informatica-json-file-rest-api-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3457\" class=\"size-full wp-image-3457\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/create-odbc-dsn-for-informatica-json-file-rest-api-connection.png\" alt=\"Create New DSN for JSON File or REST API - Use ZappySys JSON Driver\" width=\"568\" height=\"504\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/create-odbc-dsn-for-informatica-json-file-rest-api-connection.png 568w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/create-odbc-dsn-for-informatica-json-file-rest-api-connection-300x266.png 300w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/a><p id=\"caption-attachment-3457\" class=\"wp-caption-text\">Create New DSN for JSON File or REST API &#8211; Use ZappySys JSON Driver<\/p><\/div><\/li>\n<li>When Configuration UI enter the\u00a0following URL for Data source. You can also enter JSON File path here too but for this example, we will use OData REST API (JSON Format). Click Test to confirm its working. This API doesn&#8217;t use any credentials but in the real world, you may have credentials (e.g. OAuth creds using Key \/ Secret or Basic Auth using UserID \/ Password).\u00a0Below URL is default URL for your DSN. You can always override URL and other settings from SQL Query using WITH Clause (<a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/json-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">see examples<\/a>)\n<pre class=\"lang:default decode:true\">https:\/\/services.odata.org\/V3\/Northwind\/Northwind.svc\/Invoices?$format=json<\/pre>\n<div id=\"attachment_3458\" style=\"width: 724px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-odbc-dsn.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3458\" class=\"wp-image-3458 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-odbc-dsn.png\" alt=\"Configure ODBC DSN - Import JSON in Informatica (REST API or JSON Files)\" width=\"714\" height=\"742\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-odbc-dsn.png 714w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-odbc-dsn-289x300.png 289w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/a><p id=\"caption-attachment-3458\" class=\"wp-caption-text\">Configure ODBC DSN for JSON Data<\/p><\/div><\/li>\n<li>Optionally one more setting you can change is Under <strong>Other settings<\/strong> &gt;&gt;&gt;\u00a0\u00a0<strong>Date data type<\/strong> set option to <strong>Convert to DateTime (Timezone lost)<\/strong>. If you don&#8217;t do this then OrderDate field or any other Date Field will be detected as nstring in Informatica. Later in this section, we will show you how to convert nstring to DateTime using Expression Transform (TO_DATE function).<\/li>\n<li>Now switch to Preview Tab and try some sample queries to learn more about API driver. For example, you can try some with simple queries like below. For more advanced queries <a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/json-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">read this help file<\/a>.<strong>Read from root level (include all attributes)<\/strong>\n<pre class=\"lang:tsql decode:true\">select * from $<\/pre>\n<p><strong>Read from an\u00a0array (value tag)<\/strong><\/p>\n<pre class=\"lang:tsql decode:true\">select * from value\r\n--OR--\r\nselect * from $ WITH (Filter='$.value[*]')<\/pre>\n<p><strong>Override URL (Supply different URL than entered in ODBC DSN UI)<\/strong><\/p>\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH (SRC='https:\/\/api.hubapi.com\/contacts\/v1\/lists\/all\/contacts\/all?hapikey=demo&amp;count=20', \r\nFilter='$.contacts[*]')<\/pre>\n<\/li>\n<li>Click on <strong>View Examples<\/strong> to check other example queries\n<div id=\"attachment_3469\" style=\"width: 696px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-rest-api-query-examples.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3469\" class=\"size-full wp-image-3469\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-rest-api-query-examples.png\" alt=\"ODBC JSON Driver Query Preview - Informatica JSON Query Examples (Read REST API or JSON Files)\" width=\"686\" height=\"789\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-rest-api-query-examples.png 686w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-rest-api-query-examples-261x300.png 261w\" sizes=\"(max-width: 686px) 100vw, 686px\" \/><\/a><p id=\"caption-attachment-3469\" class=\"wp-caption-text\">ODBC JSON Driver Query Preview &#8211; Informatica JSON Query Examples (Read REST API or JSON Files)<\/p><\/div><\/li>\n<li>Click OK to save your DSN Properties.<\/li>\n<li>Click OK to close ODBC Data SOurces UI.<\/li>\n<\/ol>\n<h3>Create Connection in Informatica Workflow Designer<\/h3>\n<p>Once you create DSN using JSON Driver our next step is to define a connection for JSON source in Informatica PowerCenter Workflow designer.<\/p>\n<ol>\n<li>Open Workflow designer [W] icon<\/li>\n<li>Goto <strong>Connections<\/strong> &gt; <strong>Relational<\/strong>\n<div id=\"attachment_3471\" style=\"width: 342px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-designer-create-connection-for-json-file-rest-api.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3471\" class=\"size-full wp-image-3471\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-designer-create-connection-for-json-file-rest-api.png\" alt=\"Create new connection for JSON in Informatica\" width=\"332\" height=\"182\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-designer-create-connection-for-json-file-rest-api.png 332w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-designer-create-connection-for-json-file-rest-api-300x164.png 300w\" sizes=\"(max-width: 332px) 100vw, 332px\" \/><\/a><p id=\"caption-attachment-3471\" class=\"wp-caption-text\">Create a\u00a0new connection for JSON in Informatica<\/p><\/div><\/li>\n<li>Click <strong>New<\/strong> and select ODBC\n<div id=\"attachment_3472\" style=\"width: 424px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-create-odbc-connection-json-file-rest-api.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3472\" class=\"size-full wp-image-3472\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-create-odbc-connection-json-file-rest-api.png\" alt=\"Select ODBC connection type in Informatica (Using ZappySys JSON ODBC DSN)\" width=\"414\" height=\"478\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-create-odbc-connection-json-file-rest-api.png 414w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-create-odbc-connection-json-file-rest-api-260x300.png 260w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><p id=\"caption-attachment-3472\" class=\"wp-caption-text\">Select ODBC connection type in Informatica (Using ZappySys JSON ODBC DSN)<\/p><\/div><\/li>\n<li>Now on the ODBC connection setup enter connection name, some <strong>fake userid \/ password<\/strong> (this is a required field but its ignored by JSON Driver)<\/li>\n<li>In the <strong>Connection String<\/strong> field enter the exact same name of DSN (Open ODBC Data Sources UI to confirm)\n<div id=\"attachment_3473\" style=\"width: 480px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-connection-for-json-file-rest-api.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3473\" class=\"size-full wp-image-3473\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-connection-for-json-file-rest-api.png\" alt=\"Configure JSON connection in Informatica for REST API \/ JSON File connectivity - Using ZappySys JSON ODBC Driver\" width=\"470\" height=\"560\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-connection-for-json-file-rest-api.png 470w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-connection-for-json-file-rest-api-252x300.png 252w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/a><p id=\"caption-attachment-3473\" class=\"wp-caption-text\">Configure JSON connection in Informatica for REST API<br \/>\/ JSON File connectivity &#8211; Using ZappySys JSON ODBC Driver<\/p><\/div><\/li>\n<li>Click OK to close the connection properties.<\/li>\n<\/ol>\n<p>That&#8217;s it. Now we ready to move to next step (define source and target in Mapping Designer).<\/p>\n<h3>Import JSON Source Definition in Informatica Mapping Designer<\/h3>\n<p>Now let&#8217;s look at steps to import JSON source table definition.<\/p>\n<ol>\n<li>Open Informatica Mapping Designer (Click [D] icon)<\/li>\n<li>Click on Source Icon to switch to Sources designer<\/li>\n<li>From the <strong>top menu<\/strong> &gt; Click on <strong>Sources<\/strong> &gt; <strong>Import from Database<\/strong> &#8230;\n<div id=\"attachment_3476\" style=\"width: 533px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-source-definition.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3476\" class=\"size-full wp-image-3476\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-source-definition.png\" alt=\"Import JSON Source definition in Informatica Mapping Designer (JSON file or REST API)\" width=\"523\" height=\"224\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-source-definition.png 523w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-source-definition-300x128.png 300w\" sizes=\"(max-width: 523px) 100vw, 523px\" \/><\/a><p id=\"caption-attachment-3476\" class=\"wp-caption-text\">Import JSON Source definition in Informatica Mapping Designer (JSON file or REST API)<\/p><\/div><\/li>\n<li>Select ODBC data source from the dropdown (Find out DSN we created earlier to use as JSON Source)<\/li>\n<li>Click Connect button to get a list of tables. Any array node is listed as a table. Also, you will see array node with parent columns (e.g. value_with_parent). You may get some warning like below but they are harmless so just ignore by clicking OK.<br \/>\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;\">DLL name entry missing from C:\\Informatica\\PowerCenter8.6.1\\client\\bin\\powrmart.ini Section = ODBCDLL Entry = ZappySys JSON Driver<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nUsing EXTODBC.DLL to support ZappySys JSON Driver. For native support of ZappySys JSON Driver make an entry in the .ini file.<\/div><\/div>\n<div id=\"attachment_3477\" style=\"width: 580px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-source-json-select-table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3477\" class=\"size-full wp-image-3477\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-source-json-select-table.png\" alt=\"Select JSON Source Table in Informatica Mapping Designer (JSON file or REST API)\" width=\"570\" height=\"335\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-source-json-select-table.png 570w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-source-json-select-table-300x176.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/a><p id=\"caption-attachment-3477\" class=\"wp-caption-text\">Select JSON Source Table in Informatica Mapping Designer (JSON file or REST API)<\/p><\/div><\/li>\n<li>Select Table you wish to get (You can filter rows by custom SQL query. We will see later in this article how to do)<\/li>\n<li>Optionally once table structure is imported you can rename it\n<div id=\"attachment_3478\" style=\"width: 606px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-rename-source-table-name.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3478\" class=\"size-full wp-image-3478\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-rename-source-table-name.png\" alt=\"Rename imported table definition in Informatica Source Designer\" width=\"596\" height=\"431\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-rename-source-table-name.png 596w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-rename-source-table-name-300x217.png 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/a><p id=\"caption-attachment-3478\" class=\"wp-caption-text\">Rename imported table definition in Informatica Source Designer<\/p><\/div><\/li>\n<li>That&#8217;s it, we are now ready to perform similar steps to import Target table structure in the next section.<\/li>\n<\/ol>\n<h3>Import SQL Server Target Definition in Informatica Mapping Designer<\/h3>\n<p>Now let&#8217;s look at steps to import Target table definition (very similar to the previous section, the only difference is this time we will select DSN which points to SQL Server or any other Target Server). For example purpose, we will use following table structure as our SQL Server Table. If its missing you can create one.<\/p>\n<pre class=\"lang:tsql decode:true \">CREATE TABLE [dbo].[Tbl_Invoices](\r\n\t[ShipName] [nvarchar](40) NULL,\r\n\t[ShipAddress] [nvarchar](60) NULL,\r\n\t[ShipCity] [nvarchar](15) NULL,\r\n\t[ShipRegion] [nvarchar](15) NULL,\r\n\t[ShipPostalCode] [nvarchar](10) NULL,\r\n\t[ShipCountry] [nvarchar](15) NULL,\r\n\t[CustomerID] [nchar](5) NULL,\r\n\t[CustomerName] [nvarchar](40) NULL,\r\n\t[Address] [nvarchar](60) NULL,\r\n\t[City] [nvarchar](15) NULL,\r\n\t[Region] [nvarchar](15) NULL,\r\n\t[PostalCode] [nvarchar](10) NULL,\r\n\t[Country] [nvarchar](15) NULL,\r\n\t[Salesperson] [nvarchar](31) NULL,\r\n\t[OrderID] [int] NULL,\r\n\t[OrderDate] [datetime] NULL,\r\n\t[RequiredDate] [datetime] NULL,\r\n\t[ShippedDate] [datetime] NULL,\r\n\t[ShipperName] [nvarchar](40) NULL,\r\n\t[ProductID] [int] NULL,\r\n\t[ProductName] [nvarchar](40) NULL,\r\n\t[UnitPrice] [money] NULL,\r\n\t[Quantity] [smallint] NULL,\r\n\t[Discount] [real] NULL,\r\n\t[ExtendedPrice] [money] NULL,\r\n\t[Freight] [money] NULL\r\n)<\/pre>\n<p>Now lets look at steps to import target table definition in Informatica mapping designer.<\/p>\n<ol>\n<li>In the Mapping Designer, Click on Target Icon to switch to Target designer<\/li>\n<li>From the <strong>top menu<\/strong> &gt; Click on <b>Targets\u00a0<\/b>&gt; <strong>Import from Database<\/strong> &#8230;<\/li>\n<li>Select DSN for your Target server (if DSN doesn&#8217;t exist then create one by opening ODBC Sources just like we created one for JSON API source (see the previous section about creating DSN).\n<div id=\"attachment_3480\" style=\"width: 535px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3480\" class=\"size-full wp-image-3480\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition.png\" alt=\"Import target Table Definition in informatica\" width=\"525\" height=\"224\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition.png 525w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition-300x128.png 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><p id=\"caption-attachment-3480\" class=\"wp-caption-text\">Import target Table Definition in informatica<\/p><\/div><\/li>\n<li>Enter your userid , password and Schema name and click Connect to see tables<\/li>\n<li>Select Table name to and click OK import definition.\n<div id=\"attachment_3479\" style=\"width: 579px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition-select-table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3479\" class=\"size-full wp-image-3479\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition-select-table.png\" alt=\"Import Target SQL Table Definition in Informatica - Select table from the list\" width=\"569\" height=\"386\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition-select-table.png 569w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-sql-server-target-definition-select-table-300x204.png 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/a><p id=\"caption-attachment-3479\" class=\"wp-caption-text\">Import Target SQL Table Definition in Informatica &#8211; Select table from the list<\/p><\/div><\/li>\n<\/ol>\n<h3>Create Source to Target Mapping in Informatica (Import JSON to SQL Server)<\/h3>\n<p>Once you have imported source and target table definition, we can create mapping and transformation to load data from JSON to SQL Table.<\/p>\n<ol>\n<li>First open Mapping Designer (Click [D] icon)<\/li>\n<li>Drag JSON Source from sources folder<\/li>\n<li>Drag SQL Table from Targets folder<\/li>\n<li>Map desired columns from Source to target\n<div id=\"attachment_3482\" style=\"width: 1136px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3482\" class=\"size-full wp-image-3482\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file.png\" alt=\"Define Source to Target mapping for JSON to SQL Table load in Informatica\" width=\"1126\" height=\"565\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file.png 1126w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file-300x151.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file-768x385.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-json-to-sql-server-data-load-mapping-rest-api-json-file-1024x514.png 1024w\" sizes=\"(max-width: 1126px) 100vw, 1126px\" \/><\/a><p id=\"caption-attachment-3482\" class=\"wp-caption-text\">Define Source to Target mapping for JSON to SQL Table load in Informatica<\/p><\/div><\/li>\n<li>For certain columns you may have to do datatype conversion. For example to convert OrderDate form nstring to DataTime you have to use Expression Transform like below and map it to target. In below example, our JSON has date format (e.g. <strong>2018-01-31 12:00:00 AM<\/strong> ). To import this to DateTime field in SQL server we need to convert it using TO_DATE function. Use double quotes around T to make this format working.\n<pre class=\"lang:tsql decode:true \">TO_DATE(OrderDate,'YYYY-MM-DD H12:MI:SS AM')\r\n\r\n--For ISO use below way\r\nTO_DATE(OrderDate,'YYYY-MM-DD\"T\"HH24:MI:SS')<\/pre>\n<div id=\"attachment_3481\" style=\"width: 1037px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3481\" class=\"size-full wp-image-3481\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format.png\" alt=\"Informatica JSON to SQL Table Mapping - Datatype conversion (nstring to datetime) \" width=\"1027\" height=\"508\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format.png 1027w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format-300x148.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format-768x380.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-import-json-to-sql-datetime-convert-iso-format-1024x507.png 1024w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/a><p id=\"caption-attachment-3481\" class=\"wp-caption-text\">Informatica JSON to SQL Table Mapping &#8211; Datatype conversion (nstring to datetime)<\/p><\/div><\/li>\n<li>Once you done with mapping save your mapping and name it (i.e. m_Api_To_SQL)<\/li>\n<li>Now lets move to next section to create workflow.<\/li>\n<\/ol>\n<h3>Create Workflow and Session in Informatica<\/h3>\n<p>Now the final step is to create a new workflow. Perform following steps to create workflow which with a session task to import JSON data into SQL table.<\/p>\n<ol>\n<li>Open workflow designer by click [W] icon.<\/li>\n<li>Launch new workflow creation wizard by <strong>click Workflow top menu<\/strong> &gt;\u00a0 <strong>Wizard<\/strong><br \/>\nname your workflow (e.g. wf_Api_Tp_Sql_Table_Import)<\/p>\n<div id=\"attachment_3484\" style=\"width: 662px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-workflow-import-json-api-to-sql-table-wizard.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3484\" class=\"size-full wp-image-3484\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-workflow-import-json-api-to-sql-table-wizard.png\" alt=\"Creating Informatica Workflow - Wizard UI (Import JSON data to SQL Table)\" width=\"652\" height=\"516\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-workflow-import-json-api-to-sql-table-wizard.png 652w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-workflow-import-json-api-to-sql-table-wizard-300x237.png 300w\" sizes=\"(max-width: 652px) 100vw, 652px\" \/><\/a><p id=\"caption-attachment-3484\" class=\"wp-caption-text\">Creating Informatica Workflow &#8211; Wizard UI (Import JSON data to SQL Table)<\/p><\/div><\/li>\n<li>Finish the wizard and double-click the Session to edit some default\u00a0properties.<\/li>\n<li>First change Error settings so we fail session on error (By default its always green)\n<div id=\"attachment_3485\" style=\"width: 404px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-session-stop-on-error.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3485\" class=\"size-full wp-image-3485\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-session-stop-on-error.png\" alt=\"Fail Informatica Session on error (JSON to SQL Load)\" width=\"394\" height=\"381\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-session-stop-on-error.png 394w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-session-stop-on-error-300x290.png 300w\" sizes=\"(max-width: 394px) 100vw, 394px\" \/><\/a><p id=\"caption-attachment-3485\" class=\"wp-caption-text\">Fail Informatica Session on error (JSON to SQL Load)<\/p><\/div><\/li>\n<li>Select JSON connection for Source\n<div id=\"attachment_3486\" style=\"width: 740px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-json-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3486\" class=\"size-full wp-image-3486\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-json-connection.png\" alt=\"Select JSON Source Connection in Informatica - JSON File \/ REST API Load to SQL Table\" width=\"730\" height=\"661\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-json-connection.png 730w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-json-connection-300x272.png 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><p id=\"caption-attachment-3486\" class=\"wp-caption-text\">Select JSON Source Connection in Informatica &#8211; JSON File \/ REST API Load to SQL Table<\/p><\/div><\/li>\n<li>Change default Source query if needed. You can pass parameters to this query to make it dynamic.\n<div id=\"attachment_3487\" style=\"width: 746px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-call-rest-api-pass-parameters-runtime-dynamic-sql.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3487\" class=\"size-full wp-image-3487\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-call-rest-api-pass-parameters-runtime-dynamic-sql.png\" alt=\"Modify JSON Source SQL query - Pass parameters, change URL, set filter etc\" width=\"736\" height=\"712\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-call-rest-api-pass-parameters-runtime-dynamic-sql.png 736w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-call-rest-api-pass-parameters-runtime-dynamic-sql-300x290.png 300w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/a><p id=\"caption-attachment-3487\" class=\"wp-caption-text\">Modify JSON Source SQL query &#8211; Pass parameters, change URL, set filter etc<\/p><\/div><\/li>\n<li>Select Target connection of\u00a0SQL Target Table\n<div id=\"attachment_3488\" style=\"width: 830px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-sql-target-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3488\" class=\"size-full wp-image-3488\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-sql-target-connection.png\" alt=\"Select SQL Target Connection in Informatica - JSON File \/ REST API Load to SQL Table\" width=\"820\" height=\"647\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-sql-target-connection.png 820w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-sql-target-connection-300x237.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-create-workflow-session-configure-sql-target-connection-768x606.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><p id=\"caption-attachment-3488\" class=\"wp-caption-text\">Select SQL Target Connection in Informatica &#8211; JSON File \/ REST API Load to SQL Table<\/p><\/div><\/li>\n<li>Save workflow<\/li>\n<li>That&#8217;s it. We ready to run our first workflow to load JSON data to SQL.<\/li>\n<\/ol>\n<h3>Execute Workflow and Validate Log in Informatica<\/h3>\n<p>Now once you are\u00a0done with your workflow, execute it to see the log.<\/p>\n<div id=\"attachment_3475\" style=\"width: 1174px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3475\" class=\"size-full wp-image-3475\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import.png\" alt=\"Loading JSON data to SQL Table in Informatica (Import REST API or JSON Files)\" width=\"1164\" height=\"574\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import.png 1164w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-300x148.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-768x379.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-execution-log-json-to-sql-import-1024x505.png 1024w\" sizes=\"(max-width: 1164px) 100vw, 1164px\" \/><\/a><p id=\"caption-attachment-3475\" class=\"wp-caption-text\">Loading JSON data to SQL Table in Informatica (Import REST API or JSON Files)<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>Import JSON Files in Informatica (Single or multiple)<\/h2>\n<p>So far we have seen an example of loading JSON REST API in Informatica but loading JSON files are pretty much same process. Rather than URL, you have to specify JSON file path as Data source.<\/p>\n<p>ZappySys JSON Driver is capable of reading from JSON file, REST API, and embedded JSON string.<\/p>\n<p><strong>Reading JSON data from single File Informatica<\/strong><\/p>\n<p>select * from $ (SRC=&#8217;c:\\data\\customer_2015.json&#8217;, Filter=&#8217;$.rows[*]&#8217;)<\/p>\n<p><strong>Reading JSON data from multiple Files in Informatica<\/strong><\/p>\n<p>select * from $ (SRC=&#8217;c:\\data\\customer_*.json&#8217;, Filter=&#8217;$.rows[*]&#8217;)<\/p>\n<p><strong>Reading JSON data from embedded string<\/strong><\/p>\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $ \r\nWITH \r\n(\r\nFilter='$.rows[*]',\r\nDATA='\r\n{          \r\n  rows : [\r\n        {id:1, name: \"AAA\"}, \r\n        {id:2, name: \"BBB\"}, \r\n        {id:3, name: \"CCC\"}\r\n  ]\r\n}'\r\n)<\/pre>\n<p>&nbsp;<\/p>\n<h2>Import XML Files in Informatica<\/h2>\n<p>Reading from XML files or API can be done using the same way as previous sections except you have to use ZappySys XML Driver. Read help file here to <a href=\"https:\/\/zappysys.com\/onlinehelp\/odbc-powerpack\/scr\/xml-odbc-driver-sql-query-examples.htm\" target=\"_blank\" rel=\"noopener\">see examples<\/a>.<\/p>\n<h2>POST data to REST API in\u00a0Informatica<\/h2>\n<p>There will be a time when you like to send Source data to REST API or SOAP Web Service. You can use below Query for example. For detailed explanation on how to <a href=\"https:\/\/zappysys.com\/blog\/post-data-api-informatica-using-sql-transformation\/\" target=\"_blank\" rel=\"noopener\">POST data in Informatica check this article<\/a>.<\/p>\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH \r\n(METHOD='POST' \r\n,HEADER='Content-Type:text\/plain || x-hdr1:AAA'\r\n,SRC='http:\/\/httpbin.org\/post'\r\n,BODY='{ data of body goes here }'\r\n)<\/pre>\n<h3>Video Tutorial &#8211; How to POST data to REST API in Informatica<\/h3>\n<p>Here is detailed step by step video on REST API POST in informatica PowerCenter<\/p>\n<div class=\"lyte-wrapper fourthree\" style=\"width:480px;max-width:100%;margin:5px auto;\"><div class=\"lyMe\" id=\"WYL_MKekE5w0rCk\"><div id=\"lyte_MKekE5w0rCk\" data-src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FMKekE5w0rCk%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\"><\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/MKekE5w0rCk\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMKekE5w0rCk%2F0.jpg\" alt=\"\" width=\"480\" height=\"340\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:480px;margin:5px auto;\"><\/div><\/p>\n<p>&nbsp;<\/p>\n<h2>Upload file to REST API in\u00a0Informatica<\/h2>\n<p>Above example was POST data to API URL but what if your Request Body is large and you have saved that to file? Well here is the way to get your request body from a file (Use @ symbol before path and add IsMultiPart=&#8217;True&#8217;). Refer to this post to\u00a0<a href=\"https:\/\/zappysys.com\/blog\/rest-api-file-upload-using-ssis-multi-part-post\/\" target=\"_blank\" rel=\"noopener\">learn more about Raw Upload and Multi-Part Upload<\/a><\/p>\n<pre class=\"lang:tsql decode:true\">SELECT * FROM $\r\nWITH \r\n(METHOD='POST' \r\n,HEADER='Content-Type:text\/plain || x-hdr1:AAA'\r\n,SRC='http:\/\/httpbin.org\/post'\r\n,BODY='@c:\\files\\dump.xml'\r\n,IsMultiPart='True'\r\n)\r\n<\/pre>\n<h2>Calling XML SOAP Web Service in Informatica<\/h2>\n<p>So far we have looked at examples to consume data using JSON driver. Now lets look at an example, to call XML SOAP Web Service in Informatica.<\/p>\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>REST API Pagination in Informatica<\/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>Error Handling in REST API<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-3894\">Sometimes errors occur... they just do and there is nothing you can do! Or can you? Actually, in ODBC PowerPack you can handle them in two ways.\r\n<h3>METHOD 1 - Using Error Handling Options<\/h3>\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3949\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-error-handling-1.png\" alt=\"\" width=\"668\" height=\"702\" \/>\r\n<h4>When to use?<\/h4>\r\nYou may want to use them when your source is a resource located\u00a0on\u00a0the Internet; e.g. a file on a website, a file on an FTP server or just a plain API HTTP response. By default, when a remote server returns an error, data retrieval is stopped, an error is raised and no data is given back to you. This might not be always desirable.\r\n<h4>Scenario 1<\/h4>\r\nImagine a scenario, that there is a\u00a0web server which\u00a0each day at 12 AM releases a new JSON file with\u00a0that day's date as filename, e.g. <span style=\"text-decoration: underline;\"><em>http:\/\/www.some-server.com\/data\/2018-06-20.json<\/em><\/span>. And, of course, you want to download it and use it daily in your Power BI report. But you have a problem: Power BI report data sources are\u00a0refreshed each\u00a0hour and you may get\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP_404\" target=\"_blank\" rel=\"noopener\">HTTP 404 status code<\/a>\u00a0(no file was found) when a\u00a0file is not released yet. Which consequentially means other data sources won't be updated as well and you will see old and cached data on the report. That's where\u00a0you could use\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue on any error<\/span><\/strong>\u00a0or <strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue when Url is invalid or missing (404 Errors)<\/span><\/strong>\u00a0to avoid an error being raised and let other data sources to be updated.\r\n<h4>Scenario 2<\/h4>\r\nAnother scenario is when you expect a web server to raise some kind of HTTP error when accessing a URL. You don't want ODBC Data Source to raise an error but instead, you want to get response data. That's where you can use\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Continue on any error<\/span><\/strong>\u00a0or alike together with\u00a0\u00a0<strong><span class=\"lang:default highlight:0 decode:true crayon-inline\">Get response data on error<\/span><\/strong>\u00a0to continue on an error and get the data:\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3961 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error.png\" alt=\"\" width=\"547\" height=\"235\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error.png 547w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-powerpack-get-response-data-on-error-300x129.png 300w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/>\r\n<h3>METHOD 2 - Using Connection [Retry Settings]<\/h3>\r\nAnother scenario you may run into is a buggy web server. You ask it to give you some file or data and it, like a snotty kid, just doesn't give it to you! You have to ask twice or thrice before it does its job. If that's the case, you have to retry HTTP requests using <em>Connection<\/em>:\r\n\r\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3963 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/06\/odbc-api-error-handling-3.png\" alt=\"\" width=\"671\" height=\"572\" \/><\/div>\n<h2>Performance consideration for REST API<\/h2>\n<p>Coming soon&#8230;<\/p>\n<h2>Security\u00a0consideration for\u00a0REST API<\/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>Conclusion<\/h2>\n<p>Consuming data from JSON files or REST API in Informatica can be challenging but not to worry anymore. Using ZappySys JSON Driver you get most innovative JSON processing engine which not only processes\/denormalizes nested JSON but also gives you 100+ Options to cover almost any API processing scenario. You can use this driver to consume data in any ODBC compliant app (i.e. Tableau, Power BI, Excel) and Programming Languages (i.e. C#, Java, Python, PHP). <a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/\">Click here to Download a FREE trial of ZappySys ODBC PowerPack<\/a> and learn how to perform JSON \/ API integration in Informatica\u00a0without any coding.<\/p>\n<h2>Keywords<\/h2>\n<p>how to import json file in informatica |\u00a0how to read json file in informatica powercenter |\u00a0how to test json from informatica |\u00a0how to use jsaon file as source in informatica power center |\u00a0how to use json in informatica 10 |\u00a0informatica how to import data from rest api |\u00a0informatica jtx to import json file (use of java transformation) |\u00a0informatica plugin for restful api using json |\u00a0informatica power center and json support |\u00a0informatica read json files |\u00a0informatica rest api\u00a0|\u00a0informatica rest api connector |\u00a0json parser import informatica<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction JSON \/ REST API is becoming more and more popular each day as everyone embrace cloud-centric\u00a0services. This article is primarily focused on Informatica users who want to do XML SOAP\/\u00a0JSON \/ REST API Integration in Informatica. However many tips and techniques described in this article will help you to understand how to integrate XML [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3454,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[336,277,276,278],"tags":[32,75,6,279,3,7],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Read JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding\" \/>\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-json-informatica-import-rest-api-json-file\/\" \/>\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 JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/\" \/>\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=\"2018-05-08T21:01:37+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2019-10-03T18:38:34+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"200\" \/>\r\n\t<meta property=\"og:image:height\" content=\"200\" \/>\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=\"14 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-json-informatica-import-rest-api-json-file\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/\",\"name\":\"Read JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\",\"datePublished\":\"2018-05-08T21:01:37+00:00\",\"dateModified\":\"2019-10-03T18:38:34+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png\",\"width\":200,\"height\":200,\"caption\":\"Informatica PowerCenter Logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Read JSON in Informatica &#8211; Import REST API \/ SOAP \/ JSON File\"}]},{\"@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 JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog","description":"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding","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-json-informatica-import-rest-api-json-file\/","og_locale":"en_US","og_type":"article","og_title":"Read JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog","og_description":"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding","og_url":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2018-05-08T21:01:37+00:00","article_modified_time":"2019-10-03T18:38:34+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.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":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/","url":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/","name":"Read JSON in Informatica - Import REST API \/ SOAP \/ JSON File | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png","datePublished":"2018-05-08T21:01:37+00:00","dateModified":"2019-10-03T18:38:34+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Learn how to read JSON in Informatica. Using ZappySys JSON Driver you can parse \/ import from JSON files or read from REST API in Informatica without coding","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/05\/informatica-powercenter-logo.png","width":200,"height":200,"caption":"Informatica PowerCenter Logo"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-json-informatica-import-rest-api-json-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Read JSON in Informatica &#8211; Import REST API \/ SOAP \/ JSON File"}]},{"@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\/3450"}],"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=3450"}],"version-history":[{"count":25,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/3450\/revisions"}],"predecessor-version":[{"id":8095,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/3450\/revisions\/8095"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/3454"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=3450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=3450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=3450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}