I'm trying to send the form data to another service. Below is the send button process:
-- <property as="xs:string" name="oxf.fr.detail.process.send.S2S_Forms.ED_900-V1_0"> require-valid then save then send( uri = "http://localhost:8080/greeting", method = "GET", content = "xml", parameters = "app form form-version document valid language process data-format-version" ) then success-message("save-success") recover error-message("save-error") </property> On another end, in the service I receive the data. But the values of variables 'dcoument' and 'process' seems to be serialized. How to deserialize them? Below are the variable values recieved by the service in order: S2S_Forms ED_900-V1_0 1 615ba9680edf49219830134461919192647f978a true en 5ccc9c93f30e725481dfd773cc75b26c5547e6bc xml How to de-serialize the values? You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Since those parameters are passed as request parameters, they are URL
encoded. But the values you mention in your message are already deserialized. Or am I missing something about what you're asking? https://en.wikipedia.org/wiki/Percent-encoding Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I just figured it out. The form data is saved in Orbeon database and it returns the DOCUMENT ID. I thought that the document returned was the encoded form data.
-- Thanks, Kush On Friday, February 9, 2018 at 10:47:02 PM UTC+5:30, Alessandro Vernet wrote: Since those parameters are passed as request parameters, they are URL You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Kush,
Got it, you're correct, and the document itself is in the body of the POST (or PUT, depending on the value of your `method` parameter). https://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner-send.html Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |