Example of how the data is structured: https://documentation.n-able.com/remote ... tions_.htm
As far as I know and based on their documentation, I can only get the data as XML from their API. I am currently getting in touch with them to see if JSON is a possibility.
Edit: Confirmed, JSON or other is not possible
I am successfully connecting to the API and fetching all of the workstations as intended. However, I run into a problem if I create the attribute called "device_serial" (this is the serial number of the computer). The process will start fetching workstations and storing them in my BO, however, there is one workstation that lacks a "device_serial" for some reason.
This results in a self-closing XML-tag like this: AwareIM throws an error:
Code: Select all
Service provider returned the following error: null
The consequence is that I can't store the "device_serial" field.
I am pretty confident that this would work fine if the tag was presented as: <device_serial></device_serial>
I have worked with this API before, but it was entirely PHP/HTML/CSS-based.
I don't remember PHP ever having issues reading the XML. Even today it still works without any issue.
TL;DR: Should the AwareIM REST service be able to handle XML data even if it (sometimes, when a field is empty) contains self-closing tags?