Proxy Portlet -- buttons config not working

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

Proxy Portlet -- buttons config not working

robinnagpal
Hi,

When I use the Orbeon Form Runner as normal webapp the below property works


    <property as="xs:string" name="oxf.fr.detail.send.success.uri.*.*" value="http://localhost:8000/service/send-data"/>

But web I use as a proxy portlet, it doesn't work.

Please help.

Regards,
Robin
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

Stian Sigvartsen
Hi Robin

Is it possible that you've configure Orbeon Forms to HTTP GET the URL using the property below?
<property as="xs:string" name="oxf.fr.detail.send.success.method.*.*" value="get"/>

If so then this will instruct Orbeon to instruct the client web browser to request your URL, rather than the Orbeon server doing it. This will result in a timeout unless you're running the service on your localhost device. You can change it to "put" for example.

If this is not the case then if can elaborate on "it doesn't work" I may be able to assist further.

-Stian

--
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: Proxy Portlet -- buttons config not working

robinnagpal
Thanks for the reply Stian.

I had <property as="xs:string" name="oxf.fr.detail.send.success.method.*.*" value="post"/> 

I also tried with the <property as="xs:string" name="oxf.fr.detail.send.success.method.*.*" value="put"/>

and still it doesnpt work.

My service is not getting called at all. It works find if I use stand alone form runner, rather than the proxy portlet. By since I am using Liferay I will need to use Proxy portlet.

Please help
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

robinnagpal
Can someone please help.
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

Erik Bruchez
Administrator
It shouldn't make a difference whether this is called from the proxy portlet or not.

If you use instead the following:

    http://127.0.0.1:8000/service/send-data

does it change anything?

-Erik
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

robinnagpal
No Erik. Even that doesn't make a difference
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

Erik Bruchez
Administrator
Robin,

I am not sure what's wrong, but I do manage get the Send button to work in the proxy portlet on the Bookshelf form, for example:

    <property as="xs:string"  name="oxf.fr.detail.buttons.orbeon.bookshelf"  value="send"/>

    <property as="xs:string" name="oxf.fr.detail.send.success.uri.orbeon.bookshelf">
        http://127.0.0.1:8080/orbeon/fr/service/custom/orbeon/echo
    </property>

I do see that the echo service I used is called with the form data. Can you try the following. First, be more explicit about the process, for example the following, which works for me:

    <property as="xs:string"  name="oxf.fr.detail.process.send.orbeon.bookshelf">
        require-uploads
        then validate-all
        then send(uri = "http://127.0.0.1:8080/orbeon/fr/service/custom/orbeon/echo", method="post", replace="none")
        then navigate(uri = "http://www.google.com/")
    </property>

Then, if it fails, what errors if any do you see in the logs?

-Erik
Reply | Threaded
Open this post in threaded view
|

RE: Proxy Portlet -- buttons config not working

robinnagpal
This works. Thanks a lot Erik!