Sam van de Kreeke
Last updated: 27-08-2020
XML can be used to transfer data between applications. To be able to send XML data from you Betty Blocks application, you'll need a Webservice. Go to Webservices through the Tool menu in the Builder Bar.
Create a new Webservice for your XML. Instead of selecting the JSON option at the Request Content-Type, keep it on Other. For the Response Content-Type, select the XML or Other option, both work in most cases.
These settings are required when setting one up:
Your Webservice should look something like the following:
Create a new Endpoint for your Webservice. Change the Http method to a POST method and fill in a name and path. At the bottom of the form, you’ll find a dropdown for Template. Select New to create your own XML template. Rename it to your liking and create the XML body. It should look something like the following:
Add an endpoint to the Webservice. (Top right subview). Insert at least:
The XML will be placed in the template of the endpoint. Give a small description, place the XML and hit save. Learn about creating variable XML data here.
After you have successfully created your Webservice Endpoint, you can test it by clicking the Run Test button in the top right corner of your Webservice Endpoint. This should look something like the following: