尝试通过REST API将表单数据作为XML获取

时间:2016-08-23 06:32:07

标签: orbeon

它应该是一件简单的事情,它可能是,但我没有通过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

Form Runner位于: http://localhost:9090/orbeon/fr/

我有什么明显的遗失吗?

由于 诺尔

1 个答案:

答案 0 :(得分:0)

假设您的应用名称为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 databasesRFE to add support for autosave on eXist

相关问题