1. Create the first folder connection (qName is Connection01 and qType is folder). The UNC path of the folder connection is given in qConnectionString.
The client sends:
{
"jsonrpc": "2.0",
"id": 3,
"method": "CreateConnection",
"handle": 1,
"params": [
{
"qName": "Connection01",
"qMeta": {},
"qConnectionString": "E:\\\\GIT\\\\managedata-sense-fork\\\\prod\\\\data\\\\Engine\\\\test\\\\qlikviewTests\\\\ProtocolTester4Net\\\\TestData\\\\",
"qType": "folder"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"qConnectionId": "4E629259-0909FFC0-153F5CA9-2021D66F-DA67E1C6"
}
}
The first folder connection is created. The identifier of the connection (in qConnectionId) is produced by the engine and is unique.
2. Create the second folder connection (qName is Connection02 and qType is folder). The UNC path of the folder connection is given in qConnectionString.
The client sends:
{
"jsonrpc": "2.0",
"id": 4,
"method": "CreateConnection",
"handle": 1,
"params": [
{
"qName": "Connection02",
"qMeta": {},
"qConnectionString": "E:\\\\GIT\\\\managedata-sense-fork\\\\prod\\\\data\\\\Engine\\\\test\\\\qlikviewTests\\\\ProtocolTester4Net\\\\TestData\\\\",
"qType": "folder"
}
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"qConnectionId": "477DC72D-729BC159-AB5DCF33-D4E2D92B-21436D01"
}
}
The second folder connection is created. The identifier of the connection (in qConnectionId) is produced by the engine and is unique.
3. Get the list of connections and information about each connection.
The client sends:
{
"jsonrpc": "2.0",
"id": 5,
"method": "GetConnections",
"handle": 1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 5,
"result": {
"qConnections": [
{
"qId": "4E629259-0909FFC0-153F5CA9-2021D66F-DA67E1C6",
"qName": "Connection01",
"qConnectionString": "E:\\\\GIT\\\\managedata-sense-fork\\\\prod\\\\data\\\\Engine\\\\test\\\\qlikviewTests\\\\ProtocolTester4Net\\\\TestData\\\\",
"qType": "folder",
"qModifiedDate": "2015-04-20 10:48:09",
"qMeta": {}
},
{
"qId": "477DC72D-729BC159-AB5DCF33-D4E2D92B-21436D01",
"qName": "Connection02",
"qConnectionString": "E:\\\\GIT\\\\managedata-sense-fork\\\\prod\\\\data\\\\Engine\\\\test\\\\qlikviewTests\\\\ProtocolTester4Net\\\\TestData\\\\",
"qType": "folder",
"qModifiedDate": "2015-04-20 10:48:09",
"qMeta": {}
}
]
}
}
The app contains two connections.
The engine returns:
- The creation time of each connection in qModifiedDate
- The identifier of each connection in qId.
- The type of the connection. Both connections are folder connections (qType is folder).
- The name of each connection in qName.
- The connection string in qConnectionString.
4. Get information about the first folder connection (qId is 4E629259-0909FFC0-153F5CA9-2021D66F-DA67E1C6).
The client sends:
{
"jsonrpc": "2.0",
"id": 6,
"method": "GetConnection",
"handle": 1,
"params": [
"4E629259-0909FFC0-153F5CA9-2021D66F-DA67E1C6"
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 6,
"result": {
"qConnection": {
"qId": "4E629259-0909FFC0-153F5CA9-2021D66F-DA67E1C6",
"qName": "Connection01",
"qConnectionString": "E:\\\\GIT\\\\managedata-sense-fork\\\\prod\\\\data\\\\Engine\\\\test\\\\qlikviewTests\\\\ProtocolTester4Net\\\\TestData\\\\",
"qType": "folder",
"qModifiedDate": "2015-04-20 10:48:09",
"qMeta": {}
}
}
}
The name, type, modified date and connection string of the connection are returned.