Deprecated Garbage Collections – Kenny Lee Chee Wei

A truckload of garbage by Kenny Lee Chee Wei

Archive for January 2008

Got API?

leave a comment »

Need a better way to search for APIs? Check out


Written by kennii

January 29, 2008 at 3:25 pm

Posted in Cool Discoveries

Tagged with

Groovy Web Service Client (GroovyWS)

with 5 comments

Here’s 2 examples of how simple groovy web service clients can be. You will need to download a groovy lib jar from the GroovyWS Home Site. Basically it just creates the classes dynamically on-the-fly instead of creating stubs.

1. CurrencyConvertor

proxy = new WSClient("", this.class.classLoader)
//'USD', 'EUR', 'CAD', 'GBP', 'AUD', 'SGD'
rate = proxy.ConversionRate('SGD','USD')
print rate

2. Stock Quote

proxy = new WSClient("", this.class.classLoader)
quote = proxy.GetQuote('GOOG')
print quote

Read Geertjan’s groovy_web_service for more info (Swing).

Read the official Groovy Web Service Doc for more info (Groovy WS) .

Written by kennii

January 2, 2008 at 8:03 am

Posted in Groovy