ODBC XML / SOAP API Driver
Read XML files and SOAP web services with XPath filters and familiar SQL.
Read local XML files or call SOAP web services and REST APIs with plain SQL. Pick the repeating node with an XPath filter, handle OAuth and Basic authentication, and query the data from Power BI, Excel, SSIS, Python or SQL Server, all without writing code.
Included in the Standard edition and above
- Any ODBC-compliant tool
- Runs in your environment
- SQL Server via Data Gateway
- 32-bit and 64-bit

At a glance
What the XML / SOAP API Driver can do
Read XML files and SOAP web services with XPath filters and familiar SQL.
Familiar SQL
Use WHERE, ORDER BY, GROUP BY and built-in math, string, date and JSON functions on top of the data source.
- Standard SELECT syntax
- Custom functions in the SQL dialect
- Driver options in a WITH clause
XML & SOAP
Read XML files and call SOAP web services. Flatten repeating elements into rows.
- XML files and SOAP / REST APIs
- Filter expression to pick the repeating node
- Namespaces and attributes
Security standards
OAuth 1.0 / 2.0, JWT, Basic authentication and TLS 1.2 for secure HTTPS.
- OAuth connection manager
- Custom headers and body
- HTTPS / SSL / TLS 1.2
Multiple files
Read one file or a wildcard set, local or from a URL.
- Wildcard patterns
- Pagination for APIs
- Proxy server support
Works with the tools you have
Any ODBC-compliant tool can use the DSN: Power BI, Tableau, Qlik, SSRS, Informatica, Excel and SSIS.
- Create a DSN once, reuse it everywhere
- 32-bit and 64-bit ODBC
- Stored in the standard ODBC Data Source Administrator
Use it from code
Connect from Java, C#, Python, PowerShell and more with an ODBC connection string that names the DSN.
- Standard ODBC connection strings
- Parameterized queries
- Same SQL as in the UI
SQL Server via Data Gateway
Query the driver from SQL Server (linked server / OPENQUERY) without installing it on the SQL Server machine, through the Data Gateway.
- No driver install on the server
- Works with SQL Server 2012 through 2025 (32/64 bit)
- Same DSN, same SQL
See all features
- Read /write data from XML SOAP / REST API or local XML files using familiar SQL Query language
- De-normalize nested XML into a flat document just like a regular database table
- Integrate insight any ODBC Compliant Reporting / ETL tools (e.g. Power BI, Tableau, Qlik, SSRS, Informatica, Excel, SSIS)
- Support for programming languages such as JAVA, C#, Python, PowerShell and more…
- Tight integration with Microsoft SQL Server (With support for Gateway Option – No need to install Driver on Server)
- Familiar SQL Query language support including WHERE, ORDER BY, GROUP BY constructs
- Support for custom math/ string / datetime functions in SQL query Language
- The unparalleled performance with large file support (See how we processed 3 million rows in 3 mins)
- POST data to API server, Upload File to server (Support MultiPart File Upload).
- Latest security standards such as OData, OAuth and JWT (RFC 7519) (Call services like Google API, Facebook …)
- Call API using Dynamic Token Authenticate or Basic authorization (i.e. UserID / Password)
- Reading from multiple files using wildcard pattern (e.g. Year??_data*.xml)
- Support for Array Flattening (Child Array Items as Columns)
- HTTP Request with Custom Headers / Body / URL Parameters.
- REST API Pagination Support to consume multiple requests / loop (many options explained here and here)
- Support for 2D arrays and Complex Transformation (See this article and this for Google BigQuery)
- Option for Pivoting nested data (Convert Columns to Rows)
- Ability to read raw XML / indent output from inner array
- HTTPS / SSL / TLS 1.2 Support for more secure communication
- Support for passing cookies
- Support for Proxy Server
SQL Server 2012–2025
Ways to use it
Pick how you reach your data.
Configure the DSN once, then query it from any ODBC tool or from SQL Server.
Query XML files with SQL.
Point SRC at a file or wildcard and pick the repeating node.
- Local files and URLs
- Wildcard patterns
- Namespaces

