Format of the sent data

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Format of the sent data

kushp
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].
Reply | Threaded
Open this post in threaded view
|

Re: Format of the sent data

Alessandro  Vernet
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
Reply | Threaded
Open this post in threaded view
|

Re: Format of the sent data

kushp
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
encoded. But the values you mention in your message are already
deserialized. Or am I missing something about what you're asking?

<a href="https://en.wikipedia.org/wiki/Percent-encoding" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPercent-encoding\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5nEUrgxt5JZtazNnNfSKX2D6yiQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPercent-encoding\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5nEUrgxt5JZtazNnNfSKX2D6yiQ&#39;;return true;">https://en.wikipedia.org/wiki/Percent-encoding

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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].
Reply | Threaded
Open this post in threaded view
|

Re: Format of the sent data

Alessandro  Vernet
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