Adding assets using CMDB API - Throws a 3001 unknown error

Adding assets using CMDB API - Throws a 3001 unknown error

I've been trying to add CI Assets using the CMDB API, the XML input works fine when working with the web interface at the REST API Documentation. I'm getting a unknown error - Error when processing request - null when I use the sample scripts provided. Attaching a screenshot - can someone help me out with this? 

The JSON posts seem to be working fine, is this an issue with the XML input format? 

                  New to ADSelfService Plus?