I am trying to acces an axis web service in RESTful way using HTTP POST method.
Axis 2 documentation says
"Axis2 server, if REST is enabled, will act as both a REST endpoint and a SOAP endpoint. When a message is received, if the content type is text/xml and if the SOAPAction Header is missing, then the message is treated as a RESTful Message, if not it is treated as a usual SOAP Message."
folloiwng this i am using Content-Type as "text/xml" . This cause the axis to give exception saying message should be wrapped in soap:Envelope.
It works fine if I use "application/xml" as the Content-Type.
Is it a bug? or wrong documentation. Or am I missing some setting?