SpencerUresk

Random posts about Java, software development, politics, and economics

 RSS Feed

Add to Google Reader or Homepage

Ah, the smell of a fresh codebase.
I’m certain most software developers who have been around for any amount of time have had to work on “The Project”. This project has probably been going for years, has had a fair amount of turnover on the development team, and has had a handful of architects (with their […]

I couldn’t find any tutorials on how to use Amazon AWS with GroovyWS, so I took a few minutes to figure out how to do it. Here is some sample code:

import groovyx.net.ws.WSClient

def proxy = new WSClient(“http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl?”, this.class.classLoader)

def req = proxy.create(“com.amazon.webservices.awsecommerceservice._2008_04_07.ItemSearchRequest”)

req.searchIndex = ‘Books’
req.keywords = “Groovy and Grails”

def search = proxy.create(“com.amazon.webservices.awsecommerceservice._2008_04_07.ItemSearch”)

search.AWSAccessKeyId = “your id here”
search.request.add(req)

def res = […]