Login  Register

How to wrap a text/plain response to xforms:submission so it becomes XML

Posted by Mahender Didwania on Dec 17, 2010; 10:58pm
URL: https://discuss.orbeon.com/How-to-wrap-a-text-plain-response-to-xforms-submission-so-it-becomes-XML-tp3093245.html

Hi,

I work with an XML DB which, for certain operations, returns non-XML text/plain responses.  Those operations are invoked using xforms submissions processor and I get this error in the logs:

ERROR XFormsServer  -                   xforms-submit-error - setting throwable {throwable: "org.orbeon.oxf.xforms.submission.XFormsSubmissionException:  (processing instance replacement): Body received with non-XML media type for replace="instance": text/plain
null, line -1, column -1: Body received with non-XML media type for replace="instance": text/plain

Also, as a side-effect, the document which was submitted using xforms:submissions is populated in the response.  I actually want to send the text/plain status response I receive from XML DB as the pipeline output.

I tried replace="text" targetref="/" on the submission but that does not help.

Any pointers on how to make xforms submissions processor happy with non-XML responses?

Thanks,
Mahender.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws