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
sanjaykumarsanjaykumar 

getting started with salesforce

Hi All ,
     I have just started with salesforce and downloaded the partner.wsdl on to my system. I am using eclipse as my development environment. With the help of wsdl to java i have created the packages and java files in a new project. But now when i want to login to sales force using the sample code in the api which i have used the same project , gives plenty of errors.
 
Also , when i try to use the appexchange toolkit for eclipse i get the following error while connecting to the remote site.
 
Network connection problems encountered during search.
  Unable to access "http://adnsandbox.com/appexchange/updates/".
    Unable to access site: "http://adnsandbox.com/appexchange/updates/" [Connection timed out: connect]
    Unable to access site: "http://adnsandbox.com/appexchange/updates/" [Connection timed out: connect]
 
please guide me to developa java application so as to connect to the SFDC. It would be better if it is explained giving example.
 
Thanks and Regards,
sanjay.
 
 
adamgadamg
You should be able to find Java sample code in the doc.

Not sure why you are having the Eclipse error - the website seems to be responding fine.  Perhaps a local network/config issue?
sanjaykumarsanjaykumar

Hi Adamg,

                 I am actually tried the sample code and quick start code , I have downloaded the enterprise the wsdl file and converted them into jave files and added one extra package to  the same project for quick start and added all the jar files in my run path. the code is free from errors but, gives a network error..i dont understand why..

And the second problem arises when I use the sample code . i made a package with the same name(com.doc.samples) and in it a class (Samples) and pasted the whole code in to the class.but i get the errors as,

  1. The method run() is undefined for the type Samples
  2. Duplicate method getUserInput(String) in type Samples

  3. Duplicate method login() in type Samples

  4. The method getUserInput(String) is undefined for the type Samples.   
                                                                                                                                                        Please let me know how can i proceed to create an application in java so that a user can be authenticated and allowed to access salesforce using my jaya application.

I am using eclipse 3.1 , axis 1.2 .

Thanks for you Guidance.

Regards,

Sanajy.