Re: No valid response on HTTP GET in a custom persistence layer (Java)
Posted by
Erik Bruchez on
Jan 29, 2011; 7:01pm
URL: https://discuss.orbeon.com/No-valid-response-on-HTTP-GET-in-a-custom-persistence-layer-Java-tp3244273p3246456.html
K,
This should work. Do you set an XML content-type when returning the data? I.e. application/xml?
-Erik
On Fri, Jan 28, 2011 at 4:06 AM, ktangirala
<[hidden email]> wrote:
Hi,
I have implemented a custom persistence layer in Java and configured the URL
in the properties-local.xml as follows:
<property as="xs:anyURI" name="oxf.fr.persistence.app.uri.*.*.data"
value="http://localhost:8080/eformprocessor/eform/persist"/>
The 'Save' works perfectly and I am able to insert the record into the
orbeon_form_data table of my DB. However, when I get the form using the edit
URL (e.g.,
http://localhost:8080/orbeon/fr/demoapp/demoform/edit/84f29e3e842790259683b05c9314484a),
my persistence servlet returns the XML body as response, however, the orbeon
form runner is rendering an empty form instead of populating the data (from
the XML read).
Am I missing anything here? I followed the instructions verbatim as in the
documentation (furnished below)
Upon receiving a request, it must:
Check the HTTP method to determine the operation to perform (which CRUD
operation or search operation)
Check the requested path to determine the location of the resource
In the case of PUT, read the request body and store it appropriately. This
might require writing data into a CLOB or XML type column in a relational
database, for example.
In the case of GET, read the storage and return the appropriate resource.
In the case of DELETE, delete the appropriate resource in storage
In the case of POST, perform a search. This might require generating an SQL
query, for example.
Please help!
K
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/No-valid-response-on-HTTP-GET-in-a-custom-persistence-layer-Java-tp3244273p3244273.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