Get GlassFish V2 Sun Support for GlassFish - Get GlassFish Portfolio
« AJAX FAQ in French,... | Main | Consulting on Java... »
May 06
30
How to write Simple Java Clients for REST Services
  Posted by pelegri in General

Spider Web in the Dew

WSDL, the W3C standard language for describing Web Services endpoints, is very flexible but it is also complex, so Marc has been working on WADL as an alternative for REST WebServices. Marc's latest blog describes how to Map WADL to Java. The results are very interesting; for instance, this is the client code to access Yahoo's News Service:

Endpoint.NewsSearch s = new Endpoint.NewsSearch(); ResultSet results = s.getAsResultSet("jaxws_restful_sample", "java"); for (ResultType result: results.getResult()) { System.out.println(result.getTitle()+" ("+result.getClickUrl()+")"); }

Marc promises an implementation soon and is looking for interesting WADL samples as well as general feedback.

Comments:

Post a Comment:

Comments are closed for this entry.

Languages

Event Calendar

Search

The Aquarium TV

Adoption Stories

GlassFish Podcast

Popular Tags

adoption ajax clustering comet community frontpage glassfish grizzly hudson java javaee javaee6 javaone jax-rs jax-ws jaxb jboss jcp jersey jmaki jruby jsf metro mysql netbeans notd opends openesb openmq opensolaris opensource opensso osgi performance portal rails rest ruby sailfin scripting sip stories sun tools updatecenter v2 v3 webinar webservices weekly

Downloads

Companion Sites

Related Links

Useful Pointers

Offers and Promos

... AT TWITTER

OTHER SHORT NEWS

Recent Entries

News by Mail

Contact Us

Send feedback and leads to theaquarium@sun.com

QR Codes


Navigation