Renamed function to not reflect JSON exclusively
Added XML support and Stub for ECS endpoint