Configuring Proxy for Connecting to a REST Web Service
In a restricted network when a proxy is used for connecting to a REST Web Service as the data source, you can set the proxy parameters in a configuration file in Logi Report so as for the proxy to work successfully. You need manually create the configuration file in the XML format, named restdsproxy.xml, in the directory
The following is an example of the configuration file and the detailed description of each tag in the file:
<?xml version="1.0" encoding="UTF-8"?>
<proxyhost>22.214.171.124</proxyhost> <proxyport>8888</proxyport> <user>user1</user>
<proxyhost>126.96.36.199</proxyhost> <proxyport>80</proxyport> <user>user2</user>
The root tag that contains one or more <proxymapping> sub-tags.
Represents the whole set of parameters of a proxy. It contains the following sub-tags each defining a specific proxy parameter.
A regular expression string supported by Java that matches the URL of a REST Web Service. If there are multiple URL patterns that match the same URL, the proxy setting in the <proxymapping> tag that contains the first one matched will take effect.
The host name or IP address of the proxy.
The port number of the proxy.
The user name used for the proxy authentication. It is optional.
The password used for the proxy authentication. It is optional.
Note: The <user> and <password> information is encrypted, and replaced by the <encrypt-sign> tag after Logi Report starts up as follows:
If you want to change the user or password, delete the <encrypt-sign> tag and then add the <user> and <password> tags in the restdsproxy.xml.
Please sign in to leave a comment.