Dynamic Web Services with Groovy and XFire
April 23rd, 2006Guillaume Alleon has been doing some work on integrating Groovy and XFire. Today he announced the release of Groovy Web Services on the XFire mailing list:
I am pleased to announce the second release (aka 0.2) of GroovySOAP.
There’s a WIKI page for it at http://docs.codehaus.org/display/GROOVY/Groovy+SOAP
It’s still is the early stages but you are now able to build a web service from a Groovy Object
I especially like the client example:
import groovy.net.groovysoap.SoapServer
def proxy = new SoapClient(“http://localhost:6980/MathServiceInterface?wsdl”)
def result = proxy.add(1.0, 2.0)
assert (result == 3.0)result = proxy.square(3.0)
assert (result == 9.0)
No stub generation, just dynamically typed goodness! Very cool!