You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`itoolkit` is a Node.js interface to [XMLSERVICE](https://github.com/IBM/xmlservice) to access all things IBM i.
9
+
`itoolkit` is a Node.js interface to [XMLSERVICE](https://github.com/IBM/xmlservice) to access all things [IBM i](https://en.wikipedia.org/wiki/IBM_i).
10
10
11
11
# Table of Contents <!-- omit in toc -->
12
+
-[Introduction](#introduction)
12
13
-[Installation](#installation)
13
-
-[Main Classes](#main-classes)
14
-
-[Connection](#connection)
15
-
-[Transports](#transports)
16
-
-[idb-connector](#idb-connector)
17
-
-[REST](#rest)
18
-
-[SSH](#ssh)
19
-
-[ODBC](#odbc)
20
-
-[ProgramCall](#programcall)
21
-
-[Example](#example)
22
-
-[CommandCall](#commandcall)
23
-
-[Example](#example-1)
14
+
-[Features](#features)
24
15
-[Documentation](#documentation)
25
-
-[Testing](#testing)
16
+
-[Tests](#tests)
26
17
-[Contributing](#contributing)
27
18
-[License](#license)
28
19
29
-
# Installation
30
-
31
-
Before installing, download and install Node.js
32
-
33
-
```sh
34
-
$ npm i itoolkit@alpha
35
-
```
20
+
# Introduction
36
21
37
-
## Main Classes
22
+
[XMLSERVICE](https://github.com/IBM/xmlservice) provides interfaces to interact with IBM i resources such as programs and commands. XMLSERVICE receives xml input and returns xml output.
38
23
39
-
### Connection
40
-
The Connection class is used to transport xml input and return xml output.
24
+
For example run a CL command by sending the following XML input to XMLSERVICE.
41
25
42
-
#### Transports
43
-
Supported transports include [idb-connector](https://github.com/IBM/nodejs-idb-connector), REST, SSH, and ODBC.
44
-
45
-
##### idb-connector
46
-
The [idb-connector](https://github.com/IBM/nodejs-idb-connector) transport establishes a database connection and calls XMLSERVICE stored procedure.
47
-
48
-
**NOTE** the `idb-connector` transport is only supported on an IBM i system.
49
-
50
-
To use the `idb-connector` transport create an instance of Connection with:
The SSH transport executes `xmlservice-cli` program via ssh.
95
-
96
-
Ensure you have OpenSSH installed on your IBM i system.
97
-
98
-
Also `xmlservice-cli` is required on the IBM i host with:
99
-
100
-
`yum install itoolkit-utils`
101
-
102
-
The [ssh2](https://www.npmjs.com/package/ssh2#client-methods) client module is used to connect and supports both private key and password authentication.
103
-
104
-
To use the `SSH` transport with private key authentication create an instance of Connection with:
CommandCall is used to execute a CL, QSH, or PASE command.
210
76
211
-
#### Example
212
-
```javascript
213
-
const {
214
-
Connection, CommandCall,
215
-
} =require('itoolkit');
77
+
The purpose of this package is to simplify the process of creating XMLSERVICE input, invoking XMLSERVICE, and returning XMLSERVICE output from Node.js.
0 commit comments