Java Web Service Clients: SOAP and REST
By dannycoward on Oct 17, 2008
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.