Lowell

GEL - to read environment (or address)

Discussion created by Lowell on Jan 10, 2011
Latest reply on Jan 12, 2011 by Chris_Hackett
Hi,
I am attempting to "read" the environment and put in the XOG server based on that environment.

What is the syntax to "read" the environment prior to logging into the XOG?

<<<Looking for code to "read environment" here>>>>
<<<Next Test for which environment variable to use:>>>

<<<Next Populate ${XOGURL} with the proper server name based on the environment>>>

<!-- Log into XOG. -->
<soap:invoke endpoint="${XOGURL}/niku/xog" var="auth">
<soap:message>
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xog="http://www.niku.com/xog">
<soap-env:Header/>
<soap-env:Body>
<xog:Login>
<xog:Username>${XOGUsername}</xog:Username>
<xog:Password>${XOGPassword}</xog:Password>
</xog:Login>
</soap-env:Body>
</soap-env:Envelope>
</soap:message>
</soap:invoke>

Outcomes