function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KalKal 

URGENT QUESTION

I am behind a firewall and i get the following when trying to login to salesforce:    java.net.ConnectException: Connection timed out: connect

how does this translate to java:

  WebProxy webProxy = new WebProxy("10.67.80.112",80);
  webProxy.Credentials = new NetworkCredential(ProxyLoginName,ProxyPassword,ProxyDomain);
  
  //Create the binding to the sforce servics
  binding = new SforceService();
  binding.Proxy = webProxy;
     
KalKal
I have attempted the following:

   new URL("https://myHost:800/")
   SoapBindingStub binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
   binding.login(un, pw);

which hangs!!!!
KalKal
please ignore this question... I acted too fast when I asked..
Rick.BanisterRick.Banister
System.setProperty("http.proxyHost", httpProxyHost);
System.setProperty("http.proxyPort", httpProxyPort);
System.setProperty("http.proxyUser", httpProxyUser);
System.setProperty("http.proxyPassword", httpPassword);

Port defaults to 80 if not specified.
Password and User are optional.