improved use of acceptheaders and content negotiation to resolve issues of endpoints only supporting for instance xml