Is there any way to call an address from a pipeline using alternative HTTP methods such as GET, POST, PUT and DELETE? I feel that there should be the means to do this using the delegation processor or the URI generator but cannot see the solution from the documentation.
The scenario is to call a REST-style web service with HTTP bindings as described in WSDL 2.0. Any pointers would be much appreciated. Ross -- 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
|
The answer is yes.
The submission pipeline that Alex proposed a while ago uses the XForms engine's submission capabilities. This means that you can do GET, but also POST, PUT, and DELETE (with the nightly builds). You can of course do it directly from XForms as well. Now I am trying to find the exact post where Alex posted his example, but the file is for sure available in the nightly builds of OPS as submit.xpl and in fact, I attach it. Maybe Alex can point to the email thread. -Erik Ross Horne wrote: > Is there any way to call an address from a pipeline using alternative > HTTP methods such as GET, POST, PUT and DELETE? I feel that there should > be the means to do this using the delegation processor or the URI > generator but cannot see the solution from the documentation. > > The scenario is to call a REST-style web service with HTTP bindings as > described in WSDL 2.0. > > Any pointers would be much appreciated. > Ross Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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
|
On 5/19/06, Erik Bruchez <[hidden email]> wrote:
> Maybe Alex can point to the email thread. Ross, Yes, submit.xpl is included in the nightly builds. You can get the latest build from: http://forge.objectweb.org/nightlybuilds/ops/ops/ And here is an example: <p:processor name="oxf:pipeline"> <p:input name="config" href="oxf:/ops/utils/submit.xpl"/> <p:input name="submission"> <xforms:submission method="post" action="http://localhost:8080/ops/direct/xforms-translate/post"/> </p:input> <p:input name="request"> <translation> <source>This is a table.</source> <language-pair>en|fr</language-pair> </translation> </p:input> <p:output name="response" ref="data"/> </p:processor> Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex & Erik,
I like the idea very much of reusing the xforms model server side. It appears to work well too. The refresh did the trick by the way. Yours, Ross.
On 19/05/06, Alessandro Vernet <[hidden email]> wrote:
On 5/19/06, Erik Bruchez <[hidden email]> wrote: -- +44 (0)7921 906 453 (mobile) +44 (0)1573 225 400 (Kelso) -- 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 |