We were using RestTemplate with xml configuration in Spring 3.0 and it was working perfectly fine.
I am able to work this out with Spring 4 RestTemplate
-1