Hi William,
one thing to try would be the server URL config parameter (admin page):
You can query that value using smf:configParam("serverURL").
Alternatively, if changing this value has undesired side effects, you
could probably make up another triple somewhere, e.g. by uploading a TTL
file to each server.
HTH
Holger
On 24/10/2019 08:06, William Ramos wrote:
Hi, community;
I have a SWON service where I'm generating a value as a URL which
should be based on the server where the SWON service is running.
The company where I work has three different servers/domains:
dev.company.com
test.company.com
prod.company.com
So, for example if I'm running the SWON service on test.company.com it
should generate the URL like this:
url:"https://test.company.com?someService;graphURI..."
... if running the service on dev.company.com it should look generate
it like this:
url:"https://dev.company.com?someService;graphURI..."
The SWON code that I have looks like this:
<swon:Value arg:name="url"
arg:value="https://test.company.com?someService;graphURI={= ?guri }"/>
...with the domain/server *hardcoded*, *so I'm wondering if there's a
built in function/mechanism to achieve this.*
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/b73bfb67-7903-434d-a5a5-a795d5473b91%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/b73bfb67-7903-434d-a5a5-a795d5473b91%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "TopBraid
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/b1b84814-e2cb-3173-4640-d82bce73004e%40topquadrant.com.