You need to sign in to do that
Don't have an account?
Kal
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;
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;
new URL("https://myHost:800/")
SoapBindingStub binding = (SoapBindingStub) new SforceServiceLocator().getSoap();
binding.login(un, pw);
which hangs!!!!
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.