Salesforce SOAP Connector Configuration¶
The Salesforce SOAP connector allows you to access the Salesforce SOAP API through WSO2 EI.
Setting up the Salesforce account¶
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.
After creating a Salesforce account you will get a Salesforce security token.
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:
- To view the certificate, log in to your Salesforce account in your browser.
- Search the Certificate and Key Management in the search box.
- Export the certificate to the file system.
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"
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
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