Dear Mahender,
we have decided to support both text/xml and application/xml as consumed types for POST and PUT. If you are interested in a snapshot, feel free to tell us, or check out our "basex" and "basex-api" packages in the repository. The changes will be available in the next minor release.
Christian
On Wed, Nov 3, 2010 at 9:28 PM, Christian Grün christian.gruen@gmail.com wrote:
If I attempt to create a resource using PUT or POST using XForms Submission mechanism, it fails because by default, XForms Submissions use application/xml as content-type, but BaseX expects text/xml. BaseX actually fails the request if given application/xml!
Would like BaseX to support XForms - XForms default submission mediatypes are listed at http://www.w3.org/TR/xforms11/#submit-options
That's an interesting suggestion. We have come across other use cases in which text/xml was the preferred content-type, but it could be reasonable to add application/xml to be conformant with the XForms requirements (this is going to happen pretty soon, as we've just extended some other REST features).
More feedback is welcome, Christian