|
Salesforce Transport 2.x Installation Guide
This page walks you through the installation process for the full binary and source distribution of the Salesforce transport for Mule 2.x.
Prerequisites
You must ensure that you have met the following prerequisites before you install the Salesforce transport.
| Prerequisite |
Version |
Notes |
| JDK |
1.6.x |
JAVA_HOME environment variable must be set
PATH must include JAVA_HOME/bin
1.6.x required if building from source |
| Mule |
2.2.0 distribution |
Mule 2.2 must be installed on the computer where you install the Salesforce transport. Be sure to complete all steps to install/configure Java, Maven, and Eclipse and to set up your environment variables. |
| Subversion |
any |
Required only if building from source |
| Maven |
2.0.10+ |
Required only if building from source |
| Winzip/Gzip |
any |
Required for unzipping the distribution |
Installing the Binary
- Download the Salesforce Transport ZIP and unpack it to any location (hereafter referred to as ZIP_HOME).
- Copy the contents of the ZIP_HOME/lib/user directory to your MULE_HOME/lib/user directory.
- Copy the ZIP_HOME/examples/salesforce directory to your MULE_HOME/examples/ directory.
- Proceed to Salesforce Transport 2.x Example to run an example.
Installing from Source
- Check out the latest Salesforce transport code from Subversion at: https://svn.muleforge.org/mule-transport-sfdc. Details on how to use Subversion can be found [here].
- Change to the directory where you checked out the Salesforce transport code, for example: C:\muleforge\mule-transport-sfdc (hereafter referred to as MULE_SFDC_HOME).
- Change to the MULE_SFDC_HOME\branches\sfdc-2.2.x directory.
- Run mvn install at the command prompt to build the Salesforce transport. You can optionally skip the unit tests by running mvn -Dmaven.test.skip=true install.
- Change to the examples directory under MULE_SFDC_HOME\branches\sfdc-2.2.x, and then run mvn install at the command prompt to build the Salesforce transport examples.
- Change to the dist directory under MULE_SFDC_HOME\branches\sfdc-2.2.x, and then run mvn assembly:assembly at the command prompt to build the Salesforce distribution.
- Open the Salesforce distribution ZIP from the dist\target directory under MULE_SFDC_HOME\branches\sfdc-2.2.x and unpack it to any location (hereafter referred to as ZIP_HOME).
- Copy the contents of the ZIP_HOME/lib/user directory to your MULE_HOME/lib/user directory.
- Copy the ZIP_HOME/examples/salesforce directory to your MULE_HOME/examples/ directory.
- Proceed to Salesforce Transport 2.x Example to run an example.
Installing a Different Version of the Salesforce Partner WSDL
The Salesforce transport ships with the partner WSDL (API 14.0). To use a custom partner WSDL, download a copy of the file using the following steps:
- If you have not already done so, download and install Axis.
- Set up the Axis variables AXISCLASSPATH, AXIS_HOME, and AXIS_LIB as follows:
AXISCLASSPATH=C:\axis-1_4\lib\axis.jar;C:\axis-1_4\lib\commons-discovery.jar;C:\
axis-1_4\lib\commons-logging.jar;C:\axis-1_4\lib\jaxrpc.jar;C:\axis-1_4\lib\saaj
.jar;C:\axis-1_4\lib\log4j-1.2.8.jar;C:\axis-1_4\lib\xml-apis.jar;C:\axis-1_4\li
b\xercesImpl.jar;C:\axis-1_4\lib\commons-logging-1.0.4.jar;C:\axis-1_4\lib\commo
ns-discovery-0.2.jar;C:\axis-1_4\lib\wsdl4j-1.5.1.jar
AXIS_HOME=C:\axis-1_4
AXIS_LIB=C:\axis-1_4\lib
- Log in to Salesforce.com as an administrator or as a user who has the "Modify All Data" permission.
- Click Setup, and then under App Setup, click Develop.
- Click API to display the WSDL download page.
- Right-click Download Partner WSDL to display your browser's save options, and then save the partner WSDL to a local directory.
- Copy the batch script wsdl2jar.cmd from your MULE_HOME\examples\salesforce directory to the directory where you downloaded the WSDL in the previous step.
- Edit wsdl2jar.cmd to point to your WSDL file name and WSDL version.
- In the WSDL directory, open a command prompt and run wsdl2jar.cmd.
- Edit the dependency on the Salesforce partner API in the Salesforce transport POM file to point to your newly created JAR. For example:
<dependency>
<groupId>com.sforce.soap.partner</groupId>
<artifactId>salesforce-partner</artifactId>
<version>15.0</version>
</dependency>
|
|
|