page flow

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

page flow

koenvdk
Hello,

I've been experimenting with page control flow in orbeon. I really like the fact that so much can be configured using the page-flow.xml files.
Right now, I'm trying to figure out how to encapsulate another service on the server without exposing its address;  a bit like how the persistence services are hidden by form runner. It looks like I need to understand how to work with xpl files, however, which looks difficult.

What I try to do seems relatively easy: forward a request to somewhere else (using variable paths like /app/form/... ) and return the answer to the client as if it comes from orbeon: a kind of proxy. But I can't seem to find this in the documentation and I'm stuck :-).

A slightly more complex variation on the theme interests me as well: forward a request to another service, and use the information in the xml answer to craft a form runner url and redirect the client to that address (I want to use this to do a special kind of search for forms).



Bye,



Koen Vanderkimpen

Connect: Twitter








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.





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

Re: page flow

koenvdk
Hi,

Perhaps I can partly answer my own questions!
I added the following to form runner's page-flow document:

<!-- ==== Entry point for other services ========================================= -->

<page path-info="/fr/service/our-services/([^/]+)/([^/]+)/([^/]+)" matcher="oxf:perl5-matcher"
          view="http://127.0.0.1:8080/our-other-webapp/our-services/${1}/${2}/${3}">
 </page>


This seems to work: the other service on the server, in another context, gets called. I never see the address in the browser address bar. Since the server is behind an apache httpd using ssl, I'm pretty sure the call is made on the server by orbeon and the resulting page forwarded (the page is a redirect, however, so I'm not _absolutely_ sure if I would get a good result with the correct form-runner address for a normal page). This is a http get, I'm also not sure if it would work with a put or post. Can someone reassure me? Otherwise I'll simply find out in the future...


For my other question, I'm still stuck on learning to make a good xpl file:
A slightly more complex variation on the theme interests me as well: forward a request to another service, and use the information in the xml answer to craft a form runner url and redirect the client to that address (I want to use this to do a special kind of search for forms)


Bye,


Koen Vanderkimpen

Connect: Twitter



----- Forwarded by Koen Vanderkimpen/Smals on 19/07/2012 13:45 -----

From:        Koen Vanderkimpen/Smals
To:        [hidden email]
Date:        18/07/2012 10:57
Subject:        page flow




Hello,

I've been experimenting with page control flow in orbeon. I really like the fact that so much can be configured using the page-flow.xml files.
Right now, I'm trying to figure out how to encapsulate another service on the server without exposing its address;  a bit like how the persistence services are hidden by form runner. It looks like I need to understand how to work with xpl files, however, which looks difficult.

What I try to do seems relatively easy: forward a request to somewhere else (using variable paths like /app/form/... ) and return the answer to the client as if it comes from orbeon: a kind of proxy. But I can't seem to find this in the documentation and I'm stuck :-).

A slightly more complex variation on the theme interests me as well: forward a request to another service, and use the information in the xml answer to craft a form runner url and redirect the client to that address (I want to use this to do a special kind of search for forms).



Bye,



Koen Vanderkimpen

Connect: Twitter








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.










Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.





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