...
Code Block | ||||
---|---|---|---|---|
| ||||
<? xml version = "1.0" encoding = "UTF-8" ?> <!-- Message Channels --> <definitions xmlns = "http://ws.apache.org/ns/synapse"> <!-- External sequence acts as a message channel --> < sequence<sequence name = "ChannelAdapter"> > <salesforce.init> <username>salesforce_username</username> <password>salesforce_password + salesforce_security_token</password> <loginUrl>https://login.salesforce.com/services/Soap/u/27.0</loginUrl> </salesforce.init> <salesforce.query> <batchSize>200</batchSize> <queryString>select id,name,Account.name,AssistantName,AssistantPhone,Birthdate,CreatedBy.name,Department,Description,Email,HomePhone,LastModifiedBy.Name,MobilePhone,Title from Contact</queryString> </salesforce.query> <respond/> </sequence> sequence > <!-- Sender will invoke the following Sequence --> < sequence<sequence name = "main"> > <!-- The request will first trigger to the following --> < <in> in > <!-- Allows calling of the following sequence defined through the key --> < sequence<sequence key = "ChannelAdapter" /> </in> in > <<out> out > <!-- The response given out through the channel adapter will be sent back to the sender --> < send <send/> </out> out > </sequence> </definitions> |
...