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
DMDM 

Problem connecting to custom object using some sample code

Hi,

I am trying out some sample code which I downloaded from the java getting started package on the sforce.com website. I am trying out Samples.java and quickstart.java.

I followed all the steps outlined in the quick start guide on the api documentation closely but I am not able to connect to the custom object I created in the developer edition.

I installed axis and java in my class path and generated and downloaded a wsdl file using the developer edition user interface.

I use the following command line

java Samples org.apache.axis.wsdl.WSDL2Java -a -T 1.2 C:\enterprise.wsdl

I am prompted for the username and password I created in the user interface which I then enter.

But then I get

Creating the binding to the web service...
LOGGING IN NOW....

Failed to successfully login, error message was:
; nested exception is:
        java.net.ConnectException: Connection timed out: connect

Press the RETURN key to continue...

Is this a problem with the proxy server used by my company? Do I need to change the login url used by soap?

Thanks for your help

DM

DevAngelDevAngel

Hi DM,

Did the quickstart sample work before you made any modifications?  If not, then it probably is a proxy server issue.  The best source for how to Axis with a proxy server is on the Apache mailing lists.

Cheers