Skip to content

Salesforce SOAP Connector Configuration

The Salesforce SOAP connector allows you to access the Salesforce SOAP API through WSO2 EI.

Setting up the Salesforce account

  1. To work with the Salesforce SOAP connector, you need to have a Salesforce account. If you do not have a Salesforce account, go to https://developer.salesforce.com/signup and create a Salesforce developer account.

  2. After creating a Salesforce account you will get a Salesforce security token.

  3. To configure the Salesforce SOAP Connector you need to save and keep the username, password, and security token of your Salesforce account.

Importing the Salesforce Certificate

To use the Salesforce connector, add the <salesforce.init> element to your configuration before carrying out any other Salesforce operations.

Before you start configuring the connector, import the Salesforce certificate to your WSO2 Enterprise Integrator (EI) client keystore.

Follow the steps below to import the Salesforce certificate into the EI client keystore:

  1. To view the certificate, log in to your Salesforce account in your browser.
  2. Search the Certificate and Key Management in the search box.

salesforcesoap-certificste-and-key-management

  1. Export the certificate to the file system.
  2. Import the certificate to the EI client keystore using either the following command or the EI Management Console.

    keytool -importcert -file <certificate file> -keystore <EI>/repository/resources/security/client-truststore.jks -alias "Salesforce"
  3. Restart the server and deploy the following Salesforce configuration:

    <salesforce.init>
        <username>MyUsername</username>
        <password>MyPassword</password>
        <loginUrl>https://login.salesforce.com/services/Soap/u/42.0</loginUrl>
        <blocking>false</blocking>
    </salesforce.init>

Note: Secure Vault is supported for encrypting passwords. See, Working with Passwords on integrating and using Secure Vault.

Re-using Salesforce configurations

You can save the Salesforce connection configuration as a local entry and then easily reference it with the configKey attribute in your operations. For example, if you saved the above entry as a local entry named MySFConfig, you could reference it from an operation like getUserInfo as follows:

<salesforce.getUserInformation configKey="MySFConfig"/>
The Salesforce connector operation examples use this convention to show how to specify the connection configuration for that operation. In all cases, the configKey attribute is optional if the connection to Salesforce has already been established and is required only if you need to specify a different connection from the current connection.

Top