来自Orbeon表单的WebService调用

时间:2012-07-06 18:56:27

标签: web-services orbeon xforms

请点击带有xforms或orbeon表单的按钮,帮助您获取Web服务调用和处理响应的示例代码。

2 个答案:

答案 0 :(得分:0)

请求:

<xforms:instance id="ws-request-instance">     <!-- Field XML Instance -->                          
                                            <soapenv:Envelope>
                                               <soapenv:Header/>
                                               <soapenv:Body>

                                               </soapenv:Body>
                                            </soapenv:Envelope>
                            </xforms:instance>

回复模板:

                            <xforms:instance id="ws-response-instance">  <!-- Field XML Instance -->                          
                                            <soapenv:Envelope>
                                            </soapenv:Envelope>
                            </xforms:instance>

搜索操作:

 <xforms:submission id="" ref="instance('ws-request-instance')" 
                                                            action="endpoint-url" method="post" mediatype="application/xml"
                                                            replace="instance" instance="ws-response-instance">
                                               <xforms:message ev:event="xforms-submit-done" level="modal">Done</xforms:message>
                                               <xforms:message ev:event="xforms-submit-error" level="modal">Error</xforms:message>
                                            </xforms:submission>

答案 1 :(得分:0)

在下面的讨论中,有一个Sandbox可运行代码,它使用Orbeon Form中的Web服务调用。

http://orbeon-forms-ops-users.24843.n4.nabble.com/calling-web-service-from-orbeon-td35438.html