Re: My action to produce examples of submission

I would add examples showing the new REST-ful and SOAP possibilities in 
XForms 1.1, if not already there, especially:

* HTTP POST and/or PUT
* HTTP DELETE
* Call of a SOAP service with an HTTP POST

-Erik

Steven Pemberton wrote:
> 
> Examples of Submission
> 
> 1. Simple submission @@assuming we adopt method="get" as default
> 
>    <submission action="http://example.com/search" />
> 
> After doing relevance and validity checking on the data, submits the 
> whole of the default instance asynchronously, encoded as a URL 
> (x-www-form-urlencoded), to http://example.com/search. The result 
> replaces the whole page.
> 
> 2. Simple submission, replacing the instance:
> 
>    <submission action="http://example.com/prefill" replace="instance" />
> 
> The same as above, but replacing the instance with the returned result 
> (which must be XML).
> 
> 3. Replacing a different instance
>    <submission action="http://example.com/prefill" replace="instance" 
> instance="result" />
> 
> The same as above, but replacing a different instance.
> 
> 4. Submitting a subtree of the instance
>    <submission action="http://example.com/record" ref="event/dates" />
> 
> Submits the subtree of the default instance selected by the XPath 
> expression "event/dates"
> 
> 5. Saving to a file
>    <submission action="file:results.xml" method="put" validate="false" 
> replace="none" />
> 
> Saves the default instance to a file, without validation checking so 
> that the instance is saved regardless of tis validity.
> 
> 6. Submitting an instance that includes a file upload
>    <submission method="form-data-post" action="http://example.com/photo" />
> 
> 7. Submitting the default instance to a location where the action url is 
> obtained dynamically from an instance
> 
>    <submission>
>        <resource ref="instance('params')/action"/>
>    </submission>
> 
> Steven
> 


-- 
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/

Received on Monday, 8 October 2007 22:22:55 UTC