@alheimsins/p360
Version:
Wrapper for Public 360 SIF SOAP Web Service from tieto
52 lines (36 loc) • 1.42 kB
Markdown
[](https://travis-ci.com/Alheimsins/p360)
[](https://github.com/feross/standard)
Node wrapper module for Public 360 SIF SOAP Web Service from [Tieto](https://www.tieto.no/)
```bash
$ npm install @alheimsins/p360 --save
```
SI Integration Framework (SIF) is public 360s SOAP-webservice.
For a full list of calls and callbacks see the documentation [here](https://github.com/telemark/skoleskyss-arbeid/blob/master/biztalk/GenericWebServiceLayer.pdf)
## Usage
```JavaScript
(async () => {
const p360 = require('@alheimsins/p360')
const options = {
baseUrl: 'http://server.domain.no:8088/SI.WS.Core/SIF',
username: 'domain/username',
password: 'password'
}
try {
const client = p360(options)
const contactService = await client.ContactService()
// console.log(contactService.describe())
const { result } = await contactService.GetContactPersons({ parameter: { Name: 'Maccyber' } })
console.log(JSON.stringify(result, null, 2))
} catch (error) {
console.error(error)
}
})()
```
[](LICENSE)
Created with <3 by [Alheimsins](https://github.com/Alheimsins)
