-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathINTEGRATION_TEXT.txt
47 lines (35 loc) · 2.28 KB
/
INTEGRATION_TEXT.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Pre-requisites:
- Maven 3.x
- Java 1.6 or above
- The org.wso2.esb.integration.integration-base project is required. The test suite has been configured to download this project automatically. If the automatic download fails, download the following project and compile it using the mvn clean install command to update your local repository:
https://github.com/wso2-extensions/esb-connector-integrationbase
Tested Platform:
- Microsoft WINDOWS V-7
- UBUNTU 13.04
- wso2esb-4.10.0-M2-SNAPSHOT
- Java 1.7
1. Create object and pushTopic:
https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/create_object.htm#create_object
2. Navigate to "<INBOUND_HOME>" and run the following command.
$ mvn clean install
3. To use the Salesforce inbound endpoint, you need to download the inbound org.apache.synapse.salesforce.poll.class-1.0.0.jar from https://storepreview.wso2.com/store/ and copy the jar to the <ESB_HOME>/repository/components/dropins directory.
4. Configuration:
<inboundEndpoint
class="org.wso2.carbon.inbound.salesforce.poll.SalesforceStreamData"
name="SaleforceInboundEP" onError="fault" sequence="reqSequence" suspend="false">
<parameters>
<parameter name="sequential">true</parameter>
<parameter name="interval">10</parameter>
<parameter name="coordination">true</parameter>
<parameter name="connection.salesforce.userName">[email protected]</parameter>
<parameter name="connection.salesforce.loginEndpoint">https://login.salesforce.com</parameter>
<parameter name="connection.salesforce.password">xxxxxxxx</parameter>
<parameter name="connection.salesforce.salesforceObject">InvoiceStatementUpdates</parameter>
<parameter name="connection.salesforce.connectionTimeout">20000</parameter>
<parameter name="connection.salesforce.readTimeout">120000</parameter>
<parameter name="connection.salesforce.waitTime">10000</parameter>
<parameter name="connection.salesforce.packageName">cometd</parameter>
<parameter name="connection.salesforce.packageVersion">35.0</parameter>
<parameter name="connection.salesforce.soapApiVersion">22.0/</parameter>
</parameters>
</inboundEndpoint>