这应该是一件很简单的事情,而且很可能是这样,但是我并没有通过Orbeon文档中描述的REST API来获得草稿表单的XML数据。
我对properties-local-dev.xml文件进行了以下更改:
<property
as="xs:string"
processor-name="oxf:page-flow"
name="page-public-methods"
value="GET HEAD POST"/>
<property
as="xs:string"
processor-name="oxf:page-flow"
name="service-public-methods"
value="GET HEAD"/>
<property
as="xs:anyURI"
name="oxf.fr.persistence.exist.exist-uri"
value="/exist/rest/db/orbeon/fr"/>
<page public-methods="GET HEAD POST" view="view.xpl"/>
<service public-methods="GET HEAD" view="view.xpl"/>然后我尝试了不同的URL来调用数据:
http://localhost:9090/orbeon/exist/rest/db/orbeon/fr/gsmn/hello-world/draft/f025a471b2c8452dd65267cc5886063d995757f5/data.xml
http://localhost:9090/orbeon/crud/gsmn/hello-world/draft/f025a471b2c8452dd65267cc5886063d995757f5/data.xml
http://localhost:9090/orbeon/fr/service/persistence/crud/gsmn/hello-world/draft/f025a471b2c8452dd65267cc5886063d995757f5/data.xml表单运行器位于:http://localhost:9090/orbeon/fr/
有什么明显的我遗漏了什么吗?
谢谢Noel
发布于 2016-08-24 06:37:08
假设你的应用程序名是gsmn,表单名是hello-world,那么你提到的最后一个网址(为了清楚起见,复制在下面)应该可以用。
http://localhost:9090/orbeon/fr/service/persistence/crud/gsmn/hello-world/draft/92aad35a44876b3bfac3b4d6f835130fbd1fe19e/data.xml
但是,最有可能的是,问题是您正在尝试使用eXist,并且在撰写本文时,eXist上的Orbeon Forms还不支持自动保存功能;它只在关系数据库上受支持。有关这方面的更多信息,请参阅support matrix for different databases和RFE to add support for autosave on eXist。
https://stackoverflow.com/questions/39093880
复制相似问题