rest work for application/xml type