JavaFX Web Services in 5 minutes
By dannycoward on Feb 20, 2009
There are many entertaining local apps you can make for the desktop or mobile phone with JavaFX (puzzles, games etc) but the longer lived pleasures will be the ones connected to something interesting on the internet (like your twitter account). So they'll need to connect using a web service protocol.
The basic idea of the RESTful model supported in JavaFX is really simple (even the Janitor gets it):
- First, make a javafx.io.http.HttpRequest
to connect to the web service and get the raw data.
For more, there's JavaFX tutorial that steps you through building a client to Yahoo's image quary service. Here's an example with source of retreiving photo information from a Java EE application. Here's a higher level view of the features.
And, for the 10 minute version, this is for you.