Clarity

  • 1.  Xog through Proxy Server

    Posted Oct 12, 2010 07:07 AM
    First of all I apologise if this is more of a programming query rather than specific to Clarity XOG but....  The problem I have is that the XOG client does not work from our work network to our SaaS Clarity, I believe due to our Proxy Server.   It works fine when I run it from home (but am trying to minimise working from home).    I have tried adding - Dhttp . proxyHost =999 .999.999.999 - Dhttp . proxyPort =9999 to the java command witin the xog.bat file, but no luck as the proxy requires username password authentication.    I have also created a VB.Net project using the example from the Xog Integration Manual, agian this works from home but not at work for the same reason (I thought VS may be a bit smarter or simpler  here), ie. it dies when trying to login to the service.    Has anyone had any experience with this situation?   I know one answer is to have a GUN coder fix this by building all the authentication etc into the code (I assume) but for quick and simple Xog jobs I am needing to do these from home after hours and I would love to be able to use the CA provided Xog client from work.    Help?     


  • 2.  Re: Xog through Proxy Server
    Best Answer

    Posted Oct 12, 2010 07:07 AM
    Not 5 minutes after I post do I find the answer.....  I needed to add the following to the Java command line within xog.bat  -Dhttps.proxyHost=999.999.999.999 -Dhttps.proxyPort=9999 -Dhttps.proxyUser="username" -Dhttps.proxyPassword="password"  So my new command line in total looks like this  java -Dhttps.proxyHost=999.999.999.999 -Dhttps.proxyPort=9999 -Dhttps.proxyUser="username" -Dhttps.proxyPassword="password" -cp "%CLASSPATH%" %PROGRAM_ARGS% %XOG_ARGS%  I was not using http s and I found on the IBM website the reference to the proxyUser and ProxyPassword options.  Fixed!!


  • 3.  Re: Xog through Proxy Server

    Posted Oct 12, 2010 07:07 AM
    BTW, here is the answer to making this work with the VB.net example out of the XOG integration manual.  I changed the start of the ReadIdeas Function (as an exmple) to look like this with the new code in BOLD :   Dim ideaService As Ideas.IdeasService ideaService = New Ideas.IdeasService()  ideaService.Credentials = System.Net.CredentialCache.DefaultCredentials    ideaService.Credentials = New System.Net.NetworkCredential( "username" , "password" , "domain" )  Dim corpProxy As System.Net.WebProxy = New System.Net.WebProxy(" http://address:port ", True )  corpProxy.UseDefaultCredentials = True   ideaService.Proxy = corpProxy  Dim login As Ideas.Login login = New Ideas.Login()   blah blah code continues here


  • 4.  RE: Re: Xog through Proxy Server

     
    Posted Oct 12, 2012 05:27 PM
    Thanks for letting everyone know you were able to resolve! :grin:


  • 5.  RE: Re: Xog through Proxy Server

    Posted Oct 11, 2012 11:17 AM
    Hi bj!
    it looke really feasible your approach btw I am experiencing the following issue:
    "Proxy returns HTTP/1.1 407 Proxy Authentication Required"
    The only difference is that I am using an url instead of ip address...
    java -Dhttps.proxyHost=proxy.mywebsite.eu -Dhttps.proxyPort=3000 -Dhttps.proxyUser="myname" -Dhttps.proxyPassword="mypws" -cp "%CLASSPATH%"  ....
    any suggestions?