-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtst.js
28 lines (26 loc) · 942 Bytes
/
tst.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const dsfLookup = require('./index.js')
const config = {
url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
// PROD url: 'http://ws.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',
namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',
distribusjonskanal: 'PTP',
systemnavn: 'minelev',
brukernavn: 'T00UTKF', // Integrasjonsbruker DSF
passord: 'TRAMP121'
}
const method = 'hentDetaljer'
const query = {
saksref: 'minelev',
foedselsnr: '01010750160', // comment out the one not needed
foedselsdato: "010107", // comment out the one not needed
etternavn: 'TOPSTAD',
fornavn: 'TOMAS'
}
const options = {
method,
config,
query
}
dsfLookup(options)
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(error => console.error(error))