0.5.0 • Published 3 years ago

@lippmann/bwwebservice v0.5.0

Weekly downloads
45
License
UNLICENSED
Repository
github
Last release
3 years ago

bwwebservice

Overview

This is a Node.js module available through the npm registry.

The bwwebservice module allows you to send converted JSON requests as SOAP XML to your bwwebservice. The XML response is parsed to valid JSON included coverting Strings, Numbers, Booleans, Arrays and Objects to JSON format.

Webservice specific API functions are experimentally included but not documented yet.

Installation

Installation is done using the npm install command:

npm install @lippmann/bwwebservice

Initialisation

const { Webservice } = require('@lippmann/bwwebservice');

const ws = Webservice({
  baseURL: '',
  funcURL: '',
  url: ''
});

Request Scheema

const response = await ws.req(funcName, requestBody);
ParameterType
funcNamestring
requestBodyObject

Example request

const response = await ws.req('getAdress', {
  KdNr: '14979',
  Nachname: '',
  Vorname: ''
});

Build your own API functions

const getAdress = async (KdNr: string) => {
  return await ws.req('getAdress', {
    KdNr,
    Nachname: '',
    Vorname: ''
  });
}

const adresse = await getAdress('14979');
0.5.0-3

3 years ago

0.5.0-2

3 years ago

0.5.0

3 years ago

0.5.0-1

3 years ago

0.5.0-0

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.3.1

4 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago