From: Arlo White <[hidden email]>
To: [hidden email]
Sent: Thu, December 9, 2010 8:35:32 PM
Subject: [ops-users] xforms:submission resource url re-writing
We have a separate webapp (/remote) with REST services that Orbeon
accesses. I want my xforms:submission resource urls to point to this
webapp without having to hard-code an absolute url. This is because
these xforms will be transferred between different servers and I
don't want to edit the XForm every time I do so.
One possibility is to pass in the remote service url prefix through
a parameter or property. I couldn't get
xxforms:get-request-parameter() to work for me. I'm not sure what
other methods I might use. Maybe I can create my own property in
properties-local.xml and inject it into the url?
I've been reading through:
http://wiki.orbeon.com/forms/doc/developer-guide/admin/url-rewriting
This seems to indicate that I can use .. in a url and Orbeon will
translate it. However, ../remote/my/service didn't work. This would
have been the easiest...
Portions of the documentation sound promising:
If the URL is an absolute path, the URL is rewritten
* usually, this means that the servlet context path is prepended
* in some cases, like separate deployment, a different context is
prepended depending on the type of resources
But I'm not sure how to configure Orbeon to prepend a different
context in some cases. (for xforms:submission resource attributes)
I tried setting <property as="xs:anyURI"
name="oxf.url-rewriting.service.base-uri" value="/remote"/>
But this broke the Form Runner and Builder.
I'd appreciate any recommendations on the best way to do this.
--
Arlo White
Application Management / ITS
CalPoly, San Luis Obispo
[hidden email]