No valid response on HTTP GET in a custom persistence layer (Java)
Posted by
ktangirala on
Jan 28, 2011; 12:06pm
URL: https://discuss.orbeon.com/No-valid-response-on-HTTP-GET-in-a-custom-persistence-layer-Java-tp3244273.html
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