send paramenters to external web api on send process

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

send paramenters to external web api on send process

fabio_barion

I need to send some parameters to a external web api, what I do is this but
it does not work, what do I have to do?


<property as="xs:string"
        name="oxf.fr.detail.process.send.*.*"
        value='require-valid
                then save
                then
send(uri="http://213.85.13.214:88/api/V1.0/Orbeon/PostFormValues/{xxf:instance('fr-parameters-instance')/app}/{xxf:instance('fr-parameters-instance')/form}/{xxf:instance('fr-parameters-instance')/document}/{xxf:instance('fr-parameters-instance')/form-version}/{xxforms:get-request-parameter('idFormRelease')}",method="POST",content="xml",content-type="application/xml")'/>

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

Re: send paramenters to external web api on send process

fabio_barion

can someone help me???

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

Re: send paramenters to external web api on send process

Alessandro  Vernet
Administrator
In reply to this post by fabio_barion
Hi Fabio,

I might be missing something, but I am not seeing anything wrong with your
process. Are you getting an error in the browser? Or maybe in the
`orbeon.log`?  Is your service called at all, but maybe not with the
parameters you expect?

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: send paramenters to external web api on send process

fabio_barion
if I use the same url to do the navigation function Correctly, instead adding the parameter to the send and saving the property-local.xml file, orbeon can not start, as if it detected an error in the property-local file

Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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: send paramenters to external web api on send process

Alessandro  Vernet
Administrator
Hi Fabio,

If you're using Orbeon Forms 4.6 or newer, I would really recommend you put
the definition of the process within the `<property>` element, instead of
using the `value` attribute, so you don't have to escape quotes otherwise
used to delimitate the value of the attribute. This would give you something
along these lines:

<property
    as="xs:string"
    name="oxf.fr.detail.process.send.*.*">
   
    require-valid
    then save
    then send(
       
uri="http://213.85.13.214:88/api/V1.0/Orbeon/PostFormValues/{xxf:instance('fr-parameters-instance')/app}/{xxf:instance('fr-parameters-instance')/form}/{xxf:instance('fr-parameters-instance')/document}/{xxf:instance('fr-parameters-instance')/form-version}/{xxforms:get-request-parameter('idFormRelease')}",
        method="POST",
        content="xml",
        content-type="application/xml"
    )
   
</property>

You'll us know if this helps,

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: send paramenters to external web api on send process

Alessandro  Vernet
Administrator
Fabio, did you get a chance trying to put the content of your process inside
the the `<property>` element? If you did, is it helping and are you now able
to start Orbeon Forms and even run that process?

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