Currently, the MessageServlet that ships with ActiveMQ (used by the REST API) ignores the body of HTTP POST requests if the content type is NOT "text/xml". This results in empty messages being sent to target destinations.
For my particular needs, it would be nice if "text/plain" were allowed because I'm hoping to use the REST API for posting text messages from a VXML voice/web application. However, the VXML platform I'm using only supports "text/plain" content type (not XML or JSON) and the VXML standard itself does not specify which content type(s) should be supported in this case.
Anyway, I'm not sure if supporting the "text/plain" content type conflicts with REST principles, but I believe at a minimum "application/json" should be allowed along with "text/xml" in the POST request (not just the response).