Http Call to a Non-spring Application from a Spring Application?

You could use HttpClient to make the HTTP calls easily... or if they are Restful web services, you can use Spring's RestTemplate to make the calls.

I do not want to use apache httpclient. I am looking for something as part of springframe work itself. – Johnny Mar 3 at 21:34 Well, RestTemplate is part of the Spring framework.

– limc Mar 3 at 21:42 Yep, Thank you for the suggestion – Johnny Mar 3 at 23:12.

HTTP is language and framework agnostic, you don't need Spring (or even Java) both on the client and on the server side. Here is an example code fetching data using HTTP and printing them to console: org.apache.commons.io.IOUtils. Copy( new URL("google.com").openStream(), System.

Out); Note: you don't need IOUtils from Apache Commons IO as well, here just to shorten the example.

You can use SOAP (web service) implementation by spring.

Mine is a simple rest call. Why the overhead of webservice? – Johnny Mar 15 at 18:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions