You need to sign in to do that
Don't have an account?
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
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