indiWiz.com

Subhash's Tech Log

Quick WebService Client in Groovy

without comments

Writing WebService client in Groovy is simple.

import groovy.net.soap.SoapClient

def proxy = new SoapClient("http://localhost:7777/path/to/endpoint?WSDL")
def result = proxy.sayHello("Subhash")

println result

sayHello() is the operation name.

More details here. See the Installation part, you need to put the Groovy SOAP Jar in ${user.home}/.groovy/lib.

Written by Subhash Chandran

November 18th, 2008 at 9:50 am

Posted in Uncategorized

Tagged with ,

Leave a Reply