> def GRIADEMO1_JOB_SERVICE_WSDL =
> "https://griademo1.it-innovation.soton.ac.uk/gria-basic-app-services/services/JobService?wsdl
>
> "
> def JOB_TYPE = "http://it-innovation.soton.ac.uk/grid/imagemagick/paint
> "
> def jobService =
> serviceFactory.createServiceProxy(GRIADEMO1_JOB_SERVICE_WSDL)
> def swirlJob = jobService.createJob(JOB_TYPE, "My swirl job")
> swirlJob.input("inputImage").saveFromFile(new File("source.jpg"))
> swirlJob.startJob(null)
> while (swirlJob.stillActive()) {
> println "Waiting..."
> Thread.sleep(1000)
> }
> swirlJob.output("outputImage").read(new File("result.jpg"))
> swirlJob.destroy()
>
> To try it, save the script as "paint.groovy" and then run the client
> like this (you'll need a "source.jpg" file too, of course):
>
> $ gridcli ./paint.groovy
>
> The above script also demonstrates the new API. "serviceFactory" takes
> the URL of a service's WSDL and creates a proxy for it. Notice that,
> unlike the 5.2 API, 5.3 does not require you to store the proxy in a
> repository.