[Corona] 404.xqy - error config parameter suggestion
Scott.Stafford at marklogic.com
Thu Dec 15 08:37:21 PST 2011
FYI email, candidate for a wiki update
I'm using Excel web queries to pull data through Corona. If the endpoint is not found, by default Corona returns JSON. Excel barfs on JSON.
In /corona/misc/404.xqy, want to change the common:error function call to return xml instead of json. This might be a candidate to make this configurable by an admin user.
common:output(common:error("corona:ENDPOINT-NOT-FOUND", "Invalid endpoint. Check path and parameters for errors.", xdmp:get-request-field("outputFormat", "xml")))
Scott A. Stafford
scott.stafford at marklogic.com<mailto:scott.stafford at marklogic.com>
Cell: +1 703-216-9459
This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Corona