<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Antonio Petrocelli on Medium]]></title>
        <description><![CDATA[Stories by Antonio Petrocelli on Medium]]></description>
        <link>https://medium.com/@antonio.petrocelli?source=rss-467b5df036fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_JaIdRH11O-s0fGpShykBA.jpeg</url>
            <title>Stories by Antonio Petrocelli on Medium</title>
            <link>https://medium.com/@antonio.petrocelli?source=rss-467b5df036fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:42:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@antonio.petrocelli/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[WSO2: SalesForce Sign in error ‘Login Rate Exceeded’]]></title>
            <link>https://medium.com/@antonio.petrocelli/wso2-salesforce-sign-in-error-login-rate-exceeded-aa1e1541732c?source=rss-467b5df036fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1e1541732c</guid>
            <category><![CDATA[enterprise-integrator]]></category>
            <category><![CDATA[enterprise-service-bus]]></category>
            <category><![CDATA[wso2-connector]]></category>
            <category><![CDATA[wso2]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Antonio Petrocelli]]></dc:creator>
            <pubDate>Sat, 25 Sep 2021 14:43:31 GMT</pubDate>
            <atom:updated>2021-09-26T10:02:36.251Z</atom:updated>
            <content:encoded><![CDATA[<h3>WSO2: SalesForce Sign In error ‘Login Rate Exceeded’</h3><h4>How to I solved an unknown SalesForce limit</h4><p>One of the key reasons for choosing WSO2 as the company’s Integration Platform was the large availability of free connectors towards most of the third-party platforms including some of the most used in the world, such as Facebook, Instagram and Twitter for social media services but also for AWS, SalesForce and Microsoft Azure services at enterprise level services.</p><p>You can find the complete list in the official <a href="https://store.wso2.com/store/pages/top-assets">WSO2 Store</a></p><figure><img alt="WSO2 Store" src="https://cdn-images-1.medium.com/max/1024/1*AO3h3X3HUoys-qc1CSsMCw.jpeg" /><figcaption>WSO2 Store</figcaption></figure><p>The documentation of the WSO2 connectors is available at the following links:</p><ul><li><a href="https://docs.wso2.com/display/EI660/Working+with+Connectors">WSO2 Enterprise Integrator 6.6.0: Working with Connectors</a></li><li><a href="https://ei.docs.wso2.com/en/latest/micro-integrator/references/connectors/connectors-overview/">WSO2 Enterprise Integrator 7.1.0: Connectors Overview</a></li><li><a href="https://apim.docs.wso2.com/en/latest/reference/connectors/connectors-overview/">WSO2 API Manager 4.0.0: Connectors Overview</a></li></ul><p><em>This guide is for the SalesforceRest v. 1.0.8 in WSO2 Enterprise Integrator 6.6.0, using Username-Password OAuth Authentication Flow for authentication on SalesForce.</em></p><p>As explained in the official <a href="https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Salesforce+Operations">Configuring Salesforce Operations</a> documentation every time you use the connector for consuming resources made available by the SalesForce REST API, it is necessary to initialize the connector with the init operation.</p><p>For example, if you want to make a query, you must first initialize the connector to login to SalesForce and then run the query, as explained in <a href="https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Queries#WorkingwithQueries-sampleSampleconfiguration">Working with Queries Sample configuration</a></p><h3>Sample Proxy</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/758fd00322a9455382578a67ce46bf74/href">https://medium.com/media/758fd00322a9455382578a67ce46bf74/href</a></iframe><p>In our company we have made extensive use of the connector in various APIs for the classic CRUD operations on SalesForce data, also for ETL processes, always using the Enterprise Integrator and the SalesforceRest connector. Everything has always worked great as long as the amount of transactions began to reach truly remarkable numbers, so much to exceed SalesForce 3600/hour limit: at this point our SalesForce instance began to respond with the error: <a href="https://help.salesforce.com/s/articleView?id=000312767&amp;type=1">Sign in error ‘Login Rate Exceeded’</a></p><p>The solution was immediately evident: we needed to limit the number of Login to SalesForce to avoid downtime that extended to all the APIs and ETL flows for too long. By setting a SalesForce access token expiration of 24 hours,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*Y8Spl03TpXvd5Q5myWXQCA.jpeg" /><figcaption>SalesForce Connected App Token validity</figcaption></figure><p>we created a Proxy Service in WSO2 to request the token and save it in the Registry and a Scheduled Task that executes the Proxy at defined intervals (in our case every minute between 00:00 and 00:10 of every day, to avoid any misalignments in the system time between our servers and those of SalesForce).</p><h3>The getSalesForceToken Proxy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYVEevVTYTq5e4hmg4ACVw.jpeg" /><figcaption>getSalesForceToken Proxy WSO2 Integration Studio View</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebcdee88a1b6f577a69de3c2a1b2c310/href">https://medium.com/media/ebcdee88a1b6f577a69de3c2a1b2c310/href</a></iframe><p>it is possible to test the functioning of the proxy before releasing it by deleting the property “OUT_ONLY” and adding after the filter a payloadFactory followed by a &lt;respond/&gt; mediator.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82e8805aa718dbd18cb98d640fab0632/href">https://medium.com/media/82e8805aa718dbd18cb98d640fab0632/href</a></iframe><p>Calling the proxy from the browser at the url http://localhost:8280/services/getSalesForceToken you get the following answer</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/deec838ee7daa06028cdcb3be1d78e49/href">https://medium.com/media/deec838ee7daa06028cdcb3be1d78e49/href</a></iframe><p>At this point we can develop a simple API that queries SalesForce using the &lt;salesforcerest.query&gt; method of the connector without having to log in.</p><h3>The testSalesForce API</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzv7fb93UXUWGA0FOlPJqg.jpeg" /><figcaption>testSalesForce API WSO2 Integration Studio View</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/082b72263eec86e4d9f8d02e7fc48183/href">https://medium.com/media/082b72263eec86e4d9f8d02e7fc48183/href</a></iframe><p>to get an answer like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cb8910f59ad39136ba00db319b42863/href">https://medium.com/media/1cb8910f59ad39136ba00db319b42863/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*CiV7jpk7wWbw7OmzukEGuQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1e1541732c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>