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
ShreeShree 

"(407)Proxy Authentication Required " in JAVA

Hi,

I've added the proxy host and port to the tomcat startup file. I am using the following code to login to the salesforce.com.

<%
 // Create binding object for sforce
 try
 {
   
     SoapBindingStub sfdc = (SoapBindingStub) new SforceServiceLocator().getSoap(); 
     // login using the username and password provided in login screen
     LoginResult loginResult = sfdc.login(request.getParameter("username"), request.getParameter("password"));

     ----------------

     -----------------

}

catch (Exception e){

out.println(e.getMessage());

}

Now the first line in try block is successfully getting executed, but the sfdc.login() is throwing the exception. The exact exception is

"(407)Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ) "

How the proxy issues can be handled? I tried adding proxy in the code, but didn't work?

How the proxies can be configured inorder to login to salesforce.com?

How the jsp files can be run in the debugging mode for analysis?

Waiting for the suggestions...

Thanks in advance.