我尝试使用 REST 服务提取表单的 XML 数据,如下所示:
http://localhost:8080/orbeon/fr/service/mysql/crud/<App-name>/<form-name>/data/<document_id>/data.xml
我首先必须调整properties-local.xml以允许公共(public)访问该服务,现在我可以进入,但服务器返回HTTP 500,并且我看到一个不错的org.orbeon.oxf.common。 ValidationException 被抛出。
在堆栈跟踪中,我看到它尝试执行一些 XSLT 转换,但我只要求 xml 表单数据,所以它不应该这样做。还是我错了?
MySQL 持久层运行良好。
有什么提示吗?
最佳答案
您不能直接调用特定的持久层,因为它们需要接收特殊的配置 header 。相反,调用持久性服务:
http://localhost:8080/orbeon/fr/service/persistence/crud/<App-name>/<form-name>/data/<document_id>/data.xml
持久性服务将所需的内容传递给持久层。
关于mysql - 为什么我会收到 ValidationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19362215/