Hi ShridharHegde-2034,
As you described, the web service returns XML array, while .getJSON() sends the accept JSON header, it expects a JSON result, it appears you rest API does not support JSON format. So you may need to Use $.get(). the result will be an XML dom and you need to convert it to JSON.
Best Regards,
Baker Kong