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 -- 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 |
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:
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 -- 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 |
Free forum by Nabble | Edit this page |