Call a SOAP web service or REST API.
Set the URL, headers and request body (a SOAP envelope for SOAP services).
- SOAP and REST
- Custom headers and body
- OAuth, Basic

Query it from SQL Server with Data Gateway.
Expose the driver through the ODBC PowerPack Data Gateway and create a linked server in SQL Server. The driver does not have to be installed on the SQL Server machine.
- Linked server or OPENQUERY
- No driver install on the server
- Works with SQL Server 2012 through 2025 (32/64 bit)

Inside the UI
The driver UI, step by step.
Real screens from the ZappySys ODBC driver configuration.
Create the DSN
Add a user or system DSN and pick the XML / SOAP API Driver.
SQL example
Write SQL. Get a flat table.
The driver reads local files or Web API responses, flattens the XML and lets you use WHERE, ORDER BY, GROUP BY and functions on top. Below: a sample document, the SQL query and the rows it returns.
-
Sample XML data
A small XML file on disk. Point
SRCat a URL instead and the same query reads a Web API response.<Customers> <Customer><CustomerID>C1</CustomerID><CompanyName>Company 1</CompanyName><City>Atlanta</City></Customer> <Customer><CustomerID>C2</CustomerID><CompanyName>Company 2</CompanyName><City>Boston</City></Customer> <Customer><CustomerID>C3</CustomerID><CompanyName>Company 3</CompanyName><City>Atlanta</City></Customer> </Customers> -
Run the SQL query
SQL Query
SELECT CustomerID, CompanyName FROM $ WHERE City = 'Atlanta' ORDER BY CompanyName WITH ( SRC = @'C:\Data\customers.xml', Filter = '$.Customers.Customer[*]' )Paste the statement into the driver’s Query Editor, or run it from any ODBC tool or language.
WITH (…) clause carries driver options, so a single DSN can read many sources.
-
Rows returned to your tool
CustomerID CompanyName C1 Company 1 C3 Company 3 Connect Power BI, Excel, SSIS, Python or SQL Server to the DSN to get the same rows.
Illustrative input and output. More query samples are in the online help.
SQL query examples
Copy a query, change the source, run it.
19 of the 51 examples from the XML / SOAP API Driver help. Open one to see the SQL.
Read files, API responses and objects as rows.
Query XML API Service
This example shows how to query XML API service. In order to see table list you must populate required connection parameters on the parameter grid
SELECT * FROM "feed.entry"
WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')
Query Single File
This example shows how to query single XML file (For multiple file use wildcard (i.e. *.xml)). This example selects root level hierarchy (i.e $ as table name). Use table selector from toolbar to exact data from different hierarchy (i.e table).
SELECT * FROM $ WITH (SRC='C:\Data\cust-1.xml')
Query Multiple Files
This example shows how to query multiple XML files using wildcard (i.e. *.xml). This example selects root level hierarchy (i.e $ as table name). Use table selector from toolbar to exact data from different hierarchy (i.e table).
SELECT * FROM $
WITH (
SRC='C:\Data\cust*-?.xml'
--,RECURSIVE='True' --Include files from sub folder
)
Query direct XML string (embedded inside query)
This example shows how to query direct XML string embedded inside query. This is useful for testing purpose. In real world this may not be the case because data may be coming from File or URL (API call).
SELECT * FROM [data.row]
WITH (
--enter path in SRC or use static value in DATA'
--SRC='http://some/api/data.xml'
--SRC='C:\somefile.xml'
--SRC='C:\some*.xml'
DATA='
<data>
<row><id>1</id><name>AAA</name></row>
<row><id>2</id><name>BBB</name></row>
</data>'
,ElementsToTreatAsArray='row' --if you don't specify this option then your query may fail when only 1 <row> tag is found (use comma for multiple names e.g. order,item,row).
)
Query OData API Service
This example shows how to query OData API. By specifying DataFormat=’OData’ it will automatically paginate multiple requests for you so you don’t have to worry about additional pagination configuration.
SELECT * FROM "feed.entry" WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders',DataFormat='OData')
Query with static Metadata (META option / Override Mode)
This example shows how to supply custom Metadata rather than relying dynamic metadata detection (based on 300 rows scanning). If you run query you can click on [View Metadata] button to generate default metadata.
SELECT * FROM [data.row]
WITH
(DATA='
<data>
<row><id>1</id><checknumber>0001</checknumber><name>AAA</name></row>
<row><id>2</id><checknumber>0002</checknumber><name>BBB</name></row>
</data>'
--//Method-1: >>>DIRECT META (compact mode)<<<
,META='id:int;checknumber:string(10);name:string(10)'
-- Add: @OverrideMode:1 in the column list to override meta for only specific column(s) - In below example we are changing default datatype/length for id and checknumber, all other columns are dynamic so dont have to supply in META clause
--,META='@OverrideMode:1;id:int;checknumber:string(10)'
--//Method-2: >>>DIRECT META (xml mode)<<<
--,META='[{Name:"id",Type:"Int32"},{Name:"checknumber",Type:"String",Length:10},{Name:"name",Type:"String",Length:10}]'
-- Add: @OverrideMode entry in the column list to override meta for only specific column(s). No need to set Type for that entry - In below example we are changing default datatype/length for id and checknumber, all other columns are dynamic so dont have to supply in META clause
--,META='[{Name:"@OverrideMode"}, {Name:"id",Type:"Int32"},{Name:"checknumber",Type:"String",Length:10}]'
--//Method-3: >>>META from File <<<
--,META='c:\data\meta.xml'
--//Method-4: >>>META from Internal Storage - Just refer entry by name <<<
--,META='MY_META_STORAGE_NAME'
)
Download File from URL (Raw Text) / Write to file / Read from file
This example shows how to read RAW data from URL and then save content to disk file. If you dont specify EnableRawOutputMode flag then parser is not invoked to parse data in rows/column.
SELECT
FILE_WRITE_TEXT( RAW_DOCUMENT,'c:\temp\dump.xml' ) AS ColBytesWritten1 --//text file
--,BASE64_TO_FILE('c:\temp\dump.png', FILE_TO_BASE64('http://httpbingo.org/image/png') ) AS ColBytesWritten2 --//This is how you can for binary file input must be base64 of data
--,FILE_READ_TEXT('c:\temp\dump.txt' ) DiskFileContent
FROM $
WITH(
Src='https://httpbingo.org/xml'
,EnableRawOutputMode='True' --//set this flag to read data as RAW text
)
Authentication, pagination, POST requests and parent/child URL calls.
Basic Authentication (User Id/Password)
This example shows how to query XML API service which requires basic authentication. In order to see table list you must populate required connection parameters on the parameter grid
--Credentials via Query
SELECT * FROM $ WITH (SRC='http://httpbingo.org/xml'
,DataConnectionType='HTTP'
,CredentialType='Basic'
,UserName='user1'
,Password='pass123')
--Credentials inside connection string [Use Data source setup grid >> Select Connection = HTTP (Click Configure) >> Set Credential type=Basic, UserId=user1, Password=pass123]
--SELECT * FROM $ WITH (SRC='http://httpbingo.org/xml')
NTLM / Windows Authentication
This example shows how to query XML API service which requires windows authentication (NTLM).
--Credentials via Query
SELECT * FROM $
WITH (SRC='http://yourhost/some-service',DataConnectionType='HTTP',CredentialType='Ntlm')
--Credentials inside connection string [Use Data source setup grid >> Authentication type=Ntlm]
--SELECT * FROM $ WITH (SRC='http://yourhost/some-service')
OAuth 2.0 Authentication (3-Legged) – Custom API Example
This example shows how to query XML API service which requires OAuth2 authentication.
--Credentials via Query
SELECT * FROM $ WITH (
SRC='http://yourhost/api/some-service'
,DataConnectionType='OAuth'
,UseCustomApp='True'
,OAuthVersion='OAuth2'
,AuthUrl='https://yourhost/api/authorize'
,TokenUrl='https://yourhost/api/token'
,ClientId='xxxxxxxxxxx'
,ClientSecret='xxxxxxxxxxxxx'
,AccessToken='xxxxxxxxxxx'
,RefreshToken='xxxxxxxxxxx' --//This is only obtained from UI by clicking Generate Token Button
)
--Credentials inside connection string [Use Data source setup grid >> Authentication type=OAuth >> Click OAuth Button to configure connection]
SELECT * FROM $ WITH (SRC='http://yourhost/api/some-service')
OAuth 2.0 Authentication (3-Legged) – Google API Example
This example shows how to query Google API using OAuth2 authentication. For demo its using Google Analytics API but you can apply same concept for other OAuth2 compatible Google API.
--Credentials via Query
--Check this link to learn more about how to generate ClientId / ClientSecret >> https://zappysys.com/blog/register-google-oauth-application-get-clientid-clientsecret/
--To get Access Token and Refresh Token >> Goto properties grid >> Change Authentication type=OAuth >> Click OAuth Button to configure connection >> Select Provider='Google' >> Use Custom App >> Select Scope and click Generate Token >> Save tokens to file
SELECT * FROM $ WITH
(
SRC='https://www.googleapis.com/analytics/v3/metadata/ga/columns'
,UseCustomApp='True'
,DataConnectionType='OAuth'
,ServiceProvider='Google'
,ClientId='3855xxxxxx-xxxxxxxxxxxxxxxxx.apps.googleusercontent.com'
,ClientSecret='qF7axxxxxxxxxxxWfs'
,AccessToken='ya29.GlsxxxxxxxxxIam'
,RefreshToken='1/pFOxxxxxxxxxxgU' --//This is only obtained from UI by clicking Generate Token Button
)
--Credentials inside connection string [Use Data source setup grid >> Authentication type=OAuth >> Click OAuth Button to configure connection]
SELECT * FROM $ WITH (SRC='https://www.googleapis.com/analytics/v3/metadata/ga/columns')
Dynamic Token Authentication (2 Steps) – Query SOAP API
This example shows how to call XML SOAP Web Service using Dynamic Token approach. Learn how to authenticate using userid / password to obtain temporary token which can be passed to call API. Also learn how to pass Body, Headers using HTTP POST.
SELECT * FROM $
WITH(
ElementsToTreatAsArray='urn:Row'
,Src='https://zappysys.com/downloads/files/test/soap-getdata.aspx'
,DataConnectionType='HTTP'
,AuthScheme='{none}'
,TokenUrl='https://zappysys.com/downloads/files/test/soap-login.aspx'
,TokenRequestData='
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com">
<soapenv:Body>
<urn:login>
<urn:username>[$userid$]</urn:username>
<urn:password>[$password$]</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>'
,TokenRequestMethod='POST'
,TokenResponseContentFilter='//*[local-name() = ''sessionid'']'
,TokenRequestHeaders='Content-Type:text/xml|Accept:*/*|Cache-Control:no-cache'
,TokenResponseContentType='Xml'
,UserName='MyUser001'
,Password='P@$$w0rdAAc12'
,CredentialType='TokenDynamic'
,Filter='$.soapenv:Envelope.soapenv:Body.urn:Row[*]'
,RequestData='
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com">
<soapenv:Body>
<urn:sessionid>[$token$]</urn:sessionid>
</soapenv:Body>
</soapenv:Envelope>'
,Header='Content-Type: text/xml;charset=UTF-8 || SOAPAction: "https://zappysys.com/soap-getdata" || Accept: */* || Cache-Control: no-cache'
,RequestMethod='POST'
)
Paginate based on URL Parameter (Loop until certain StatusCode)
This example shows how to paginate API calls where you need to pass page number via URL. Driver keeps incrementing page number and calls next URL until last page detected (401 error). There are few ways to indicate last page (e.g.
SELECT * FROM "root.element"
WITH (
SRC='https://zappysys.com/downloads/files/test/page-xml.aspx?page=1&mode=DetectBasedOnResponseStatusCode'
,PagingMode='ByUrlParameter'
,PagingByUrlAttributeName='page'
,PagingByUrlEndStrategy='DetectBasedOnResponseStatusCode'
,PagingByUrlCheckResponseStatusCode=401
,IncrementBy=1
)
Functions, GROUP BY, CASE, UNION, temp tables and more.
Handling Large Dataset / Avoid OutOfMemory Error (Using Disk for Query Engine)
Advanced Query can invokes ClientSide query Engine which means entire table is fetched in memory for processing causing OutOfMemory Exception (OOM). To avoid this error you can specify Disk based Temporary storage for query engine.
SELECT * FROM $
WITH(
Src='https://zappysys.com/downloads/files/test/cust-1.xml?really-large-file=1'
,TempStorageMode='Disk' --or 'Memory'
--OR
--,TempStorageMode=1 --//Memory=0, Disk=1
)
String Manipulation
This example shows how to use string functions. When you use function your entire dataset is first cached locally and then transformation is applied so you may notice some speed degradation.
SELECT
substr('ZappySys', 1, 5)
, printf('%s %s %.2f', 'v1', CompanyName, CompanyId)
, ('Str1' || CompanyName || 'Str2') as ConcatExample
, upper('ZappySys')
, lower('ZappySys')
, replace('ZappySys', 'Sys', 'XYZ')
, instr('ZappySys', 'Sys')
, trim(' Zappy Sys ') trim1
, trim('@@@ZappySys@@@', '@') trim2
, rtrim(' ZappySys ')
, ltrim(' ZappySys ')
, length( CompanyName )
FROM $ WITH (
FILTER='$.Info.Rows[*]',
DATA='
<Info>
<Rows><CompanyId>1000</CompanyId><CompanyName>ZappySys</CompanyName></Rows>
<Rows><CompanyId>1001</CompanyId><CompanyName>Microsoft</CompanyName></Rows>
<Rows><CompanyId>1002</CompanyId><CompanyName>Amazon</CompanyName></Rows>
</Info>
')
Control flow
This example shows how to use math functions. When you use function your entire dataset is first cached locally and then transformation is applied so you may notice some speed degradation.
SELECT
COALESCE(10,20) coalesce1 --returns first non-null arg
,COALESCE(null,20) coalesce2 --returns first non-null arg
,COALESCE(null,20,30,40) coalesce3 --returns first non-null arg
,IFNULL(null,20) --returns first non-null arg. Same function as COALESCE but simple (just two arguments allowed)
,NULLIF(20,20) nullif1 --returns null if both argument same
,NULLIF(10,20) nullif2 --returns null if both argument same
FROM $ WITH (
FILTER='$.Info.Rows[*]',
DATA='
<Info>
<Rows><CompanyId>1000</CompanyId><CompanyName>ZappySys</CompanyName></Rows>
<Rows><CompanyId>1001</CompanyId><CompanyName>Microsoft</CompanyName></Rows>
</Info>
')
Date/Time
This example shows how to use date/time functions. When you use function your entire dataset is first cached locally and then transformation is applied so you may notice some speed degradation. XML driver supports following 5 datetime functions.
SELECT
DATE('now') date_now
,STRFTIME('%Y-%m-%dT%H:%M:%f','now') formatted_Date_time
,DATETIME('now') datetime_now
,DATE('now','localtime') datetime_now_local
,TIME('now') time_now
,JULIANDAY('now')
,DATE('now', 'start of month', '+1 month' , '-1 day' ) dt_modify1
,DATE('now', '+5 day') dt_modify2
FROM $ WITH (
FILTER='$.Info.Rows[*]',
DATA='
<Info>
<Rows><CompanyId>1000</CompanyId><CompanyName>ZappySys</CompanyName></Rows>
<Rows><CompanyId>1001</CompanyId><CompanyName>Microsoft</CompanyName></Rows>
<Rows><CompanyId>1002</CompanyId><CompanyName>Amazon</CompanyName></Rows>
</Info>
')
Math
This example shows how to use math functions. When you use function your entire dataset is first cached locally and then transformation is applied so you may notice some speed degradation.
SELECT
abs(-500)
,random()
,round(1000.236, 2)
FROM $ WITH (
FILTER='$.Info.Rows[*]',
DATA='
<Info>
<Rows><CompanyId>1000</CompanyId><CompanyName>ZappySys</CompanyName></Rows>
<Rows><CompanyId>1001</CompanyId><CompanyName>Microsoft</CompanyName></Rows>
</Info>
')
Regular Expression
This example shows how to regular expression functions.
SELECT
regex_ismatch(SSN, '\d{3}-\d{3}-\d{4}') IsValidSSN, --check pattern found
regex_replace(SSN, '\d','*') MaskedSSN, --search/replace pattern
regex_search(SSN, '\d{4}') SSNLast4Digits, --extract substring using pattern search
regex_search(Email, '(?<name>\w+)@(?<domain>\w+.com)',0, 2) DomainOf1stEmailByIndex, --extract 1st email (zero based index) and get domain name (by group name). For 2nd argument you can use numeric index or named argument. Both arguments are zero based index.
regex_search(Email, '(?<name>\w+)@(?<domain>\w+.com)',2, 2) DomainOf3rdEmailByIndex, --extract 3rd email (zero based index) and get 2nd part of match (i.e. domain name). Both arguments are zero based index.
regex_search('a@x.com | b@y.com | c@z.com', '(?<name>\w+)@(?<domain>\w+.com)','-0', 2) DomainOfLastEmail, --extract last email (use negative sign in quote - zero based index) and get 2nd part of match (i.e. domain name). Both arguments are zero based index.
regex_search(
'a@x.com | b@y.com | c@z.com'
, '(?<name>\w+)@(?<domain>\w+.com)'
, '*' --occurrence match index ( * , N or -N ) negative number will do reverse find (e.g. to get last match use -0 , to get second last use -1)
, 2 --group index from match (default is full match or -1)
--, 0 -- ignore case for pattern match (0=strict match, 1=ignore case, default is 0)
--, 0 -- throw error if not matched 0=don't throw error, 1=throw error
--, '#' -- separator for multi match
) GetAllDomains --extract domains from all emails and show as email (zero based index) and get 2nd part of match (i.e. domain name). Both arguments are zero based index.
FROM $ WITH (Filter='$.data.row[*]', DATA= '<data>
<row><SSN>111-222-4444</SSN><Email>a@x.com | b@y.com | c@z.com</Email></row>
<row><SSN>111-X2Z-AB44</SSN><Email>a@x.com | b@y.com | c@z.com</Email></row>
</data>')
Run the same query from SQL Server or your own code.
SQL Server (linked server)
Query the driver from SQL Server through the Data Gateway. The driver does not have to be installed on SQL Server.
-- SQL Server: create a linked server to the ZappySys Data Gateway (here [ZAPPY_GATEWAY]),
-- then run the driver query through OPENQUERY.
SELECT *
FROM OPENQUERY([ZAPPY_GATEWAY], 'SELECT * FROM "feed.entry"
WITH (SRC=''https://services.odata.org/Northwind/Northwind.svc/Orders'')')
C# (System.Data.Odbc)
using System;
using System.Data.Odbc;
// Use a DSN ("DSN=MyZappyDsn;") or name the driver directly
using (var conn = new OdbcConnection("DRIVER={ZappySys XML Driver};"))
{
conn.Open();
var cmd = new OdbcCommand(@"SELECT * FROM ""feed.entry""
WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')", conn);
using (var rdr = cmd.ExecuteReader())
{
while (rdr.Read())
{
for (int i = 0; i < rdr.FieldCount; i++)
Console.Write("{0}={1} ", rdr.GetName(i), rdr[i]);
Console.WriteLine();
}
}
}
Python (pyodbc)
import pyodbc
# Use a DSN ("DSN=MyZappyDsn;") or name the driver directly
conn = pyodbc.connect("DRIVER={ZappySys XML Driver};")
cursor = conn.cursor()
cursor.execute(r"""
SELECT * FROM "feed.entry"
WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')
""")
for row in cursor.fetchall():
print(row)
conn.close()
PowerShell
$conn = New-Object System.Data.Odbc.OdbcConnection
$conn.ConnectionString = "DRIVER={ZappySys XML Driver};" # or "DSN=MyZappyDsn"
$conn.Open()
$cmd = $conn.CreateCommand()
$cmd.CommandText = @'
SELECT * FROM "feed.entry"
WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')
'@
$table = New-Object System.Data.DataTable
(New-Object System.Data.Odbc.OdbcDataAdapter($cmd)).Fill($table) | Out-Null
$conn.Close()
$table | Format-Table
Java (JDBC through Data Gateway)
// Java uses the ZappySys Data Gateway and the Microsoft SQL Server JDBC driver.
// On the gateway, add a data source (here "MyZappySource") that uses the ZappySys XML Driver.
import java.sql.*;
String url = "jdbc:sqlserver://localhost:5000;databaseName=MyZappySource;user=MyGatewayUser;password=MyPassword;encrypt=false";
String sql = "SELECT * FROM \"feed.entry\"\n"
+ "WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')";
try (Connection conn = DriverManager.getConnection(url);
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery(sql)) {
while (rs.next()) {
System.out.println(rs.getString(1));
}
}
PHP (odbc_connect)
<?php
$conn = odbc_connect("DRIVER={ZappySys XML Driver};", "", ""); // or "DSN=MyZappyDsn"
$sql = <<<'SQL'
SELECT * FROM "feed.entry"
WITH (SRC='https://services.odata.org/Northwind/Northwind.svc/Orders')
SQL;
$rs = odbc_exec($conn, $sql);
while ($row = odbc_fetch_array($rs)) {
print_r($row);
}
odbc_close($conn);
Articles
Guides and tutorials for the XML / SOAP API Driver
Compatibility and requirements
Built for Windows, and for your own environment.
- Windows 11, 10, 8 and 7, and Windows Server 2022, 2019, 2016, 2012 R2 and 2008
- .NET Framework 4.x. The JDBC Bridge Driver also needs Java 8 or later
- 32-bit and 64-bit ODBC drivers. SQL Server 2012 through 2025 through the Data Gateway
- Self-hosted: drivers run in your Windows process, business data does not pass through ZappySys servers, and credentials stay in your DSN
- Free trial of ODBC PowerPack: test with your own data before you buy
FAQ
Questions about the XML / SOAP API Driver
Which tools and languages can use this driver?
Any ODBC-compliant tool, such as Power BI, Tableau, Qlik, SSRS, Informatica, Excel and SSIS. You can also connect from Java, C#, Python, PowerShell and other languages with an ODBC connection string.
Do I need to install the driver on SQL Server?
No. With the Data Gateway option the driver runs on the gateway machine and SQL Server connects to it through a linked server.
Which edition includes the XML / SOAP API Driver?
The XML / SOAP API Driver is included in the Standard, Professional and Enterprise editions of ODBC PowerPack. See the edition comparison for the full list.
Can it call SOAP web services?
Yes. Set the URL and request body, then query the XML response with SQL.
Can I save a query to reuse it?
Yes. Save a query as a virtual table or a stored procedure (custom objects) in the DSN. Tools then see it like a normal table, and a procedure can take parameters. See custom objects in ODBC drivers.
Is there an SSIS version?
Yes. This driver uses the same data engine as the XML Source in SSIS PowerPack.
Which SQL Server and Windows versions are supported?
Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014 and 2012 (32/64 bit) through the Data Gateway. See the system requirements.
Can I try it before buying?
Yes. Download ODBC PowerPack, create a DSN and test your own data before you buy.
Start your free trial today
Install ODBC PowerPack and add a XML / SOAP API Driver DSN.
Preview your data in the driver UI before you connect your tool.
- One DSN, many toolsPower BI, Excel, SSIS, Python and SQL Server can all use it.
- Free trialTest the driver with your own data before you buy.
- Live supportHelp during your trial and after purchase.
Open Help FileBrowse all ODBC PowerPack drivers
New purchases may be eligible for refund review within 30 days. See the refund policy.
Talk to an engineer before or during your trial.