Specification for the location of remote resources
The methods that you can use to specify the location of remote resources, which are URL, variable, or stylesheet.
To specify the location, use one of the following methods.
- URL
- Specify the URL. For example, enter
http://server1.domain.com:2222in the Source or Destination field. - Predefined variable
- Use a predefined variable in the
var://context/nameform that expands to a URL (Source or Destination field) or to multiple URLs (Destination field only).- For a single URL, use the set variable action to define the
var://context/remote1variable with a value ofhttp://server1.domain.com:2222. Then, specifyvar://context/remote1in the Source or Destination field. - For multiple URLs, use the set variable action to define the
var://context/results/remote-multivariable with the following value.<results mode="require-all" multiple-outputs="true"> <url input="context1">http://127.0.0.1:22223</url> <url input="context2">http://127.0.0.1:22224</url> <url input="context3">http://127.0.0.1:22225</url> <url input="context4">http://127.0.0.1:22226</url> </results>Then, specify
var://context/results/remote-multiin the Destination field.
- For a single URL, use the set variable action to define the
- Custom stylesheet
- Use a custom stylesheet that defines a variable that expands to multiple URLs. For example,
create a stylesheet with the following declarations.
<xsl:variable name="URLs"> <results mode="require-all" multiple-outputs="true"> <url input="context1">http://127.0.0.1:22223</url> <url input="context2">http://127.0.0.1:22224</url> <url input="context3">http://127.0.0.1:22225</url> <url input="context4">http://127.0.0.1:22226</url> </results> </xsl:variable> <dp:set-variable name="'var://context/results/remoteMany'" value="$URLs"/>Then, specifyvar://context/results/remoteManyin the Destination field. Theinput="context"attribute tells the action to use the specified context to send results to the appropriate target.- For the for-each action, uses the value of the Output field.
- For the result action, uses the value of the Destination field.
For URLs with the SMTP protocols, follow the
dpsmtp://mailExchange/?To=recipient[&query-paremeters] syntax.