调用外部 Web 服务来填充动态数据下拉组件

Calling an external web service to populate Dynamic Data Dropdown Component

我正在尝试调用 Web 服务来完成动态数据下拉组件中的项目列表。 我正在关注 get submission page。 我创建了一个 xpl:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
   ...">

<p:param type="input" name="instance" />
<p:param type="output" name="data" />
 
<p:processor name="oxf:xforms-submission">
  <p:input name="submission">
    <xforms:submission method="get" action="myURL"/>
  </p:input>
  <p:input name="request">
    <parameters>
   <param1>admin</param1>
   <param2>password</param2>
    </parameters>
  </p:input>
  <p:output name="response" id="response"/>
</p:processor>

</p:config>

然后我在我的表单中调用它。当我尝试填写表格时,我在 orbeon.log

中看到了这个错误

Fatal error: The prefix "xforms" for element "xforms:submission" is not bound.

我是不是漏掉了什么?

在 XML 中,命名空间前缀必须始终具有命名空间映射。您可以将它放在 XML 管道的根元素上,例如

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xforms="http://www.w3.org/2002/xforms">