@axway-api-builder-ext/api-builder-plugin-fn-xml-node

Axway API-Builder flow node to handle XML-Payload. For instance converting XML into JSON or JS-Objects.

Usage no npm install needed!

<script type="module">
  import axwayApiBuilderExtApiBuilderPluginFnXmlNode from 'https://cdn.skypack.dev/@axway-api-builder-ext/api-builder-plugin-fn-xml-node';
</script>

README

Build Status

API-Builder XML-Flow node

Use this extension to add an XML-Flow node to your Axway API-Builder project. With that you can convert XML-Payload you may have received from a backend stream (e.g. a SOAP-Service) into a Javascript Object for further processing or directly into a JSON-String. That allows you to easily merge data from different sources and formats into a JSON-Based-REST-API.
The Flow-Node is based on the XML-JS Library.

Convert XML to JSON

After have installed the XML-Node into your API-Builder project, Drag & Drop the XML-Node into your flow and select the method: XML to JSON. You get the following configuration options:
XML Node Settings
Provide the XML data should be converted into JSON using either a Selector or a plain XML-String. Secondly you can decide if you would like to have a Javascript Object or the JSON-Payload as String.

Convert JSON to XML

This is not yet supported!

Install

After creating your API Builder service (api-builder init), you can install this plugin using npm:

npm install --no-optional @axway-api-builder-ext/api-builder-plugin-fn-xml-node

After installation start the API-Builder project and you get the following node:
XML Node

Changelog

See Change-Log

Limitations/Caveats

  • JSON to XML not yet supported

Contributing

Please read Contributing.md for details on our code of conduct, and the process for submitting pull requests to us.

Team

alt text Axway Team

License

Apache License 2.0