This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
nested exception is org.springframework.web.client.ResourceAccessException: I/O error
posted 3 years ago
I want to access webservice by calling an URL (webservice URL) through my company proxy,
I am getting this error in my server, and on my browser : I/O error: Connection refused
i wrote this code in my RestfulClient class
This is not really a question about Spring or RestTemplate but about Apache Commons HTTP Client. I would use the HttpComponentsClientHttpRequestFactory instead and upgrade to Apache HTTP Components. The version you are using is no longer supported. That said I would talk to other members of your organization about how they typically work with the proxy, perhaps the method you are using is not correct, or sometimes the preferred method is to apply for a proxy exception for your application. Either way RestTemplate will just use what you have configured.