Changed headers from text/json to application/xml