Webservice Response Handler

Webservice Response Handlers process data sent to and received from external webservices to forward and process the response and its associated data.

The Webservice Response Handlers are executed when data is sent to an external webservice.See: Send data to an external web service

This allows the response and the associated data to be processed and forwarded to various other locations. The data in the first parameter is an object that contains the following keys:

  • status_code: The HTTP status code from the called interface
  • response: The response from the interface
  • data: The evaluation data that was sent to the interface.
{
  "status_code": 200,
  "response": "transfer successful",
  "data": [
    {
      "Probe": "P01",
      "Bezeichnung": "Glutprobe 1"
    },
    {
      "Probe": "P02",
      "Bezeichnung": "Glutprobe 2"
    }
  ]
}

Example for a JavaScript Handler:

function transform (data) {
  axios.post('https://USER:PASSWORT@labordatenbank.com/X/imports/import/X/0/https',
    data.data.map(d => {
      ...d,
      status_code: d.status_code
    })
  )
}

In this case, the return value is irrelevant, as this code is currently only intended to forward data to another interface.

Continue with: Import transformation code

Laatste wijziging: 21.08.2026

Algemeen

Leveranciersbeoordeling

Materiaal

Medewerkers

Klanten

Opdrachten

Monsters

PDF-sjablonen

Bijlagen

Recepten

Verslagen

Editor voor rapporttabellen

Interfaces

Kompetenzen

AI-functies

Inleidende fase

Analyses

Sjablonen

Klantenportaal (optioneel)

Aanbiedingen

Facturen

Parameters

Rekenwerk met parameters

Webservices

Transformatiecode

Controleplannen / Grenswaarden / Specificaties

Documentbeheer

Vragen en antwoorden

Testmiddelen

Opleidingen voor medewerkers

8D-rapport

Overige

Bestandsbeheer

Processen