【问题标题】:Orbeon XForms - How to replace part of an instance with values from a SOAP responseOrbeon XForms - 如何用 SOAP 响应中的值替换实例的一部分
【发布时间】:2015-06-17 08:58:23
【问题描述】:

我的模型中有一个实例,其中包含一个空白部分,我需要将其替换为 SOAP Web 服务调用的响应。

<xf:instance id="fr-form-instance" xxf:exclude-result-prefixes="#all">
  <form>
     <SomeElement />
     <SoapResponse />
     <AnotherElement />
  </form>
</xf:instance >

我通过触发器调用 Web 服务,我希望响应替换我实例中的“SoapResponse”元素。

【问题讨论】:

    标签: xml xpath orbeon xforms


    【解决方案1】:

    我想您已经编写了自己的xf:submission,并且服务调用的结果会发送到其他实例,例如soap-response。假设是这种情况,您可以在 xforms-submit-done 上运行 xf:insert 将响应的内容从 soap-response 实例复制到 fr-form-instance 实例中的 &lt;SoapResponse /&gt; 元素。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多