...
As it turns out, implementing a fix for portable relative links to resources in and outside the fedora app server context is a bit more complicated than just fixing the WSDL mechanisms.
Basically, one of the demo objects (demo:SmileyStuff) has a URL reference datastream that contains (http://local.fedora.server/fedora...). So.. we would need to extend our solution to datastreams as well in order to be a complete solution.
Additionally.. DOTranslationUtility tries its best to convert ALL URLs that reference local resources into general form (i.e. it will look for "http://localhost:8080/...", for example, and convert it to "http://local.fedora.server/...). This procedure does not take into consideration fedora app server context, and it too is broken at present.
To make things worse, even if we do put in a fix, resulting exported foxml will not be interpreted correctly in previous versions of Fedora (3.0, 3.1, etc) if it contains a link substitution.
So.. the task is now considerably weightier. I called Bill for a sanity check, and we both agreed that this issue has enough consequences that it probably warrants a larger discussion. So.. could we (by 'we', I mean anybody who is interested in this issue) meet tomorrow some time to discuss this? How about 10 again?
In the meantime, I created two JIRA issues, and decided to go forward with one solution and see if I reach any additional problems. Because our discussion may have bearing on the ultimate direction this takes, I've decided to put any work on this in a separate branch.
This describes the issue as a whole:
https://fedora-commons.org/jira/browse/FCREPO-486
This describes the solution I'll be attempting tonight:
https://fedora-commons.org/jira/browse/FCREPO-487
...
ISSUE-3: System tests don't pass with non-fedora context
...