Forum Stats

  • 3,826,799 Users
  • 2,260,708 Discussions
  • 7,897,074 Comments

Discussions

Configuring Web Service Access via a Proxy Server?

656842
656842 Member Posts: 11
edited Aug 27, 2008 7:50PM in Data Integrator
Hi,
I'm trying to configure the OdiInvokeWebservices Tool to hit a WebService via a proxy server.
I've managed to test my OdiInvokeWebservices against a local WS (i.e. a direct connection), but I can't see how to configure ODI to go via a proxy server.
There are no obvious configuration parameters (I'd expect to see a proxy host, username, password and proxy exceptions perhaps) on either the OdiInvokeWebServices Tool or on ODI itself.

So, can anyone answer any or all of the following?
* Are there any ODI config variables (or ODI environment variables) for configuring proxy server access?
* If that fails, what is the advisable approach (given the ODI architecture)? E.g. creating a ODI technology in the topology for HTTP connections via a proxy server (does this make any sense - I'm new to ODI)?
* Is it possible or advisable to extend the OdiInvokeWebServices Tool to allow config for a proxy server? (probably a bad idea - much hacking involved)?

If all the above fails, then the only option is to give the ODI access direct access to the internet.
Thanks in advance,
Matt
Tagged:

Best Answer

  • 566902
    566902 Member Posts: 809
    Matt
    Have you tried adding additional settings to the java vm?
    I note that there are the following options which you could set in ODI_ADDITIONAL_JAVA_OPTIONS in the odiparams file.
    $ java -Dhttp.proxyHost=proxyhostURL
    -Dhttp.proxyPort=proxyPortNumber
    -Dhttp.proxyUser=someUserName
    -Dhttp.proxyPassword=somePassword javaClassToRun
    Craig

Answers

  • 566902
    566902 Member Posts: 809
    Matt
    Have you tried adding additional settings to the java vm?
    I note that there are the following options which you could set in ODI_ADDITIONAL_JAVA_OPTIONS in the odiparams file.
    $ java -Dhttp.proxyHost=proxyhostURL
    -Dhttp.proxyPort=proxyPortNumber
    -Dhttp.proxyUser=someUserName
    -Dhttp.proxyPassword=somePassword javaClassToRun
    Craig
  • 656842
    656842 Member Posts: 11
    Thanks Criag.
    For anyone else's reference, my odiparams.bat file now has a line something like:
    set ODI_ADDITIONAL_JAVA_OPTIONS=-Dhttp.proxyHost=myproxyhost.com -Dhttp.proxyPort=proxyPortNumber -Dhttp.proxyUser=someUserName -Dhttp.proxyPassword=somePassword "-Dhttp.nonProxyHosts=127.0.0.1|someInternalHost.com"
    Note the -Dhttp.nonProxyHosts (which is the proxy exceptions list) is in quotes to escape the pipe character (for windows at least).
    Also, check out: [http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html]
    Matt
This discussion has been closed.