Hi,
the workflow-send button (http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button) can be configured to send data back via POST or via GET. Let's say that Orbeon sends data on success to some Java application (configuration: the Orbeon Forms XForms Engine with Java Applications: separate deployment - http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications). Having the data received, the Java application redirects to another location. If Orbeon uses GET to send data to the application, it works: a browser redirects to the new location, if Orbeon uses POST, it doesn't work: a blank page is displayed in a browser, the url changes to http://<host>:<port>/<java-application-context>/<Orbeon-context>/xforms-server-submit, the Orbeon log shows: start opening connection opening URL connection {method: "POST", URL: . . . } response {status code: "302"} response headers {location: "http://www.orbeon.com", content-length: "0", server: "Apache-Coyote/1.1", date: "Wed, 10 Oct 2012 07:27:42 GMT"} received null response Content-Type {default Content-Type: "application/xml"} response has no content {} saved HTTP state {scope: "session"} end opening connection {time (ms): "176"} /xforms-server-submit - Timing: 226 (the "another location" is http://www.orbeon.com) Why does it work for GET and not for POST (why does it end up with xforms-server-submit in case of POST)? -- Regards, Bartek Gawel |
Administrator
|
I suspect because the GET is actually sent to the browser, which
handles the redirect itself. OTOH the POST is performed on the server, and doesn't handle the redirect. Support for this would have to be implemented. -Erik On Wed, Oct 10, 2012 at 2:11 AM, bgawel <[hidden email]> wrote: > Hi, > > the workflow-send button > (http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button) > can be configured to send data back via POST or via GET. > > Let's say that Orbeon sends data on success to some Java application > (configuration: the Orbeon Forms XForms Engine with Java Applications: > separate deployment - > http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications). > > Having the data received, the Java application redirects to another > location. > If Orbeon uses GET to send data to the application, it works: a browser > redirects to the new location, > if Orbeon uses POST, it doesn't work: a blank page is displayed in a > browser, the url changes to > http://<host>:<port>/<java-application-context>/<Orbeon-context>/xforms-server-submit, > the Orbeon log shows: > > start opening connection > opening URL connection {method: "POST", URL: . . . } > response {status code: "302"} > response headers {location: "http://www.orbeon.com", content-length: "0", > server: "Apache-Coyote/1.1", date: "Wed, 10 Oct 2012 07:27:42 GMT"} > received null response Content-Type {default Content-Type: > "application/xml"} > response has no content {} > saved HTTP state {scope: "session"} > end opening connection {time (ms): "176"} > /xforms-server-submit - Timing: 226 > (the "another location" is http://www.orbeon.com) > > Why does it work for GET and not for POST (why does it end up with > xforms-server-submit in case of POST)? > > -- > Regards, > Bartek Gawel > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/workflow-send-button-POST-vs-GET-on-success-tp4655825.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 |
Free forum by Nabble | Edit this page |