Distributed Systems Course Material Home
Now we want to add the ability for our application to call out to other computer systems to get information. So, we are going to add a call to a web service to get the weather. We are going to use a package called JSOUP. You can learn about it at jsoup.org. The free weather service is 7Timer. https://www.7timer.info/index.php?product=civil&lon=-122.0574&lat=37.4192&lang=en
Here is an introduction.
Now let’s build the weather web service class in our business rules.
Next we need to modify our Desktop application.
Calling Web Service Demo
Here is a demo of the call to the web service.