The issue could be because of proxy setting not specified for the web application. The solution to this is to add the following conifig info in the application’s web.config
<system.net><defaultProxy enabled=“true” useDefaultCredentials=“true“>
<proxy bypassonlocal=“True” proxyaddress=“proxyaddress“ />
</defaultProxy>
</system.net>
Hope it helps.