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