cancel
Showing results for 
Search instead for 
Did you mean: 

Setting proxy programmatically?

Hello,

 

I see that there is a way to set proxy settings using a properties file. However, we have several servers we're using as proxies, and we would like to be able to distribute API calls between them. Is there a way we can set the proxy information programmatically?

kbaugher
Contributor
2 REPLIES 2

I ended up modifying the Java SDK for Authorize.net. It now looks in a resource file for this information and sets it. This allows a maven build on multipe environments that may use different proxies. It will also randomly select a proxy if more than one is provided (to distribute the load). If anyone is having the same issue (or is just curious) I can post the code.

kbaugher
Contributor

hi kbaugher,

I have the same issue. Would you share your solution.

Thanks