GetMetabaseDrivers

Syntax

MbDalDriversResult GetMetabaseDrivers(MbDalDriversArg tArg)

Parameters

tArg. Drivers list selection parameters.

Description

The GetMetabaseDrivers operation gets a list of drivers that can be used to connect to repositories.

Comments

To execute the operation, in the tArg field specify drivers list selection parameters.

The operation results in the obtained list of drivers.

Example

Below is the example of getting the list of drivers that can be used to connect to repositories. The request contains whether the drivers that can be used in the operating system are obtained without the WSF driver developed in the system. The response contains the obtained list of drivers.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetMetabaseDrivers xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
  <isPublic>true</isPublic>
  </tArg>
  </GetMetabaseDrivers>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetMetabaseDriversResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<drivers xmlns="">
<Item>
  <name>Oracle</name>
  <id>ORCL8</id>
  <tech>1</tech>
  <version>8</version>
  </Item>
<Item>
  <name>Microsoft SQL Server</name>
  <id>MSSQL2012</id>
  <tech>2</tech>
  <version>3</version>
  </Item>
<Item>
  <name>Microsoft SQL Server (ODBC)</name>
  <id>MSSQL2012ODBC</id>
  <tech>2</tech>
  <version>4</version>
  </Item>
<Item>
  <name>PostgreSQL</name>
  <id>POSTGRES</id>
  <tech>8</tech>
  <version>0</version>
  </Item>
<Item>
  <name>SQLite</name>
  <id>SQLITE</id>
  <tech>11</tech>
  <version>0</version>
  </Item>
  </drivers>
  </GetMetabaseDriversResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetMetabaseDrivers": {
"tArg": {
"isPublic": "true"
}
}
}

JSON response:

{
"GetMetabaseDriversResult": {
"drivers": {
"Item": [
{
"name": "Oracle",
"id": "ORCL8",
"tech": "1",
"version": "8"
},
{
"name": "Microsoft SQL Server",
"id": "MSSQL2012",
"tech": "2",
"version": "3"
},
{
"name": "Microsoft SQL Server (ODBC)",
"id": "MSSQL2012ODBC",
"tech": "2",
"version": "4"
},
{
"name": "PostgreSQL",
"id": "POSTGRES",
"tech": "8",
"version": "0"
},
{
"name": "SQLite",
"id": "SQLITE",
"tech": "11",
"version": "0"
}
]
}
}
}
public static MbDalDriversResult GetMetabaseDrivers()
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetMetabaseDrivers()
{
tArg = new MbDalDriversArg()
{
isPublic = true
}
};
// Get list of drivers
var result = somClient.GetMetabaseDrivers(tGet);
return result;
}

See also:

Working with Relational Objects of Repository