Hi all,
I'm new to Orbeon Forms and I'm trying to integrate my backend WebServices with XForms. Playing with the demos i found how to make a submission to a WebService, but i can not found how to load an XForms Instance from it. In the XForms Reference documentation there's a topic on this: http://www.orbeon.com/ops/doc/reference-xforms-ng#d6e3458 But with a TODO body. Bad luck :) Searching the list archive i have found a possible solution: http://mail-archive.objectweb.org/ops-users/2005-09/msg00035.html My question is: ¿Is the solution described in the mail list (September 2005) ok for the actual state of Orbeon or there's a better solution that can be documented in section 7.4 of the XForms Reference? If there's a new better solution i can document all of this to fill the missing documentation. Thanks. Orbeon is a great tool!! -- Salut, ==================================== Ricardo Borillo Domenech Analista/Programador - Servei d'Informàtica Universitat Jaume I http://xml-utils.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Ricardo,
There are a couple of ways to call a web service: 1. Directly from XForms -- With XForms you can post an XML document to a URL (your web service endpoint), and access the data returned. 2. Using the Delegation processor -- For this you need to write an XPL file that calls the Delegation processor, add an entry in your page-flow.xml for this XPL file, and call it with an XForms submission. I recommend you go with the first solution if possible. However, depending on your web service, it might not work. In particular, it won't work if you web service uses SOAP 1.1 (instead of 1.2) and expects an SOAPAction HTTP header. You should be OK if your web service uses SOAP 1.2. In your model, you will have something that looks like: <xforms:instance id="ws-request"> <SOAP-ENV:Envelope> <SOAP-ENV:Body> <m:GetQuote xmlns:m="http://ws.invesbot.com/"> <m:symbol>GOOG</m:symbol> </m:GetQuote> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </xforms:instance> <xforms:instance id="ws-response"><dummy/></xforms:instance> <xforms:submission id="stock-submission" method="post" action="http://ws.invesbot.com/stockquotes.asmx" ref="instance('ws-request')" replace="instance" instance="ws-response" mediatype="application/soap+xml"/> I hope this helps, Alex On 3/2/07, Ricardo Borillo <[hidden email]> wrote: > Hi all, > > I'm new to Orbeon Forms and I'm trying to integrate my backend > WebServices with XForms. > > Playing with the demos i found how to make a submission to a > WebService, but i can not found how to load an XForms Instance from > it. > > In the XForms Reference documentation there's a topic on this: > http://www.orbeon.com/ops/doc/reference-xforms-ng#d6e3458 > > But with a TODO body. Bad luck :) > > Searching the list archive i have found a possible solution: > http://mail-archive.objectweb.org/ops-users/2005-09/msg00035.html > > My question is: ¿Is the solution described in the mail list (September > 2005) ok for the actual state of Orbeon or there's a better solution > that can be documented in section 7.4 of the XForms Reference? > > If there's a new better solution i can document all of this to fill > the missing documentation. > > Thanks. Orbeon is a great tool!! > > -- > Salut, > ==================================== > Ricardo Borillo Domenech > Analista/Programador - Servei d'Informàtica > Universitat Jaume I > http://xml-utils.com > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |