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
FandangoFandango 

Sforce.jar file

I need to know if there is a jar file and documentation available to connect to salesforce from a solaris based java app ?


I downloaded the quickstart bundle but that throws the following exception:
; nested exception is:
java.net.UnknownHostException: www.salesforce.com


Basically, I'm looking for a jar file that I can setup with my application to make connection and calls to salesforce. I may have to connect to salesforce from a website as well. So, can someone please throw some light on how it can be accomplished.

Thanks,

..Jean
dadadada

 

1.Download the wsdl file of your organization which can be found from Setup - Studio - Integrate - WSDL Generator.

2. Save it to your hard drive. NB: Save as a *.wsdl file.

3. Download and install Apache Axis (axis-1_1.zip): http://mirrors.xtria.com/apache/ws/axis/1_1/.

4. Download and install the WSDL2Java Eclipse Plug-in: http://prdownloads.sourceforge.net/sforce/com.myspotter.wsdl2java_1.2.0.zip?download
Move the com.myspotter.wsld2java folder to your C:\...\eclipse\plugins directory

5. Right-click on the project in the Navigator window and select properties.  In the Properties window, select Java Build Path, and then the Libraries Tab.  Click â¬?Add External JARsâ¬?, and in the dialog, navigate to and select all the contents of c:\...\axis\lib.

6. Right click on the project, select �Import..� and then �File System..�; add the WSDL to your project

7. Right click on the WSDL and select WSDL2Java | Generate.

After generating, you shall have the files needed to connect to salesforce.
Hope this works out for you.

 

adamgadamg
> java.net.UnknownHostException: www.salesforce.com

This means that the machine you are on can't resolve the domain names (and perhaps has other connectivity problems.) Make sure you can browse the web (and salesforce.com) from the machine you are connecting from.
sanjay mamgainsanjay mamgain
I am new to salesforce
can some one help me  where i can download the jar file containing
 
com.sforce.soap.enterprise.
 
Thanks
 
SuperfellSuperfell
What you really need to do, is download the WSDL, and run WSDL2Java on it to have the code generated for you.