is there an example of "submit the instance to a service (XPL)"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

is there an example of "submit the instance to a service (XPL)"

ilango_g
Hi
I was wondering if there is any example of how to submit the instance to an XPL and have that returned to my Xform so that I can store the returned XML in another instance?

Reply | Threaded
Open this post in threaded view
|

Re: is there an example of "submit the instance to a service (XPL)"

Alessandro Vernet
Administrator
someperson wrote
I was wondering if there is any example of how to submit the instance to an XPL and have that returned to my Xform so that I can store the returned XML in another instance?
Yes, see the xforms-translate example. It has a submission:

<xforms:submission ref="instance('request-instance')" id="default-submission"
    method="post" action="/xforms-translate/post" replace="instance" instance="response-instance"/>

The submission calls post.xpl. The mapping from /xforms-translate/post to post.xpl is in page-flow.xml, all in the same directory.

Alex