Login  Register

Re: Re: XForm to update my XML files in the backend

Posted by SD on Apr 28, 2011; 3:17pm
URL: https://discuss.orbeon.com/XForm-to-update-my-XML-files-in-the-backend-tp3472381p3481328.html

Hi Tinkerer,

Setting up eXist can be done either within the app server which has Orbeon in it (within the same app server eXist can lie either inside Orbeon or outside, I have it outside, so on tomcat the path to eXist would be /webapps/eXist) or it can be done on a standalone server. Once set create a new DB, and collections with appropriate permissions.

There are quite a few different types of submissions possible from xforms to the eXist database, mostly one uses GET, PUT, POST and DELETE (http://www.w3.org/TR/xforms11/#submit-options) and the signature od xforms:submission can be found here http://www.w3.org/TR/xforms11/#submit and http://wiki.orbeon.com/forms/doc/developer-guide/processors-xforms-submission. Also there are events associate with submission that can come into handy http://www.w3.org/TR/xforms11/#evt-submit-done

eg: A typical GET submission looks as follows

<xforms:submission xforms:username="DB_USER_NAME" xforms:password="DB_PASSWORD" id="SUBMIT_ID"     serialization="none" method="get" action="http://localhost:80/exist/rest/db/DB_NAME/DB_COLLECTION/FILE_NAME.xml"
replace="instance" instance="INSTANCE_TO_BE_REPLACED">
</xforms:submission>

Treat the above code is a function and to call this you require a 
<xforms:send ev:event="xforms-ready" submission="SUBMIT_ID"/> (Note the xforms:send requires an event handler to run)

parameters written in CAPS are to be replaced by your local parameters.

Hope this helps

regards
--SD



On Thu, Apr 28, 2011 at 3:50 AM, Tinkerer <[hidden email]> wrote:
Thanks SD. I am looking to adapt from the bookcast example. But how do I
store all my XML/XSD files in the eXist database under Orbeon? Do I have to
have an external dB instance? my files are about 150 kb total. and I was
clueless about the rest interfaces to exist. Is that something I need to
create for my app?

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/XForm-to-update-my-XML-files-in-the-backend-tp3472381p3480546.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
OW2 mailing lists service home page: http://www.ow2.org/wws




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws