• haas
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello,

I'm strying to get started using the salesforce.com API in Java to log on to our salesforce.com org, based on the sample code in the quickstartJava.zip file.

To do this I create a SoapBindingStub object by calling the getSoap() method of a SforceServiceLocator object, call its setTimeout() method to set the timeout to 60 seconds and then call its login() method, passing my salesforce.com user name and password as arguments.

The login() method fails with an exception:

java.net.UnknownHostException: www.salesforce.com

I think this is probably because it is trying to access www.salesforce.com directly rather than going through our proxy server. But how do I specify the proxy settings such as URL and port number? I can't find any documentation or example of doing this.

Any help appreciated.

Regards

John Lewis

  • March 20, 2007
  • Like
  • 0