Hi Chanaka,

Yes I guess that is the best way and make those as optional parameters.

Maybe we can start to implement this with Salesforce connector.

@Kanapriya - Can you please follow this.

eg:-

    <endpoint name="Salesforce_call1" template="salesforce endpoint_template">

        <parameter name="timeout" value="{ctx.salesforce.timeout}"/>

    </endpoint>

    <template name="salesforce_endpoint_template">
            <parameter name="suspend_duration"/>
            <endpoint name="SALESFORCE">
                <address uri="$uri">
                    <timeout>

                        <duration>$timeout</duration>

                    <timeout>

                </address>
            </endpoint>
    </template>


On Wed, Jan 27, 2016 at 10:05 AM, Chanaka Fernando <chana...@wso2.com>
wrote:

> Hi Malaka,
>
> We can define endpoint templates within the connector definition and pass
> the parameters when calling those connector operations from within the
> synapse configuration as you have pointed out.
>
> On Wed, Jan 27, 2016 at 9:57 AM, Malaka Silva <mal...@wso2.com> wrote:
>
>> Hi All,
>>
>> Currently we are using mainly call mediator in connectors. However
>> currently endpoint settings are static and hardcoded with the connector.
>>
>> Only way to change this is manually update the zip file. This is not the
>> best solution.
>>
>> We need to find a way to set this values from esb connector
>> configuration. (In INIT method)
>>
>> eg:
>> <salesforce.init>
>>     <username>x...@abc.com</username>
>>     <password>xxxxx</password>
>>     <loginUrl>https://login.salesforce.com/services/Soap/u/27.0</loginUrl
>> >
>>
>> <!-- Optional Params -->
>> *    <blocking>false</blocking>*
>> * <timeout>60000</timeout>*
>> .....
>> </salesforce.init>
>>
>> Suggestions are welcome to find the best way to do this?
>>
>> (https://store.wso2.com/store/assets/esbconnector)
>>
>> <endpoint name="Sample_First" statistics="enable" >
>>     <address uri="http://localhost/myendpoint";
>> <http://localhost/myendpoint> statistics="enable" trace="disable">
>>         <timeout>
>>             <duration>60000</duration>
>>         </timeout>
>>
>>         <markForSuspension>
>>             <errorCodes>101504, 101505</errorCodes>
>>             <retriesBeforeSuspension>3</retriesBeforeSuspension>
>>             <retryDelay>1</retryDelay>
>>         </markForSuspension>
>>
>>         <suspendOnFailure>
>>             <errorCodes>101500, 101501, 101506, 101507, 101508
>> </errorCodes>
>>             <initialDuration>1000</initialDuration>
>>             <progressionFactor>2</progressionFactor>
>>             <maximumDuration>60000</maximumDuration>
>>         </suspendOnFailure>
>>
>>     </address>
>> </endpoint>
>>
>> [1]
>> https://docs.wso2.com/display/ESB490/Endpoint+Error+Handling#EndpointErrorHandling-
>> "Timeout"settingstimeoutSettings
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>


-- 

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/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to