Hi Alan,
The XML-API native functions (
here) will be straight forward. You don't need to parse a "statusmsg" to know if you can trust the "status".
cPanel APIs are a little different:
API2 cPanel calls made via the XML-API can mostly be trusted. Typically if a call fails, it will set a contextual error that is recognized by the XML-API engine, which in turn sets an 'error' in the XML response structure. Some calls will set their own "status" or "result" node within their dataset (the "result" or "data" node).
API1 is like API2, but it will not set the contextual error internally, and therefore you're dependent on the call returning something useful in it's dataset...which for some functions can be difficult. API1 calls where (mostly) designed for frontend use and simply return strings (or HTML). The XML-API engine can't do much with that...Additionally, API1 calls often print directly to STDOUT, which can not be trapped effectively and shoved into an XML response. The result is that API1 calls often send mal-formed XML and we highly encourage people to not use API1 if there is an API2 alternative (and to create a feature request or submit a ticket when they encounter such issues).
I'm curious as to how you are making your call and the full response output of your call. Please post or PM me (feel free to hash-out your private data).
Best Regards,
-DavidN