Webservices from functoids (btm) thro Proxy server

we had a requirement where we had to call webservices from a btm biztalk map.

the script functoid called an external assembly which in turn called a 3rd party webservice on the internet.

this required a proxy server since it is on the internet.

this is how we solved it by configuring the btsntsvc.exe.config.

Pls restart the Application and host after the change.

 <system.net>
    <connectionManagement>
  <add address="*" maxconnection="40"/>
 </connectionManagement>
 <defaultProxy useDefaultCredentials="true">
 <proxy usesystemdefault="true" bypassonlocal="true" proxyaddress="https://x.x.x.x:80" />
 <bypasslist>
         <add address="172.22.*.*" />
  <add address="localhost" />
      </bypasslist>

 </defaultProxy>
  </system.net>