genesis-online-js

JS client for the GENESIS SOAP API

Usage no npm install needed!

<script type="module">
  import genesisOnlineJs from 'https://cdn.skypack.dev/genesis-online-js';
</script>

README

GenesisOnline.js

JS client for the Genesis Online SOAP API of regionalstatistik.de

GenesisOnline.js is a client to access the SOAP API of regionalstatistik.de with a familiar, async/await compatible interface.

User Guide

Import a service and directly call any of its methods. Note that the service methods are asynchronous and return promises.

Example with async/await:

import { rechercheService2010 } from  './rechercheService2010Service'

const callService = async () => {
  const response = await rechercheService2010.merkmalsKatalog({
    kennung: '',
    passwort: '',
    kriterium: 'Code',
    filter: '*',
    bereich: 'Alle',
    listenLaenge: '500',
    sprache: 'de',
    typ: 'Wert'
  })
  console.log('Recherche service returned:', response)
}

callService()

Developer Guide

The service wrappers are written in TypeScript and automatically generated from the WSDL descriptions of the SOAP Services.

Use yarn generate to generate the services in directory srcGen

Use yarn build to generate the services and compile to JavaScript along with type definitions in directory. Output will be in directory dist

Use yarn clean to deleted generated services and build files.