Thanks Malaka. I will do that.

On Wed, Aug 26, 2015 at 1:27 AM, Malaka Silva <[email protected]> wrote:

> Hi Bhathiya,
>
> You can store the complete init config in registry and refer that in your
> salesforce methods.
>
> Eg:
>
> <proxy xmlns="http://ws.apache.org/ns/synapse"; name="sfdc"
>  transports="https,http" statistics="disable" trace="disable"
> startOnLoad="true">
>    <target>
>       <inSequence>
>          <salesforce.query *configKey="conf:/repository/esb/sfdcconf"*>
>             <batchSize>200</batchSize>
>             <queryString>select id,name from Account</queryString>
>          </salesforce.query>
>          <respond/>
>       </inSequence>
>    </target>
>    <description/>
> </proxy>
>
> */_system/config/repository/esb/sfdcconf*
> <salesforce.init xmlns="http://ws.apache.org/ns/synapse";>
>             <username>[email protected]</username>
>             <password>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</password>
>             <loginUrl>https://login.salesforce.com/services/Soap/u/34.0
> </loginUrl>
>          </salesforce.init>
>
> On Tue, Aug 25, 2015 at 11:27 AM, Bhathiya Jayasekara <[email protected]>
> wrote:
>
>> Hi Dushan/Malaka,
>>
>> So, is it not possible to achieve the $subject? Any workaround at least?
>>
>> Thanks,
>> Bhathiya
>>
>> On Mon, Aug 24, 2015 at 4:34 PM, Bhathiya Jayasekara <[email protected]>
>> wrote:
>>
>>> Hi Dushan,
>>>
>>> The initial service URL[1] can be different from account to account.
>>> Hence the requirement.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>> On Mon, Aug 24, 2015 at 4:26 PM, Dushan Abeyruwan <[email protected]>
>>> wrote:
>>>
>>>> Hi
>>>> Why you need like that ?
>>>> SF connector we have uses initial service URL at init [1] and upon
>>>> successfully authenticate all the other operations other than
>>>> salesforce.init will use dynamic url return from authenticate requests
>>>> (extracting from response payload).[2]
>>>>
>>>> init
>>>>
>>>> <property expression="//ns:loginResponse/ns:result/ns:serverUrl/text()"
>>>> name="salesforce.serviceUrl" scope="operation" type="STRING"
>>>> xmlns:ns="urn:partner.soap.sforce.com" />
>>>>
>>>> <property name="salesforce.login.done" scope="operation"
>>>> type="STRING" value="true" />
>>>>
>>>>
>>>> [1] https://login.salesforce.com/services/Soap/u/27.0
>>>> [2]
>>>> https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/init.xml
>>>>
>>>> Cheers,
>>>> Dushan
>>>>
>>>> On Mon, Aug 24, 2015 at 4:12 PM, Bhathiya Jayasekara <[email protected]
>>>> > wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Is there a way to store Salesforce endpoint in registry, and refer to
>>>>> that in "init" block of connector?
>>>>>
>>>>> Thanks,
>>>>> --
>>>>> *Bhathiya Jayasekara*
>>>>> *Senior Software Engineer,*
>>>>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>>>>
>>>>> *Phone: +94715478185 <%2B94715478185>*
>>>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>>>> <http://www.linkedin.com/in/bhathiyaj>*
>>>>> *Twitter: https://twitter.com/bhathiyax
>>>>> <https://twitter.com/bhathiyax>*
>>>>> *Blog: http://movingaheadblog.blogspot.com
>>>>> <http://movingaheadblog.blogspot.com/>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Dushan Abeyruwan | Technical Lead
>>>> Technical Support-Bloomington US
>>>> PMC Member Apache Synpase
>>>> WSO2 Inc. http://wso2.com/
>>>> Blog:*http://www.dushantech.com/ <http://www.dushantech.com/>*
>>>> Mobile:(001)812-391-7441
>>>>
>>>>
>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> <http://www.linkedin.com/in/bhathiyaj>*
>>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>>> *Blog: http://movingaheadblog.blogspot.com
>>> <http://movingaheadblog.blogspot.com/>*
>>>
>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> <http://www.linkedin.com/in/bhathiyaj>*
>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>> *Blog: http://movingaheadblog.blogspot.com
>> <http://movingaheadblog.blogspot.com/>*
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to