Add content-type headers and set response format to xml