Friday Feb 20, 2009

JavaFX Web Services in 5 minutes


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):
And that that's it.

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.

Friday Oct 17, 2008

Java Web Service Clients: SOAP and REST


It's easy to get moist, in various ways, from the alphabet soup of web service protocols.

With the advent of the REST-ful style, which some say is more in tune with the web, than the venerable SOAP protocols, it's no surprise that some try to give the pot a stir to find a winner.

Happily for Java developers, whoever's web service you want to use from a Java client and in whichever protocol it's expressed, you are well supported.

Long supporting SOAP over HTTP through the easy-to-program JAX-WS APIs for Java SE and Web Services for Java ME in the Java ME MSA platform, with the recent approval of JSR 311 Java API for REST-ful Web Services, and the recent completion of its implementation Jersey 1.0, which you can download here, get samples for here, and all of which is explained in this article, you can pick your own winner.

So whether you're writing a web service client for Amazon, eBay, Yahoo, Google, or Flickr, doing it from the Java platform keeps you in good hands.
About

A blog all about Java in all its flavors on all client platforms from smartcards to desktops and everything inbetween.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Feeds