Re: Exist REST Problems

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Exist-REST-Problems-tp31201p31227.html

avernet wrote
Hank, Ryan,

Adam on the exit-open list said he will fix this issue "in a few
days". His message:

http://www.nabble.com/Different-content-type-depending-on-POST-or-GET-tf2633473.html#a7367007
As a follow-up on this issue, a work-around is to create a service (XPL declared in page-flow.xpl) which makes the query to eXist using the URL generator. With the URL generator you can use <force-content-type>true</force-content-type>, thus forcing the result to be considered as application/xml even if eXist incorrectly says it is text/html. Here is the pipeline I used:

exist-query.xpl

And in page-flow.xml, I have:

<page path-info="/common/exist/*" matcher="oxf:glob-matcher" view="/common/exist-query.xpl"/>

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/