Salesforce Integration With Java

Ever wondered how we can access the Salesforce Object’s data inside java classes. To achieve the functionality, we need to integrate Salesforce with Java.

Below mentioned are the steps to establish a connection between Salesforce and Java.

  • We need an enterprise WSDL, which can be downloaded from Salesforce instance, Setup>Develop>API>Generate Enterprise WSDL.
  • We need to convert the downloaded WSDL to JAR file in order to import it into Eclipse User Library.
  • To convert it, we need wsc-xx.jar file. This file can be downloaded from http://code.google.com/p/sfdc-wsc/downloads/list . Make sure to chose the correct version of jar file according to your JDK version.
  • To generate the stub code, we need to go to terminal or cmd for Windows. Continue reading